Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001319, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 214.4 kB / 18.59 MB, free: 4.531 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.458/1.458, allocations: 227.7 MB / 247 MB, free: 10.29 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.002144/0.002144, allocations: 65.19 kB / 307.3 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1125, allocations: 50.53 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1865/0.2991, allocations: 15.3 MB / 373.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.3213, allocations: 20.8 MB / 394 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003319/0.3246, allocations: 28.19 kB / 394 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0044/0.3291, allocations: 1.257 MB / 395.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.3402, allocations: 2.356 MB / 397.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006651/0.3468, allocations: 1.438 MB / 399 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01469/0.3616, allocations: 6.655 MB / 405.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009467/0.3626, allocations: 478.9 kB / 406.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002617/0.3652, allocations: 1.097 MB / 407.3 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.3673, allocations: 1.136 MB / 408.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003047/0.3677, allocations: 86 kB / 408.5 MB, free: 8.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004974/0.3727, allocations: 1.477 MB / 410 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005359/0.3732, allocations: 341.5 kB / 410.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002348/0.3756, allocations: 1.436 MB / 411.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007313/0.3829, allocations: 3.95 MB / 415.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.383, allocations: 4 kB / 415.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.383, allocations: 0 / 415.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.3831, allocations: 3.984 kB / 415.7 MB, free: 1.32 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.006906/0.39, allocations: 3.83 MB / 419.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.335e-05/0.3901, allocations: 8.031 kB / 419.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001592/0.3903, allocations: 98.5 kB / 419.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008228/0.3911, allocations: 410.9 kB / 420 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004905/0.396, allocations: 2.496 MB / 422.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.672e-05/0.3961, allocations: 41 kB / 422.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.3962, allocations: 51.98 kB / 422.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.3978, allocations: 0.7265 MB / 423.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3978, allocations: 0 / 423.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-05/0.3979, allocations: 20 kB / 423.3 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.01e-05/0.3979, allocations: 19.98 kB / 423.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.3997, allocations: 0.8163 MB / 424.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006746/0.4065, allocations: 3.102 MB / 427.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.408, allocations: 0.579 MB / 427.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/0.4091, allocations: 0.654 MB / 428.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03751/0.4466, allocations: 30.76 MB / 459.3 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.4479, allocations: 365.6 kB / 459.6 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.097e-06/0.4479, allocations: 0 / 459.6 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003985/0.4519, allocations: 1.108 MB / 460.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.452, allocations: 59.41 kB / 460.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007178/0.4592, allocations: 3.083 MB / 463.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/0.4594, allocations: 37.7 kB / 463.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002276/0.4617, allocations: 1.569 MB / 465.5 MB, free: 10.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003656/0.4621, allocations: 169.7 kB / 465.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005497/0.4627, allocations: 238.1 kB / 465.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002497/0.4629, allocations: 334 kB / 466.2 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.464, allocations: 245.8 kB / 466.5 MB, free: 9.953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.4656, allocations: 0.6059 MB / 467.1 MB, free: 9.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.4681, allocations: 0.8973 MB / 468 MB, free: 8.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.389e-05/0.4682, allocations: 4 kB / 468 MB, free: 8.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004589/0.4728, allocations: 1.245 MB / 469.2 MB, free: 6.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.4728, allocations: 11.94 kB / 469.2 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001947/0.473, allocations: 80 kB / 469.3 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.064e-05/0.4731, allocations: 23.98 kB / 469.3 MB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.4744, allocations: 204.1 kB / 469.5 MB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.525e-05/0.4744, allocations: 27.86 kB / 469.5 MB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002321/0.4768, allocations: 103.1 kB / 469.6 MB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002873/0.4771, allocations: 67.98 kB / 469.7 MB, free: 6.332 MB / 382.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.001452/0.4785, allocations: 457.4 kB / 470.2 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008824/0.4794, allocations: 395.1 kB / 470.5 MB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005514/0.485, allocations: 1.216 MB / 471.8 MB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.485, allocations: 8 kB / 471.8 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.485, allocations: 0 / 471.8 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.485, allocations: 0 / 471.8 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006298/0.4914, allocations: 2.136 MB / 473.9 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001758/0.4916, allocations: 76.05 kB / 474 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.4924, allocations: 95.86 kB / 474.1 MB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.4925, allocations: 3.938 kB / 474.1 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.4926, allocations: 31.98 kB / 474.1 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.144e-05/0.4926, allocations: 5.125 kB / 474.1 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4926, allocations: 0 / 474.1 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004643/0.4973, allocations: 1.329 MB / 475.4 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.4989, allocations: 492.1 kB / 475.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007932/0.4997, allocations: 12 kB / 475.9 MB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.501, allocations: 31.95 kB / 476 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.5012, allocations: 59.89 kB / 476 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.5014, allocations: 43.92 kB / 476.1 MB, free: 15.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005401/0.5068, allocations: 2.011 MB / 478.1 MB, free: 13.83 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.5068, allocations: 0 / 478.1 MB, free: 13.83 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003025/0.5099, allocations: 0.6011 MB / 478.7 MB, free: 13.23 MB / 398.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.007224/0.5171, allocations: 2.552 MB / 481.2 MB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003229/0.5204, allocations: 0.8205 MB / 482.1 MB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5204, allocations: 1.375 kB / 482.1 MB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.5218, allocations: 443.1 kB / 482.5 MB, free: 9.332 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006316/0.5282, allocations: 0.6581 MB / 483.1 MB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05695/0.5852, allocations: 22.13 MB / 0.4934 GB, free: 240 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.5875, allocations: 1.714 MB / 0.4951 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002564/0.5901, allocations: 361.3 kB / 0.4954 GB, free: 14.13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002534/0.5927, allocations: 1.265 MB / 0.4967 GB, free: 12.87 MB / 430.1 MB Notification: Performance of SimCode: time 1.633e-06/0.5927, allocations: 4 kB / 0.4967 GB, free: 12.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2957/0.8884, allocations: 62.35 MB / 0.5576 GB, free: 132.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.873/10.76, allocations: 0 / 0.5576 GB, free: 132.2 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_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_InvertersExtendedModel.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)