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.001026/0.001026, allocations: 94.22 kB / 16.94 MB, free: 5.98 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.0009744/0.0009744, allocations: 184.4 kB / 17.82 MB, free: 5.648 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.617/1.617, allocations: 205.4 MB / 224 MB, free: 13.17 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.000483/0.0004834, allocations: 19.27 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1014, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01063/0.1121, allocations: 11.27 MB / 339.7 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02129/0.1334, allocations: 16.99 MB / 356.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.1359, allocations: 31.81 kB / 356.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003082/0.139, allocations: 0.9679 MB / 357.7 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008711/0.1478, allocations: 2.056 MB / 359.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004683/0.1525, allocations: 1.149 MB / 360.9 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.163, allocations: 6.104 MB / 367 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008494/0.1639, allocations: 416.5 kB / 367.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.1653, allocations: 0.8278 MB / 368.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.1663, allocations: 0.9862 MB / 369.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.1664, allocations: 47.94 kB / 369.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003952/0.1704, allocations: 1.214 MB / 370.5 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002602/0.1706, allocations: 274 kB / 370.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005403/0.1712, allocations: 0.6287 MB / 371.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.1736, allocations: 2.614 MB / 374 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1736, allocations: 0 / 374 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1737, allocations: 0 / 374 MB, free: 6.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.229e-05/0.1737, allocations: 0 / 374 MB, free: 6.285 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.004523/0.1782, allocations: 3.264 MB / 377.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.1783, allocations: 12.03 kB / 377.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001312/0.1784, allocations: 98.5 kB / 377.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003657/0.1788, allocations: 399.1 kB / 377.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003477/0.1823, allocations: 2.266 MB / 380 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.1823, allocations: 40.98 kB / 380 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.1824, allocations: 52 kB / 380.1 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2016/0.384, allocations: 0.7465 MB / 380.8 MB, free: 53.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3841, allocations: 3.75 kB / 380.8 MB, free: 53.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.503e-05/0.3842, allocations: 18.27 kB / 380.9 MB, free: 53.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.3842, allocations: 24.56 kB / 380.9 MB, free: 53.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.3861, allocations: 0.8517 MB / 381.7 MB, free: 53.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006647/0.3928, allocations: 3.056 MB / 384.8 MB, free: 52.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.3942, allocations: 0.6154 MB / 385.4 MB, free: 51.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02719/0.4214, allocations: 30.36 MB / 415.8 MB, free: 25.74 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007297/0.4221, allocations: 388.9 kB / 416.2 MB, free: 25.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.827e-06/0.4221, allocations: 0 / 416.2 MB, free: 25.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002018/0.4242, allocations: 1.471 MB / 417.6 MB, free: 24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.4242, allocations: 59.34 kB / 417.7 MB, free: 23.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00271/0.4269, allocations: 2.919 MB / 420.6 MB, free: 21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.427, allocations: 29.7 kB / 420.6 MB, free: 20.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008919/0.4279, allocations: 1.501 MB / 422.1 MB, free: 19.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.428, allocations: 170.6 kB / 422.3 MB, free: 19.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.4281, allocations: 16 kB / 422.3 MB, free: 19.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.4282, allocations: 337.9 kB / 422.6 MB, free: 18.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005031/0.4287, allocations: 261.7 kB / 422.9 MB, free: 18.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006862/0.4294, allocations: 0.6144 MB / 423.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005868/0.43, allocations: 347.4 kB / 423.9 MB, free: 17.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.43, allocations: 4 kB / 423.9 MB, free: 17.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002064/0.432, allocations: 1.264 MB / 425.1 MB, free: 16.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.4321, allocations: 8 kB / 425.1 MB, free: 16.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/0.4322, allocations: 95.88 kB / 425.2 MB, free: 16.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.836e-05/0.4322, allocations: 17.5 kB / 425.2 MB, free: 16.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006727/0.4329, allocations: 219.6 kB / 425.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.9e-05/0.433, allocations: 19.94 kB / 425.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.4342, allocations: 123 kB / 425.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.5e-05/0.4343, allocations: 68 kB / 425.7 MB, free: 15.77 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.0007462/0.4351, allocations: 425.5 kB / 426.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.4353, allocations: 387.3 kB / 426.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.438, allocations: 1.265 MB / 427.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.438, allocations: 7.953 kB / 427.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.438, allocations: 0 / 427.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.438, allocations: 3.984 kB / 427.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003088/0.4411, allocations: 2.127 MB / 429.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/0.4412, allocations: 79.94 kB / 429.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000436/0.4417, allocations: 95.86 kB / 430 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.4417, allocations: 8.062 kB / 430 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/0.4417, allocations: 35.98 kB / 430.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.421e-06/0.4418, allocations: 4 kB / 430.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4418, allocations: 3.938 kB / 430.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.4437, allocations: 1.41 MB / 431.5 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006957/0.4444, allocations: 472.2 kB / 432 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002651/0.4447, allocations: 16.06 kB / 432 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006589/0.4454, allocations: 39.95 kB / 432 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4455, allocations: 59.94 kB / 432.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-05/0.4456, allocations: 43.92 kB / 432.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002044/0.4477, allocations: 1.884 MB / 434 MB, free: 7.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4477, allocations: 0 / 434 MB, free: 7.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001277/0.4489, allocations: 0.5855 MB / 434.6 MB, free: 6.73 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.003012/0.452, allocations: 2.729 MB / 437.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.4534, allocations: 0.8452 MB / 438.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4535, allocations: 3.938 kB / 438.2 MB, free: 3.238 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006091/0.4541, allocations: 463.5 kB / 438.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.4556, allocations: 490.5 kB / 439.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03998/0.4956, allocations: 26.47 MB / 465.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001464/0.4972, allocations: 1.728 MB / 467.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001415/0.4986, allocations: 365.2 kB / 467.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/0.5, allocations: 1.222 MB / 468.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of SimCode: time 1.984e-06/0.5, allocations: 0 / 468.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09644/0.5964, allocations: 56.28 MB / 0.5128 GB, free: 10.08 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.5967, allocations: 194 kB / 0.513 GB, free: 9.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.552/4.148, allocations: 0 / 0.513 GB, free: 9.832 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