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.001303/0.001303, allocations: 117.6 kB / 17.78 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.00134, allocations: 204.7 kB / 18.74 MB, free: 4.289 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.439/1.439, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.001916/0.001916, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.273, allocations: 50.55 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01594/0.289, allocations: 15.31 MB / 424.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02629/0.3154, allocations: 20.78 MB / 445.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003036/0.3185, allocations: 87.25 kB / 445.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003857/0.3224, allocations: 1.266 MB / 446.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009782/0.3322, allocations: 2.344 MB / 448.8 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006582/0.3388, allocations: 1.443 MB / 450.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01236/0.3512, allocations: 6.679 MB / 457 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.3523, allocations: 485.5 kB / 457.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001995/0.3543, allocations: 1.112 MB / 458.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001411/0.3557, allocations: 1.145 MB / 459.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.3559, allocations: 76 kB / 459.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004704/0.3606, allocations: 1.482 MB / 461.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003699/0.361, allocations: 333.5 kB / 461.6 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00152/0.3625, allocations: 1.428 MB / 463 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005572/0.3681, allocations: 4.005 MB / 467 MB, free: 7.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3681, allocations: 0 / 467 MB, free: 7.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3682, allocations: 0 / 467 MB, free: 7.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.52e-05/0.3682, allocations: 0 / 467 MB, free: 7.156 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.005951/0.3742, allocations: 3.962 MB / 471 MB, free: 3.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.3743, allocations: 8.031 kB / 471 MB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.3744, allocations: 102.5 kB / 471.1 MB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005521/0.375, allocations: 429.3 kB / 471.5 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003514/0.3785, allocations: 2.503 MB / 474 MB, free: 4 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.3785, allocations: 33.05 kB / 474 MB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.3787, allocations: 59.89 kB / 474.1 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3801, allocations: 0.7304 MB / 474.8 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.3801, allocations: 0 / 474.8 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.137e-05/0.3802, allocations: 20 kB / 474.8 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.3802, allocations: 23.98 kB / 474.9 MB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.3819, allocations: 0.8124 MB / 475.7 MB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005649/0.3875, allocations: 3.122 MB / 478.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.3889, allocations: 0.5746 MB / 479.4 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.39, allocations: 0.6477 MB / 480 MB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03435/0.4243, allocations: 30.76 MB / 0.4988 GB, free: 6.867 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008092/0.4252, allocations: 365.7 kB / 0.4992 GB, free: 6.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 4.768e-06/0.4252, allocations: 3.984 kB / 0.4992 GB, free: 6.496 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002452/0.4277, allocations: 1.122 MB / 0.5003 GB, free: 5.367 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.4277, allocations: 67.34 kB / 0.5003 GB, free: 5.289 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004093/0.4318, allocations: 3.083 MB / 0.5033 GB, free: 2.207 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.006e-05/0.4319, allocations: 41.64 kB / 0.5034 GB, free: 2.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.4334, allocations: 1.589 MB / 0.5049 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.4336, allocations: 178.5 kB / 0.5051 GB, free: 396 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.434, allocations: 230.4 kB / 0.5053 GB, free: 160 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.4342, allocations: 337.9 kB / 0.5056 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006198/0.4348, allocations: 249.9 kB / 0.5059 GB, free: 15.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009305/0.4357, allocations: 0.5981 MB / 0.5065 GB, free: 14.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.4373, allocations: 0.8934 MB / 0.5073 GB, free: 13.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.4374, allocations: 4 kB / 0.5073 GB, free: 13.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002428/0.4398, allocations: 1.258 MB / 0.5086 GB, free: 12.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.4398, allocations: 12 kB / 0.5086 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/0.4399, allocations: 84.86 kB / 0.5087 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.391e-05/0.44, allocations: 16 kB / 0.5087 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007213/0.4407, allocations: 207.6 kB / 0.5089 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/0.4408, allocations: 23.94 kB / 0.5089 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009711/0.4417, allocations: 107.3 kB / 0.509 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.4419, allocations: 71.98 kB / 0.5091 GB, free: 11.95 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.0007917/0.4427, allocations: 457.4 kB / 0.5095 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004065/0.4431, allocations: 421.3 kB / 0.5099 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.4458, allocations: 1.199 MB / 0.5111 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.4459, allocations: 4 kB / 0.5111 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4459, allocations: 0 / 0.5111 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4459, allocations: 7.938 kB / 0.5111 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.4493, allocations: 2.158 MB / 0.5132 GB, free: 7.629 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.384e-05/0.4495, allocations: 68 kB / 0.5133 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005129/0.45, allocations: 91.86 kB / 0.5134 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.45, allocations: 4 kB / 0.5134 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.4501, allocations: 31.98 kB / 0.5134 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.4501, allocations: 0 / 0.5134 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4501, allocations: 12.06 kB / 0.5134 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002456/0.4525, allocations: 1.347 MB / 0.5147 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008432/0.4534, allocations: 0.4983 MB / 0.5152 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.4537, allocations: 12 kB / 0.5152 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006358/0.4543, allocations: 32.02 kB / 0.5152 GB, free: 5.488 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.4545, allocations: 67.83 kB / 0.5153 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.847e-05/0.4546, allocations: 39.98 kB / 0.5153 GB, free: 5.383 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002981/0.4576, allocations: 2.007 MB / 0.5173 GB, free: 3.383 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4576, allocations: 0 / 0.5173 GB, free: 3.383 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001423/0.459, allocations: 0.6008 MB / 0.5179 GB, free: 2.781 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.003982/0.463, allocations: 2.562 MB / 0.5204 GB, free: 192 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.4648, allocations: 0.814 MB / 0.5212 GB, free: 15.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4648, allocations: 8.062 kB / 0.5212 GB, free: 15.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007853/0.4656, allocations: 439 kB / 0.5216 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002783/0.4684, allocations: 0.6525 MB / 0.5223 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2394/0.7078, allocations: 17.05 MB / 0.5389 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.709, allocations: 1.713 MB / 0.5406 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001162/0.7101, allocations: 364.9 kB / 0.5409 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/0.7112, allocations: 1.266 MB / 0.5422 GB, free: 127.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.7112, allocations: 3.344 kB / 0.5422 GB, free: 127.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09774/0.809, allocations: 63.03 MB / 0.6037 GB, free: 69.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/17.64, allocations: 7.844 kB / 0.6037 GB, free: 69.33 MB / 462.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)