Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 94.2 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002192, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1058, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01037/0.1162, allocations: 11.81 MB / 370 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2378/0.354, allocations: 17.85 MB / 387.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002305/0.3564, allocations: 29.5 kB / 387.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00363/0.3601, allocations: 0.9993 MB / 388.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009485/0.3696, allocations: 2.078 MB / 390.9 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00682/0.3764, allocations: 1.186 MB / 392.1 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.389, allocations: 6.167 MB / 398.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000881/0.39, allocations: 417.7 kB / 398.7 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002455/0.3924, allocations: 0.9465 MB / 399.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001868/0.3943, allocations: 1.018 MB / 400.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001988/0.3945, allocations: 42.5 kB / 400.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005874/0.4004, allocations: 1.441 MB / 402.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003643/0.4008, allocations: 269.8 kB / 402.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.4019, allocations: 0.6231 MB / 403 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.4048, allocations: 2.597 MB / 405.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.4048, allocations: 0 / 405.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4048, allocations: 0 / 405.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.69e-05/0.4049, allocations: 0 / 405.6 MB, free: 11.84 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.004917/0.4098, allocations: 3.237 MB / 408.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.4099, allocations: 12.03 kB / 408.9 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.41, allocations: 102.5 kB / 409 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004102/0.4105, allocations: 391.2 kB / 409.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003495/0.414, allocations: 2.254 MB / 411.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.414, allocations: 36.94 kB / 411.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.4141, allocations: 56 kB / 411.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.4158, allocations: 0.746 MB / 412.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.4159, allocations: 7.938 kB / 412.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.957e-05/0.416, allocations: 16 kB / 412.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.845e-05/0.416, allocations: 23.98 kB / 412.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.4183, allocations: 0.8631 MB / 413.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007893/0.4262, allocations: 3.063 MB / 416.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.4281, allocations: 0.611 MB / 417 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04147/0.4696, allocations: 30.9 MB / 447.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000812/0.4704, allocations: 398.2 kB / 448.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.4704, allocations: 0 / 448.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002675/0.4731, allocations: 1.458 MB / 449.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.4732, allocations: 71.12 kB / 449.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00362/0.4768, allocations: 2.896 MB / 452.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.4769, allocations: 33.7 kB / 452.8 MB, free: 8.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/0.4783, allocations: 1.493 MB / 454.3 MB, free: 7.434 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.4784, allocations: 161.7 kB / 454.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.643e-05/0.4785, allocations: 20 kB / 454.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4787, allocations: 345.9 kB / 454.8 MB, free: 6.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.4793, allocations: 257.9 kB / 455.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008657/0.4802, allocations: 0.6176 MB / 455.7 MB, free: 5.863 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006895/0.4809, allocations: 340.5 kB / 456 MB, free: 5.531 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.4809, allocations: 4 kB / 456 MB, free: 5.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00231/0.4832, allocations: 1.257 MB / 457.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.4832, allocations: 12 kB / 457.3 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/0.4834, allocations: 88.14 kB / 457.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.597e-05/0.4834, allocations: 20 kB / 457.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007227/0.4841, allocations: 207.6 kB / 457.6 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.872e-05/0.4842, allocations: 27.88 kB / 457.6 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.4853, allocations: 129.1 kB / 457.7 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4854, allocations: 67.98 kB / 457.8 MB, free: 3.723 MB / 366.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.0007867/0.4862, allocations: 433.4 kB / 458.2 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003605/0.4866, allocations: 383.4 kB / 458.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003104/0.4897, allocations: 1.253 MB / 459.9 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.4897, allocations: 4 kB / 459.9 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.4897, allocations: 4 kB / 459.9 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.4897, allocations: 3.953 kB / 459.9 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003574/0.4933, allocations: 2.128 MB / 462 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001004/0.4934, allocations: 68 kB / 462.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.4939, allocations: 103.9 kB / 462.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.494, allocations: 8 kB / 462.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.104e-05/0.494, allocations: 39.94 kB / 462.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.494, allocations: 0 / 462.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.494, allocations: 0 / 462.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.4965, allocations: 1.42 MB / 463.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009133/0.4974, allocations: 468.3 kB / 464.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.4977, allocations: 16.05 kB / 464.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006408/0.4983, allocations: 39.66 kB / 464.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4985, allocations: 59.94 kB / 464.2 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.478e-05/0.4986, allocations: 43.92 kB / 464.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002518/0.5011, allocations: 1.868 MB / 466.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5011, allocations: 0 / 466.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001525/0.5027, allocations: 0.5894 MB / 466.7 MB, free: 10.66 MB / 382.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.003769/0.5064, allocations: 2.705 MB / 469.4 MB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.5082, allocations: 0.8415 MB / 470.2 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.5082, allocations: 0 / 470.2 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007631/0.509, allocations: 471.2 kB / 470.7 MB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/0.5118, allocations: 0.5813 MB / 471.3 MB, free: 5.984 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03925/0.5511, allocations: 26.33 MB / 497.6 MB, free: 9.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.5522, allocations: 1.719 MB / 499.3 MB, free: 7.891 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001419/0.5536, allocations: 361.1 kB / 499.7 MB, free: 7.531 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.5548, allocations: 1.21 MB / 0.4892 GB, free: 6.32 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5548, allocations: 0 / 0.4892 GB, free: 6.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3045/0.8593, allocations: 56.02 MB / 0.5439 GB, free: 141.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/0.8596, allocations: 192.4 kB / 0.544 GB, free: 141.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.672/4.532, allocations: 0 / 0.544 GB, free: 141.3 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat