Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0-beta_om_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.001693/0.001693, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001882/0.001882, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.467/1.467, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3069, allocations: 50.55 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01556/0.3225, allocations: 14.72 MB / 423.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.35, allocations: 20.7 MB / 444.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.3528, allocations: 91.25 kB / 444.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003883/0.3568, allocations: 1.232 MB / 445.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009269/0.3661, allocations: 2.297 MB / 448.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006016/0.3721, allocations: 1.439 MB / 449.5 MB, free: 8.715 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01344/0.3856, allocations: 6.563 MB / 456.1 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.3867, allocations: 465 kB / 456.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.3886, allocations: 1.081 MB / 457.6 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.39, allocations: 1.114 MB / 458.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001936/0.3902, allocations: 72 kB / 458.8 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004685/0.3949, allocations: 1.479 MB / 460.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004124/0.3953, allocations: 325.6 kB / 460.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.3968, allocations: 1.37 MB / 462 MB, free: 12.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005883/0.4027, allocations: 3.795 MB / 465.8 MB, free: 8.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.4028, allocations: 0 / 465.8 MB, free: 8.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4028, allocations: 3.938 kB / 465.8 MB, free: 8.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.518e-05/0.4028, allocations: 4 kB / 465.8 MB, free: 8.371 MB / 382.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.005718/0.4086, allocations: 3.805 MB / 469.6 MB, free: 4.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.4086, allocations: 8.031 kB / 469.6 MB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.4088, allocations: 98.52 kB / 469.7 MB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000555/0.4093, allocations: 417.4 kB / 470.1 MB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003486/0.4128, allocations: 2.453 MB / 472.6 MB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.4129, allocations: 33 kB / 472.6 MB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.413, allocations: 55.98 kB / 472.6 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.4144, allocations: 0.7265 MB / 473.4 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.4145, allocations: 4 kB / 473.4 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.4145, allocations: 24 kB / 473.4 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.4146, allocations: 19.98 kB / 473.4 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.4163, allocations: 0.8202 MB / 474.2 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006064/0.4224, allocations: 3.071 MB / 477.3 MB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.4238, allocations: 0.5713 MB / 477.9 MB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.4249, allocations: 0.6438 MB / 478.5 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03567/0.4606, allocations: 30.75 MB / 0.4973 GB, free: 8.359 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007897/0.4614, allocations: 365.6 kB / 0.4977 GB, free: 7.992 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.4615, allocations: 0 / 0.4977 GB, free: 7.992 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002439/0.4639, allocations: 1.103 MB / 0.4988 GB, free: 6.883 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.464, allocations: 67.39 kB / 0.4988 GB, free: 6.805 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003927/0.4679, allocations: 2.935 MB / 0.5017 GB, free: 3.859 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.914e-05/0.468, allocations: 33.7 kB / 0.5017 GB, free: 3.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00141/0.4694, allocations: 1.495 MB / 0.5032 GB, free: 2.316 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.4696, allocations: 178.6 kB / 0.5034 GB, free: 2.141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003291/0.4699, allocations: 230.4 kB / 0.5036 GB, free: 1.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4701, allocations: 330 kB / 0.5039 GB, free: 1.582 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006061/0.4707, allocations: 253.8 kB / 0.5041 GB, free: 1.336 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009584/0.4717, allocations: 0.5981 MB / 0.5047 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.4732, allocations: 0.8973 MB / 0.5056 GB, free: 15.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.4733, allocations: 8 kB / 0.5056 GB, free: 15.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00246/0.4757, allocations: 1.243 MB / 0.5068 GB, free: 14.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.4758, allocations: 16.22 kB / 0.5068 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.4759, allocations: 80 kB / 0.5069 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.435e-05/0.4759, allocations: 16 kB / 0.5069 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007056/0.4766, allocations: 199.7 kB / 0.5071 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.753e-05/0.4767, allocations: 27.86 kB / 0.5071 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009105/0.4776, allocations: 111.3 kB / 0.5072 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.4777, allocations: 68 kB / 0.5073 GB, free: 13.72 MB / 446.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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007209/0.4784, allocations: 441.4 kB / 0.5077 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004069/0.4788, allocations: 401.5 kB / 0.5081 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002683/0.4815, allocations: 1.194 MB / 0.5093 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.4816, allocations: 4 kB / 0.5093 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4816, allocations: 0 / 0.5093 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.4816, allocations: 4 kB / 0.5093 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.485, allocations: 2.092 MB / 0.5113 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.896e-05/0.4851, allocations: 71.98 kB / 0.5114 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004727/0.4856, allocations: 95.8 kB / 0.5115 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.4856, allocations: 8.062 kB / 0.5115 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-05/0.4856, allocations: 35.98 kB / 0.5115 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.4857, allocations: 4 kB / 0.5115 GB, free: 9.297 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4857, allocations: 0 / 0.5115 GB, free: 9.297 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.488, allocations: 1.314 MB / 0.5128 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007628/0.4888, allocations: 490.4 kB / 0.5133 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000267/0.4891, allocations: 12.06 kB / 0.5133 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/0.4897, allocations: 35.95 kB / 0.5133 GB, free: 7.406 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.4899, allocations: 59.89 kB / 0.5134 GB, free: 7.348 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.025e-05/0.49, allocations: 36 kB / 0.5134 GB, free: 7.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002769/0.4927, allocations: 1.907 MB / 0.5153 GB, free: 5.406 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4927, allocations: 0 / 0.5153 GB, free: 5.406 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001504/0.4943, allocations: 0.5891 MB / 0.5159 GB, free: 4.816 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004122/0.4984, allocations: 2.554 MB / 0.5184 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.5002, allocations: 0.8061 MB / 0.5191 GB, free: 1.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5002, allocations: 3.938 kB / 0.5192 GB, free: 1.395 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000838/0.501, allocations: 443 kB / 0.5196 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.5037, allocations: 0.623 MB / 0.5202 GB, free: 316 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2588/0.7624, allocations: 16.45 MB / 0.5362 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.764, allocations: 1.661 MB / 0.5379 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001224/0.7652, allocations: 360.9 kB / 0.5382 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.7663, allocations: 1.215 MB / 0.5394 GB, free: 128 MB / 462.1 MB Notification: Performance of SimCode: time 7.91e-07/0.7663, allocations: 0 / 0.5394 GB, free: 128 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09565/0.8619, allocations: 60.89 MB / 0.5989 GB, free: 74.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.15/18.02, allocations: 7.719 kB / 0.5989 GB, free: 74.05 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)