Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",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.001735/0.001735, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001933/0.001934, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1898/0.1898, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 67.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2969, allocations: 58.05 MB / 0.5036 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006448/0.3034, allocations: 6.938 MB / 0.5104 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003156/0.3066, allocations: 2.028 MB / 0.5124 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004044/0.307, allocations: 28.44 kB / 0.5124 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.3083, allocations: 498 kB / 0.5129 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001204/0.3095, allocations: 0.5581 MB / 0.5134 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009448/0.3104, allocations: 397.5 kB / 0.5138 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001556/0.312, allocations: 1.398 MB / 0.5152 GB, free: 156 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.3132, allocations: 0.8235 MB / 0.516 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001679/0.3149, allocations: 0.6163 MB / 0.5166 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.3166, allocations: 0.6744 MB / 0.5172 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002553/0.3168, allocations: 97.75 kB / 0.5173 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/0.3182, allocations: 0.5144 MB / 0.5178 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006528/0.3189, allocations: 0.4971 MB / 0.5183 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007472/0.3197, allocations: 0.5616 MB / 0.5189 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002156/0.3218, allocations: 1.543 MB / 0.5204 GB, free: 14.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3218, allocations: 0 / 0.5204 GB, free: 14.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3218, allocations: 1.625 kB / 0.5204 GB, free: 14.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.835e-05/0.3219, allocations: 0 / 0.5204 GB, free: 14.07 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003363/0.3252, allocations: 1.596 MB / 0.5219 GB, free: 13.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3253, allocations: 13.64 kB / 0.5219 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002247/0.3255, allocations: 164 kB / 0.5221 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008037/0.3263, allocations: 161.1 kB / 0.5222 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.3277, allocations: 0.728 MB / 0.523 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.3279, allocations: 185.7 kB / 0.5231 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002318/0.3281, allocations: 99.88 kB / 0.5232 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00285/0.331, allocations: 1.539 MB / 0.5247 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.331, allocations: 2.469 kB / 0.5247 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.3311, allocations: 45.75 kB / 0.5248 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.3313, allocations: 66.92 kB / 0.5248 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.3336, allocations: 1.171 MB / 0.526 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006572/0.3402, allocations: 4.786 MB / 0.5307 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002991/0.3432, allocations: 1.127 MB / 0.5318 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.3446, allocations: 0.5621 MB / 0.5323 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.593e-05/0.3446, allocations: 12.42 kB / 0.5323 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001475/0.3461, allocations: 0.7104 MB / 0.533 GB, free: 6.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.855e-06/0.3461, allocations: 0 / 0.533 GB, free: 6.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.007581/0.3537, allocations: 3.224 MB / 0.5362 GB, free: 4.293 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.3538, allocations: 121.1 kB / 0.5363 GB, free: 4.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.3546, allocations: 0.6029 MB / 0.5369 GB, free: 3.801 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.177e-05/0.3547, allocations: 46.67 kB / 0.5369 GB, free: 3.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004337/0.3551, allocations: 469.6 kB / 0.5374 GB, free: 3.348 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.3554, allocations: 280.8 kB / 0.5376 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003295/0.3558, allocations: 200 kB / 0.5378 GB, free: 2.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.356, allocations: 392.1 kB / 0.5382 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007388/0.3567, allocations: 485.6 kB / 0.5387 GB, free: 2.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009421/0.3577, allocations: 0.7452 MB / 0.5394 GB, free: 1.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.3593, allocations: 1.258 MB / 0.5406 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3593, allocations: 1.375 kB / 0.5406 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002532/0.3619, allocations: 1.588 MB / 0.5422 GB, free: 92 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.59e-05/0.362, allocations: 67.61 kB / 0.5422 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001986/0.3639, allocations: 1.334 MB / 0.5435 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004068/0.3644, allocations: 113.6 kB / 0.5436 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007455/0.3651, allocations: 195.7 kB / 0.5438 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.3682, allocations: 3.361 MB / 0.5471 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/0.369, allocations: 72.02 kB / 0.5472 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.3691, allocations: 75.89 kB / 0.5473 GB, free: 11.01 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006428/0.3698, allocations: 385.5 kB / 0.5476 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.37, allocations: 83.47 kB / 0.5477 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002936/0.3729, allocations: 1.266 MB / 0.5489 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.7e-05/0.373, allocations: 20 kB / 0.549 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.373, allocations: 0 / 0.549 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.373, allocations: 7.922 kB / 0.549 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004503/0.3775, allocations: 2.431 MB / 0.5513 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.3775, allocations: 0 / 0.5513 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000719/0.3782, allocations: 139.8 kB / 0.5515 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.3784, allocations: 36.88 kB / 0.5515 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.498e-05/0.3784, allocations: 31.97 kB / 0.5515 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.3798, allocations: 1.638 MB / 0.5531 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.3798, allocations: 8.016 kB / 0.5531 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004047/0.3839, allocations: 1.917 MB / 0.555 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004129/0.3843, allocations: 244.5 kB / 0.5552 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001984/0.3845, allocations: 79.94 kB / 0.5553 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007487/0.3853, allocations: 91.81 kB / 0.5554 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.3854, allocations: 52.58 kB / 0.5555 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-05/0.3855, allocations: 39.97 kB / 0.5555 GB, free: 2.215 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005168/0.386, allocations: 394.8 kB / 0.5559 GB, free: 1.828 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.386, allocations: 4 kB / 0.5559 GB, free: 1.824 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001026/0.3871, allocations: 236 kB / 0.5561 GB, free: 1.594 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004478/0.3915, allocations: 2.554 MB / 0.5586 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002828/0.3944, allocations: 1.635 MB / 0.5602 GB, free: 13.31 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3944, allocations: 0 / 0.5602 GB, free: 13.31 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.3958, allocations: 0.6593 MB / 0.5608 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.3967, allocations: 176.4 kB / 0.561 GB, free: 12.47 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/0.4099, allocations: 9.238 MB / 0.57 GB, free: 2.812 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000851/0.4108, allocations: 1.111 MB / 0.5711 GB, free: 1.672 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000638/0.4114, allocations: 242.5 kB / 0.5713 GB, free: 1.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004943/0.4119, allocations: 327.3 kB / 0.5717 GB, free: 1.109 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4119, allocations: 0 / 0.5717 GB, free: 1.109 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05208/0.464, allocations: 18.83 MB / 0.59 GB, free: 14.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.38, allocations: 15.23 kB / 0.5901 GB, free: 14.43 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)