Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_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.001356/0.001356, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001457/0.001457, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2704, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01642/0.2869, allocations: 15.31 MB / 424.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02637/0.3133, allocations: 20.77 MB / 444.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.3156, allocations: 91.25 kB / 444.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003299/0.3189, allocations: 1.263 MB / 446.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007457/0.3264, allocations: 2.355 MB / 448.5 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004625/0.3311, allocations: 1.436 MB / 450 MB, free: 8.141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.342, allocations: 6.679 MB / 456.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009327/0.3429, allocations: 481.5 kB / 457.1 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.3448, allocations: 1.112 MB / 458.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.3463, allocations: 1.153 MB / 459.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.3465, allocations: 75.94 kB / 459.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00393/0.3504, allocations: 1.479 MB / 460.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.3508, allocations: 333.5 kB / 461.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.3523, allocations: 1.428 MB / 462.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00582/0.3582, allocations: 4.013 MB / 466.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3582, allocations: 0 / 466.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3582, allocations: 0 / 466.7 MB, free: 7.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.215e-05/0.3583, allocations: 0 / 466.7 MB, free: 7.312 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.005745/0.364, allocations: 3.962 MB / 470.7 MB, free: 3.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3641, allocations: 8.031 kB / 470.7 MB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.3642, allocations: 98.5 kB / 470.8 MB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004846/0.3647, allocations: 433.3 kB / 471.2 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/0.3685, allocations: 2.503 MB / 473.7 MB, free: 164 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.3685, allocations: 37 kB / 473.7 MB, free: 128 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.3687, allocations: 55.94 kB / 473.8 MB, free: 72 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3702, allocations: 0.7382 MB / 474.5 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3702, allocations: 0 / 474.5 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.075e-05/0.3703, allocations: 16 kB / 474.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.3703, allocations: 19.98 kB / 474.6 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.3719, allocations: 0.8163 MB / 475.4 MB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005316/0.3773, allocations: 3.114 MB / 478.5 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.3785, allocations: 0.5713 MB / 479.1 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.3796, allocations: 0.6477 MB / 479.7 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03274/0.4123, allocations: 30.77 MB / 0.4985 GB, free: 7.023 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007655/0.4131, allocations: 361.7 kB / 0.4989 GB, free: 6.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.4131, allocations: 0 / 0.4989 GB, free: 6.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002298/0.4154, allocations: 1.126 MB / 0.5 GB, free: 5.523 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4155, allocations: 63.33 kB / 0.5 GB, free: 5.449 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003943/0.4195, allocations: 3.087 MB / 0.503 GB, free: 2.363 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.016e-05/0.4195, allocations: 33.7 kB / 0.5031 GB, free: 2.324 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.421, allocations: 1.589 MB / 0.5046 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.4212, allocations: 178.5 kB / 0.5048 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003146/0.4215, allocations: 230.4 kB / 0.505 GB, free: 328 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.4217, allocations: 338 kB / 0.5053 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.4223, allocations: 241.8 kB / 0.5056 GB, free: 15.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008611/0.4232, allocations: 0.5942 MB / 0.5061 GB, free: 14.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.4246, allocations: 0.9051 MB / 0.507 GB, free: 13.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.4247, allocations: 4 kB / 0.507 GB, free: 13.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002212/0.4269, allocations: 1.266 MB / 0.5083 GB, free: 12.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.4269, allocations: 8 kB / 0.5083 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.427, allocations: 80 kB / 0.5084 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/0.4271, allocations: 20.81 kB / 0.5084 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007193/0.4278, allocations: 207.6 kB / 0.5086 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.639e-05/0.4278, allocations: 23.92 kB / 0.5086 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009088/0.4288, allocations: 115.3 kB / 0.5087 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.4289, allocations: 64 kB / 0.5088 GB, free: 12.12 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.0007206/0.4296, allocations: 461.4 kB / 0.5092 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004051/0.43, allocations: 417.3 kB / 0.5096 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.4326, allocations: 1.199 MB / 0.5108 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.4326, allocations: 7.984 kB / 0.5108 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4326, allocations: 0 / 0.5108 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4326, allocations: 8 kB / 0.5108 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003378/0.436, allocations: 2.154 MB / 0.5129 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001051/0.4361, allocations: 71.98 kB / 0.513 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004731/0.4366, allocations: 91.86 kB / 0.5131 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.4366, allocations: 4 kB / 0.5131 GB, free: 7.629 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-05/0.4367, allocations: 32 kB / 0.5131 GB, free: 7.598 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.4367, allocations: 4 kB / 0.5131 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4367, allocations: 4.062 kB / 0.5131 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.4393, allocations: 1.343 MB / 0.5144 GB, free: 6.219 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008814/0.4402, allocations: 0.5022 MB / 0.5149 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002598/0.4405, allocations: 8 kB / 0.5149 GB, free: 5.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006538/0.4411, allocations: 31.95 kB / 0.5149 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.4413, allocations: 67.89 kB / 0.515 GB, free: 5.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.348e-05/0.4414, allocations: 39.94 kB / 0.515 GB, free: 5.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00298/0.4444, allocations: 2.01 MB / 0.517 GB, free: 3.547 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4444, allocations: 0 / 0.517 GB, free: 3.547 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001456/0.4458, allocations: 0.5969 MB / 0.5176 GB, free: 2.949 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.003821/0.4497, allocations: 2.574 MB / 0.5201 GB, free: 352 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.4514, allocations: 0.8058 MB / 0.5209 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4514, allocations: 8.312 kB / 0.5209 GB, free: 15.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007911/0.4522, allocations: 439 kB / 0.5213 GB, free: 15.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.4548, allocations: 0.6588 MB / 0.522 GB, free: 14.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2187/0.6735, allocations: 17.04 MB / 0.5386 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.6746, allocations: 1.71 MB / 0.5403 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.6756, allocations: 365.1 kB / 0.5406 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009143/0.6765, allocations: 1.264 MB / 0.5418 GB, free: 127.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.6765, allocations: 0 / 0.5418 GB, free: 127.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09082/0.7673, allocations: 63 MB / 0.6034 GB, free: 69.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/17.35, allocations: 19.03 kB / 0.6034 GB, free: 69.45 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)