Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00206/0.002067, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.98/1.98, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 91.09 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.905e-05/1.902e-05, allocations: 3.984 kB / 314.9 MB, free: 9.078 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3231, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1608/0.4839, allocations: 101.7 MB / 464.1 MB, free: 480 kB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.4842, allocations: 68.69 kB / 464.2 MB, free: 412 kB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9813/1.466, allocations: 186.9 MB / 0.6358 GB, free: 2.496 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.736e-06/1.466, allocations: 0 / 0.6358 GB, free: 2.496 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0005301/1.466, allocations: 91.98 kB / 0.6359 GB, free: 2.406 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01244/1.479, allocations: 4.674 MB / 0.6404 GB, free: 13.67 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/1.479, allocations: 12.03 kB / 0.6404 GB, free: 13.66 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001919/1.481, allocations: 0.7487 MB / 0.6412 GB, free: 12.9 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/1.495, allocations: 4.512 MB / 0.6456 GB, free: 8.301 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/1.495, allocations: 35.77 kB / 0.6456 GB, free: 8.27 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005884/1.496, allocations: 67.84 kB / 0.6457 GB, free: 8.203 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003624/1.499, allocations: 1.316 MB / 0.647 GB, free: 6.887 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003338/1.503, allocations: 1.324 MB / 0.6483 GB, free: 5.492 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/1.503, allocations: 3.938 kB / 0.6483 GB, free: 5.488 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/1.503, allocations: 4 kB / 0.6483 GB, free: 5.484 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.935e-05/1.503, allocations: 39.97 kB / 0.6483 GB, free: 5.445 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3109/1.814, allocations: 5.656 MB / 0.6538 GB, free: 55.13 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/1.816, allocations: 0.8552 MB / 0.6547 GB, free: 55.11 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/1.818, allocations: 1.123 MB / 0.6558 GB, free: 55.09 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09927/1.917, allocations: 71.86 MB / 0.7259 GB, free: 18.72 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/1.918, allocations: 495.3 kB / 0.7264 GB, free: 18.67 MB / 427.1 MB Notification: Performance of pre-optimization done (n=85): time 3.897e-06/1.918, allocations: 1.75 kB / 0.7264 GB, free: 18.67 MB / 427.1 MB Notification: Performance of matching and sorting (n=85): time 0.004196/1.922, allocations: 1.425 MB / 0.7278 GB, free: 18.25 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001051/1.924, allocations: 484.4 kB / 0.7283 GB, free: 33.69 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01527/1.939, allocations: 4.408 MB / 0.7326 GB, free: 33.27 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002618/1.939, allocations: 29.64 kB / 0.7326 GB, free: 33.24 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002867/1.942, allocations: 2.365 MB / 0.7349 GB, free: 32.86 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005183/1.943, allocations: 297.2 kB / 0.7352 GB, free: 32.71 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/1.943, allocations: 2.906 kB / 0.7352 GB, free: 32.71 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/1.943, allocations: 374.1 kB / 0.7356 GB, free: 32.39 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/1.944, allocations: 312.8 kB / 0.7359 GB, free: 32.39 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/1.945, allocations: 1.083 MB / 0.7369 GB, free: 31.39 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/1.946, allocations: 495.3 kB / 0.7374 GB, free: 31.38 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.847e-05/1.946, allocations: 9.844 kB / 0.7374 GB, free: 31.38 MB / 443.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003197/1.949, allocations: 1.314 MB / 0.7387 GB, free: 31.3 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/1.949, allocations: 15.62 kB / 0.7387 GB, free: 31.3 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003079/1.95, allocations: 164.1 kB / 0.7388 GB, free: 31.3 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.884e-05/1.95, allocations: 38.66 kB / 0.7389 GB, free: 31.3 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002142/1.952, allocations: 365 kB / 0.7392 GB, free: 31.3 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-05/1.952, allocations: 53.09 kB / 0.7393 GB, free: 31.3 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003676/1.956, allocations: 171.3 kB / 0.7394 GB, free: 31.26 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003711/1.956, allocations: 126.8 kB / 0.7396 GB, free: 31.26 MB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004219/1.957, allocations: 177.7 kB / 0.7397 GB, free: 31.15 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003234/1.96, allocations: 1.434 MB / 0.7411 GB, free: 30.73 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.961, allocations: 0.7189 MB / 0.7418 GB, free: 30.36 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008359/1.969, allocations: 2.086 MB / 0.7439 GB, free: 30.22 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/1.969, allocations: 7.438 kB / 0.7439 GB, free: 30.22 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.969, allocations: 0 / 0.7439 GB, free: 30.22 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/1.969, allocations: 7.703 kB / 0.7439 GB, free: 30.21 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009117/1.979, allocations: 3.56 MB / 0.7474 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000281/1.979, allocations: 138.2 kB / 0.7475 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001431/1.98, allocations: 164.2 kB / 0.7477 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/1.98, allocations: 3.531 kB / 0.7477 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/1.981, allocations: 61.23 kB / 0.7477 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/1.981, allocations: 3.719 kB / 0.7477 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.981, allocations: 3.375 kB / 0.7477 GB, free: 29.82 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003926/1.985, allocations: 2.051 MB / 0.7497 GB, free: 29.12 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002834/1.987, allocations: 0.9371 MB / 0.7506 GB, free: 28.59 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001438/1.989, allocations: 10.19 kB / 0.7507 GB, free: 28.59 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002573/1.991, allocations: 36.28 kB / 0.7507 GB, free: 28.59 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003135/1.992, allocations: 106.8 kB / 0.7508 GB, free: 28.59 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.992, allocations: 67.58 kB / 0.7509 GB, free: 28.59 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.007484/1.999, allocations: 3.254 MB / 0.754 GB, free: 28.34 MB / 443.1 MB Notification: Performance of sort global known variables: time 9.52e-07/2, allocations: 0 / 0.754 GB, free: 28.34 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.004181/2.004, allocations: 1.121 MB / 0.7551 GB, free: 28.32 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006979/2.011, allocations: 3.906 MB / 0.7589 GB, free: 27.07 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.002667/2.013, allocations: 1.245 MB / 0.7602 GB, free: 26.8 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/2.013, allocations: 7.797 kB / 0.7602 GB, free: 26.79 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/2.015, allocations: 0.7072 MB / 0.7609 GB, free: 26.54 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005534/2.02, allocations: 0.9458 MB / 0.7618 GB, free: 26.48 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01827/2.039, allocations: 7.003 MB / 0.7686 GB, free: 24.41 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002629/2.041, allocations: 2.727 MB / 0.7713 GB, free: 22.53 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0037/2.045, allocations: 2.437 MB / 0.7737 GB, free: 22.23 MB / 443.1 MB Notification: Performance of SimCode: time 2.385e-06/2.045, allocations: 0 / 0.7737 GB, free: 22.23 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.005/7.05, allocations: 90.78 MB / 0.8623 GB, free: 91.41 MB / 459.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat