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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 95.58 kB / 16.95 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 178 kB / 17.84 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.843/1.843, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005314/0.0005317, allocations: 11.94 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1118, allocations: 47.58 MB / 328.4 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01166/0.1235, allocations: 12.4 MB / 340.9 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02401/0.1476, allocations: 17.94 MB / 358.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.1505, allocations: 31.81 kB / 358.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.1538, allocations: 0.9369 MB / 359.8 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008269/0.1621, allocations: 1.809 MB / 361.6 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004748/0.1669, allocations: 1.069 MB / 362.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01198/0.1789, allocations: 5.911 MB / 368.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1803, allocations: 428.5 kB / 369 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.1823, allocations: 0.8434 MB / 369.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.1833, allocations: 0.9978 MB / 370.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.1835, allocations: 40 kB / 370.8 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004316/0.1878, allocations: 1.07 MB / 371.9 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003248/0.1882, allocations: 277.9 kB / 372.2 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009325/0.1891, allocations: 0.6248 MB / 372.8 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002921/0.192, allocations: 2.711 MB / 375.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.1921, allocations: 0 / 375.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.1921, allocations: 0 / 375.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.581e-05/0.1921, allocations: 0 / 375.5 MB, free: 4.703 MB / 318.1 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.005397/0.1975, allocations: 3.272 MB / 378.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.406e-05/0.1976, allocations: 12.03 kB / 378.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001927/0.1978, allocations: 102.5 kB / 378.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005121/0.1984, allocations: 395.1 kB / 379.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2268/0.4251, allocations: 2.277 MB / 381.6 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.064e-05/0.4253, allocations: 35.95 kB / 381.6 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001819/0.4255, allocations: 54.02 kB / 381.7 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.4274, allocations: 0.7452 MB / 382.4 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.4274, allocations: 0.5 kB / 382.4 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.489e-05/0.4275, allocations: 26.45 kB / 382.4 MB, free: 51.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.61e-05/0.4276, allocations: 20.47 kB / 382.4 MB, free: 51.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/0.4295, allocations: 0.8686 MB / 383.3 MB, free: 51.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00669/0.4362, allocations: 3.078 MB / 386.4 MB, free: 50.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.4377, allocations: 0.6121 MB / 387 MB, free: 50.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.4388, allocations: 0.6717 MB / 387.7 MB, free: 49.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02334/0.4621, allocations: 30.22 MB / 417.9 MB, free: 22.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006596/0.4628, allocations: 384.8 kB / 418.3 MB, free: 22.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.4628, allocations: 3.656 kB / 418.3 MB, free: 22.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002172/0.465, allocations: 1.157 MB / 419.4 MB, free: 20.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.4651, allocations: 59.34 kB / 419.5 MB, free: 20.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/0.468, allocations: 2.913 MB / 422.4 MB, free: 17.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.4681, allocations: 37.7 kB / 422.4 MB, free: 17.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000909/0.469, allocations: 1.495 MB / 423.9 MB, free: 16.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.4691, allocations: 173.7 kB / 424.1 MB, free: 16.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.4692, allocations: 19.34 kB / 424.1 MB, free: 16.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.607e-05/0.4692, allocations: 345.9 kB / 424.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004853/0.4697, allocations: 261.7 kB / 424.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000589/0.4703, allocations: 0.6112 MB / 425.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005697/0.4709, allocations: 349.8 kB / 425.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.4709, allocations: 4 kB / 425.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001911/0.4728, allocations: 1.269 MB / 426.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.4729, allocations: 8 kB / 426.9 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-05/0.473, allocations: 84 kB / 427 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/0.473, allocations: 16 kB / 427 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006165/0.4736, allocations: 207.7 kB / 427.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.4737, allocations: 31.86 kB / 427.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.4748, allocations: 119.9 kB / 427.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.4749, allocations: 68 kB / 427.5 MB, free: 12.74 MB / 318.1 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.0007535/0.4757, allocations: 433.4 kB / 427.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003192/0.476, allocations: 391.3 kB / 428.3 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002626/0.4786, allocations: 1.239 MB / 429.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.4787, allocations: 4 kB / 429.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.4787, allocations: 4 kB / 429.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.4787, allocations: 0 / 429.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/0.4823, allocations: 2.143 MB / 431.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.322e-05/0.4824, allocations: 74.75 kB / 431.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004697/0.4829, allocations: 103.9 kB / 431.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/0.4829, allocations: 0 / 431.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.805e-05/0.483, allocations: 35.98 kB / 431.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.483, allocations: 0 / 431.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.483, allocations: 4 kB / 431.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.485, allocations: 1.369 MB / 433.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006653/0.4857, allocations: 468.3 kB / 433.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002741/0.486, allocations: 12 kB / 433.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005766/0.4866, allocations: 44.02 kB / 433.8 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.4867, allocations: 67.89 kB / 433.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.593e-05/0.4868, allocations: 36 kB / 433.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002301/0.4891, allocations: 1.878 MB / 435.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4891, allocations: 4 kB / 435.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001554/0.4907, allocations: 0.5921 MB / 436.3 MB, free: 3.797 MB / 318.1 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.003502/0.4942, allocations: 2.58 MB / 438.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.4957, allocations: 0.8413 MB / 439.8 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4957, allocations: 0 / 439.8 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006137/0.4963, allocations: 472.8 kB / 440.2 MB, free: 0 / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.4985, allocations: 497 kB / 440.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03948/0.538, allocations: 18.42 MB / 459.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001676/0.5397, allocations: 1.665 MB / 460.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001597/0.5413, allocations: 361.3 kB / 461.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.543, allocations: 1.226 MB / 462.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of SimCode: time 2.625e-06/0.5431, allocations: 0 / 462.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/0.6505, allocations: 56.97 MB / 0.5072 GB, free: 14.83 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.6507, allocations: 191.3 kB / 0.5073 GB, free: 14.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.317/4.968, allocations: 7.875 kB / 0.5073 GB, free: 14.59 MB / 414.1 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) Environment - environmentSimulation: 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