Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_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.002148/0.002154, allocations: 189.5 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.197/2.197, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001139/0.001139, allocations: 82.88 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003887/0.0003887, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1026, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01775/0.1204, allocations: 11.27 MB / 385.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2865/0.4069, allocations: 16.99 MB / 402.9 MB, free: 7.293 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002957/0.4099, allocations: 31.31 kB / 402.9 MB, free: 7.281 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004648/0.4146, allocations: 0.9651 MB / 403.9 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.4257, allocations: 2.06 MB / 405.9 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00745/0.4332, allocations: 1.148 MB / 407.1 MB, free: 5.137 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0178/0.451, allocations: 6.062 MB / 413.2 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/0.4522, allocations: 418.1 kB / 413.6 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002615/0.4549, allocations: 0.8301 MB / 414.4 MB, free: 1.871 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002814/0.4577, allocations: 0.9911 MB / 415.4 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004845/0.4583, allocations: 41.25 kB / 415.4 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007413/0.4657, allocations: 1.212 MB / 416.6 MB, free: 1.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006586/0.4664, allocations: 271.2 kB / 416.9 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.4678, allocations: 0.6316 MB / 417.5 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005579/0.4734, allocations: 2.617 MB / 420.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.4735, allocations: 0 / 420.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.055e-06/0.4735, allocations: 0 / 420.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000149/0.4737, allocations: 0 / 420.1 MB, free: 14.67 MB / 298.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.008449/0.4821, allocations: 3.268 MB / 423.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/0.4822, allocations: 12.03 kB / 423.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003549/0.4826, allocations: 99.38 kB / 423.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009115/0.4835, allocations: 399.1 kB / 423.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00842/0.4919, allocations: 2.262 MB / 426.2 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-05/0.4921, allocations: 33 kB / 426.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003521/0.4925, allocations: 63.89 kB / 426.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004094/0.4966, allocations: 0.746 MB / 427 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.755e-05/0.4967, allocations: 0 / 427 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002449/0.497, allocations: 16 kB / 427 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-05/0.497, allocations: 23.98 kB / 427.1 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00556/0.5026, allocations: 0.8631 MB / 427.9 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/0.5132, allocations: 3.069 MB / 431 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.5155, allocations: 0.622 MB / 431.6 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04831/0.5638, allocations: 30.35 MB / 462 MB, free: 1.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00133/0.5652, allocations: 381.6 kB / 462.3 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.147e-06/0.5652, allocations: 4 kB / 462.3 MB, free: 0.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.004425/0.5697, allocations: 1.466 MB / 463.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/0.5698, allocations: 67.39 kB / 463.9 MB, free: 15.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006156/0.576, allocations: 2.909 MB / 466.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001769/0.5762, allocations: 41.7 kB / 466.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00179/0.578, allocations: 1.236 MB / 468.1 MB, free: 11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000373/0.5784, allocations: 169.6 kB / 468.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.5785, allocations: 16 kB / 468.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5787, allocations: 346.8 kB / 468.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.5798, allocations: 261.8 kB / 468.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.5813, allocations: 0.6177 MB / 469.4 MB, free: 9.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.5826, allocations: 336.5 kB / 469.8 MB, free: 9.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.632e-05/0.5827, allocations: 4 kB / 469.8 MB, free: 9.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003306/0.586, allocations: 0.948 MB / 470.7 MB, free: 8.125 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.5861, allocations: 12 kB / 470.7 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001971/0.5863, allocations: 80 kB / 470.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.825e-05/0.5863, allocations: 23.95 kB / 470.8 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.5877, allocations: 212.2 kB / 471 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.315e-05/0.5878, allocations: 27.92 kB / 471.1 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.5898, allocations: 130.9 kB / 471.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002493/0.5901, allocations: 63.98 kB / 471.3 MB, free: 7.586 MB / 346.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.001326/0.5915, allocations: 433.5 kB / 471.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008894/0.5924, allocations: 379.4 kB / 472.1 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005464/0.5979, allocations: 1.265 MB / 473.3 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.5979, allocations: 4 kB / 473.3 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.5979, allocations: 7.891 kB / 473.3 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.598, allocations: 3.984 kB / 473.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006243/0.6042, allocations: 2.132 MB / 475.5 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000174/0.6044, allocations: 71.98 kB / 475.5 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009527/0.6054, allocations: 103.8 kB / 475.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.359e-05/0.6054, allocations: 3.953 kB / 475.6 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.6056, allocations: 44.05 kB / 475.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.523e-06/0.6056, allocations: 0 / 475.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6056, allocations: 0 / 475.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/0.6101, allocations: 1.417 MB / 477.1 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/0.6117, allocations: 468.2 kB / 477.6 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007883/0.6125, allocations: 12 kB / 477.6 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001638/0.6141, allocations: 44.02 kB / 477.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/0.6145, allocations: 59.94 kB / 477.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.6147, allocations: 36 kB / 477.7 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004833/0.6195, allocations: 1.885 MB / 479.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6196, allocations: 4 kB / 479.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002563/0.6222, allocations: 0.5933 MB / 480.2 MB, free: 14.49 MB / 362.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.006771/0.629, allocations: 2.724 MB / 482.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003106/0.6322, allocations: 0.8452 MB / 483.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6322, allocations: 0 / 483.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.6337, allocations: 467.2 kB / 484.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/0.6369, allocations: 498.4 kB / 484.7 MB, free: 9.891 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06351/0.7004, allocations: 26.53 MB / 0.4993 GB, free: 13.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002049/0.7026, allocations: 1.731 MB / 0.5009 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002416/0.705, allocations: 1.226 MB / 0.5021 GB, free: 10.32 MB / 394.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7051, allocations: 0 / 0.5021 GB, free: 10.32 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.832/4.537, allocations: 48.66 MB / 0.5497 GB, free: 149.9 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat