Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.0009878/0.0009879, allocations: 180 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008684/0.0008684, allocations: 92.97 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.0002589, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2309, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1114/0.3424, allocations: 102.3 MB / 478.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.3427, allocations: 79.95 kB / 478.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.38/0.7227, allocations: 125.6 MB / 0.5897 GB, free: 24.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.7227, allocations: 0 / 0.5897 GB, free: 24.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001736/0.7229, allocations: 44 kB / 0.5898 GB, free: 24.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.00615/0.7291, allocations: 3.442 MB / 0.5931 GB, free: 21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.7291, allocations: 8.031 kB / 0.5932 GB, free: 21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002712/0.7294, allocations: 106.5 kB / 0.5933 GB, free: 20.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006612/0.7301, allocations: 399.2 kB / 0.5936 GB, free: 20.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003837/0.7339, allocations: 2.387 MB / 0.596 GB, free: 18.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.734, allocations: 40.95 kB / 0.596 GB, free: 17.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/0.7342, allocations: 51.91 kB / 0.5961 GB, free: 17.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.7355, allocations: 0.8691 MB / 0.5969 GB, free: 17.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.7355, allocations: 0 / 0.5969 GB, free: 17.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-05/0.7356, allocations: 24 kB / 0.5969 GB, free: 17.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.7356, allocations: 19.98 kB / 0.5969 GB, free: 17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.737, allocations: 0.8554 MB / 0.5978 GB, free: 16.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005201/0.7422, allocations: 3.198 MB / 0.6009 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.7432, allocations: 0.622 MB / 0.6015 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0314/0.7746, allocations: 36.02 MB / 0.6367 GB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007527/0.7754, allocations: 385.4 kB / 0.637 GB, free: 2.684 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.895e-06/0.7754, allocations: 0 / 0.637 GB, free: 2.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002401/0.7778, allocations: 1.482 MB / 0.6385 GB, free: 1.117 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.778, allocations: 273 kB / 0.6388 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003775/0.7818, allocations: 2.548 MB / 0.6412 GB, free: 14.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.498e-05/0.7819, allocations: 41.64 kB / 0.6413 GB, free: 14.19 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.7831, allocations: 1.501 MB / 0.6428 GB, free: 12.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.7833, allocations: 173.6 kB / 0.6429 GB, free: 12.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.7833, allocations: 20 kB / 0.6429 GB, free: 12.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.924e-05/0.7834, allocations: 333.9 kB / 0.6433 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/0.7839, allocations: 261.9 kB / 0.6435 GB, free: 11.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000755/0.7847, allocations: 0.6712 MB / 0.6442 GB, free: 11.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006167/0.7853, allocations: 344.5 kB / 0.6445 GB, free: 10.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.7854, allocations: 4 kB / 0.6445 GB, free: 10.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002038/0.7874, allocations: 1.273 MB / 0.6457 GB, free: 9.406 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.7874, allocations: 8 kB / 0.6457 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.617e-05/0.7875, allocations: 83.98 kB / 0.6458 GB, free: 9.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.7876, allocations: 20.03 kB / 0.6458 GB, free: 9.297 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.7883, allocations: 211.7 kB / 0.646 GB, free: 9.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.29e-05/0.7883, allocations: 31.81 kB / 0.6461 GB, free: 9.059 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.7895, allocations: 119.1 kB / 0.6462 GB, free: 8.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.7896, allocations: 67.98 kB / 0.6463 GB, free: 8.875 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009592/0.7905, allocations: 436 kB / 0.6467 GB, free: 8.441 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004459/0.791, allocations: 387.2 kB / 0.647 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003185/0.7942, allocations: 1.291 MB / 0.6483 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.7942, allocations: 4 kB / 0.6483 GB, free: 6.758 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7942, allocations: 4 kB / 0.6483 GB, free: 6.754 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.7942, allocations: 7.891 kB / 0.6483 GB, free: 6.746 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.7979, allocations: 2.245 MB / 0.6505 GB, free: 4.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.543e-05/0.798, allocations: 67.98 kB / 0.6506 GB, free: 4.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/0.7985, allocations: 111.9 kB / 0.6507 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.7985, allocations: 0 / 0.6507 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.7986, allocations: 35.95 kB / 0.6507 GB, free: 4.215 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.7986, allocations: 0 / 0.6507 GB, free: 4.215 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.7986, allocations: 3.984 kB / 0.6507 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.8008, allocations: 1.421 MB / 0.6521 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.8019, allocations: 0.553 MB / 0.6526 GB, free: 2.156 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.8022, allocations: 11.98 kB / 0.6527 GB, free: 2.145 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.8029, allocations: 43.97 kB / 0.6527 GB, free: 2.102 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.803, allocations: 63.98 kB / 0.6528 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.377e-05/0.8031, allocations: 36 kB / 0.6528 GB, free: 2.004 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002409/0.8055, allocations: 1.959 MB / 0.6547 GB, free: 48 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.172e-06/0.8055, allocations: 4 kB / 0.6547 GB, free: 44 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.1774/0.9829, allocations: 0.6467 MB / 0.6553 GB, free: 99.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.003836/0.9868, allocations: 2.83 MB / 0.6581 GB, free: 98.47 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.9882, allocations: 0.8454 MB / 0.6589 GB, free: 98.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.9882, allocations: 0 / 0.6589 GB, free: 98.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007273/0.989, allocations: 468.7 kB / 0.6594 GB, free: 98.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.9907, allocations: 0.494 MB / 0.6599 GB, free: 98.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02991/1.021, allocations: 26.8 MB / 0.686 GB, free: 79.78 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009083/1.022, allocations: 1.728 MB / 0.6877 GB, free: 79.05 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001323/1.023, allocations: 383.3 kB / 0.6881 GB, free: 79.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009798/1.024, allocations: 1.215 MB / 0.6893 GB, free: 79.02 MB / 426.7 MB Notification: Performance of SimCode: time 7.394e-06/1.024, allocations: 0.5312 kB / 0.6893 GB, free: 79.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08378/1.108, allocations: 59.54 MB / 0.7474 GB, free: 48.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/1.108, allocations: 183.5 kB / 0.7476 GB, free: 48.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.091/5.199, allocations: 0 / 0.7476 GB, free: 48.16 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat