Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 202.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1894/0.1894, allocations: 38.53 MB / 353.2 MB, free: 12.54 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 63.91 kB / 493.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3416, allocations: 62.47 MB / 0.5428 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009132/0.3507, allocations: 6.68 MB / 0.5493 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003435/0.3541, allocations: 1.356 MB / 0.5506 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006577/0.3548, allocations: 36.34 kB / 0.5507 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004306/0.3552, allocations: 128.9 kB / 0.5508 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001448/0.3567, allocations: 430.6 kB / 0.5512 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.3574, allocations: 241.7 kB / 0.5514 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.359, allocations: 1.117 MB / 0.5525 GB, free: 8.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004561/0.3595, allocations: 259.3 kB / 0.5528 GB, free: 8.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001163/0.3606, allocations: 0.5341 MB / 0.5533 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.3616, allocations: 0.5574 MB / 0.5538 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.3618, allocations: 65.12 kB / 0.5539 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.3619, allocations: 64.72 kB / 0.554 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004095/0.3623, allocations: 347.1 kB / 0.5543 GB, free: 7.781 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004857/0.3628, allocations: 399.7 kB / 0.5547 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.3641, allocations: 0.9221 MB / 0.5556 GB, free: 6.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3641, allocations: 1.094 kB / 0.5556 GB, free: 6.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3641, allocations: 0 / 0.5556 GB, free: 6.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.3642, allocations: 0 / 0.5556 GB, free: 6.883 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002572/0.3667, allocations: 1.101 MB / 0.5566 GB, free: 6.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.3668, allocations: 14.14 kB / 0.5567 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.606e-05/0.3668, allocations: 20.27 kB / 0.5567 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.367, allocations: 110.3 kB / 0.5568 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3672, allocations: 92.31 kB / 0.5569 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.3683, allocations: 0.5435 MB / 0.5574 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.3685, allocations: 215.5 kB / 0.5576 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.3686, allocations: 67.94 kB / 0.5577 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.3703, allocations: 0.8691 MB / 0.5585 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.3703, allocations: 3.938 kB / 0.5585 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.971e-05/0.3704, allocations: 28 kB / 0.5585 GB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/0.3705, allocations: 41.28 kB / 0.5586 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001282/0.3718, allocations: 0.614 MB / 0.5592 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004216/0.376, allocations: 2.696 MB / 0.5618 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.3777, allocations: 0.568 MB / 0.5624 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007829/0.3785, allocations: 294.2 kB / 0.5627 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.3785, allocations: 8.328 kB / 0.5627 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007597/0.3793, allocations: 354.6 kB / 0.563 GB, free: 15.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 1.914e-06/0.3793, allocations: 0 / 0.563 GB, free: 15.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.004697/0.384, allocations: 1.692 MB / 0.5647 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3841, allocations: 118.8 kB / 0.5648 GB, free: 13.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007038/0.3848, allocations: 0.5067 MB / 0.5653 GB, free: 13.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.727e-05/0.3848, allocations: 41.7 kB / 0.5653 GB, free: 13.03 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003669/0.3852, allocations: 368.5 kB / 0.5657 GB, free: 12.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.3853, allocations: 146.8 kB / 0.5658 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.3855, allocations: 118.3 kB / 0.5659 GB, free: 12.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.3857, allocations: 374.8 kB / 0.5663 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003653/0.3861, allocations: 225.2 kB / 0.5665 GB, free: 11.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004901/0.3866, allocations: 386.6 kB / 0.5668 GB, free: 11.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008397/0.3874, allocations: 0.6249 MB / 0.5675 GB, free: 10.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3874, allocations: 4 kB / 0.5675 GB, free: 10.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001403/0.3888, allocations: 0.8229 MB / 0.5683 GB, free: 9.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.569e-05/0.3889, allocations: 49.69 kB / 0.5683 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3889, allocations: 4 kB / 0.5683 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003268/0.3892, allocations: 90 kB / 0.5684 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.3897, allocations: 107.8 kB / 0.5685 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002989/0.3926, allocations: 3.052 MB / 0.5715 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.3931, allocations: 40.02 kB / 0.5715 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-05/0.3932, allocations: 39.92 kB / 0.5716 GB, free: 6.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005021/0.3937, allocations: 266.2 kB / 0.5718 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.579e-05/0.3938, allocations: 59.72 kB / 0.5719 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.3954, allocations: 0.6367 MB / 0.5725 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3954, allocations: 4 kB / 0.5725 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3954, allocations: 4 kB / 0.5725 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.3954, allocations: 3.984 kB / 0.5725 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.3981, allocations: 1.429 MB / 0.5739 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3981, allocations: 4 kB / 0.5739 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/0.3984, allocations: 63.91 kB / 0.574 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003119/0.3987, allocations: 101.5 kB / 0.5741 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.384e-05/0.3988, allocations: 15.98 kB / 0.5741 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/0.4016, allocations: 3.044 MB / 0.5771 GB, free: 244 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.4016, allocations: 4.031 kB / 0.5771 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/0.4038, allocations: 0.9931 MB / 0.578 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.4041, allocations: 103.6 kB / 0.5781 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.4042, allocations: 27.98 kB / 0.5781 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004029/0.4046, allocations: 39.94 kB / 0.5782 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.4046, allocations: 39.83 kB / 0.5782 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.4047, allocations: 15.98 kB / 0.5782 GB, free: 14.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004522/0.4051, allocations: 358.8 kB / 0.5786 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4051, allocations: 4 kB / 0.5786 GB, free: 14.63 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000787/0.4059, allocations: 144 kB / 0.5787 GB, free: 14.49 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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,1,100.0%), (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.002624/0.4085, allocations: 1.559 MB / 0.5802 GB, free: 12.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.4102, allocations: 0.8553 MB / 0.5811 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.4102, allocations: 64 / 0.5811 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009418/0.4111, allocations: 493.3 kB / 0.5816 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.4121, allocations: 144.1 kB / 0.5817 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008761/0.4208, allocations: 5.96 MB / 0.5875 GB, free: 5.133 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006586/0.4215, allocations: 0.9683 MB / 0.5885 GB, free: 4.137 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.4218, allocations: 112.9 kB / 0.5886 GB, free: 4.027 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003172/0.4221, allocations: 227.3 kB / 0.5888 GB, free: 3.805 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4221, allocations: 0 / 0.5888 GB, free: 3.805 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04762/0.4697, allocations: 13.78 MB / 0.6022 GB, free: 6.219 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.97, allocations: 14.95 kB / 0.6022 GB, free: 6.207 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.956520085979719] Failed to read output from testmodel.py, exit status != 0: 13.153789022006094 13.18425049 12.814387693 Calling exit ...