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.001494/0.001494, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001626/0.001626, allocations: 213.1 kB / 23.74 MB, free: 4.656 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.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.1893/0.1893, allocations: 38.53 MB / 352.5 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",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.002027/0.002027, allocations: 63.89 kB / 492.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3653, allocations: 62.46 MB / 0.542 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009171/0.3744, allocations: 6.684 MB / 0.5485 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00281/0.3772, allocations: 1.363 MB / 0.5499 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005107/0.3778, allocations: 37.31 kB / 0.5499 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.3782, allocations: 128.5 kB / 0.55 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.3793, allocations: 426.1 kB / 0.5504 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005689/0.3799, allocations: 246.5 kB / 0.5507 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001565/0.3814, allocations: 1.116 MB / 0.5517 GB, free: 8.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004481/0.3819, allocations: 259.9 kB / 0.552 GB, free: 8.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.383, allocations: 0.5254 MB / 0.5525 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.384, allocations: 0.5613 MB / 0.5531 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.3841, allocations: 65.62 kB / 0.5531 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.3843, allocations: 64.81 kB / 0.5532 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004532/0.3847, allocations: 343.1 kB / 0.5535 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005916/0.3853, allocations: 403.7 kB / 0.5539 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.3867, allocations: 0.9221 MB / 0.5548 GB, free: 6.906 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3867, allocations: 0 / 0.5548 GB, free: 6.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3867, allocations: 0.9688 kB / 0.5548 GB, free: 6.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.3867, allocations: 0 / 0.5548 GB, free: 6.906 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.002324/0.3891, allocations: 1.097 MB / 0.5559 GB, free: 6.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3891, allocations: 14.02 kB / 0.5559 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.3893, allocations: 113.8 kB / 0.556 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.3894, allocations: 92.5 kB / 0.5561 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.3905, allocations: 0.5364 MB / 0.5566 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.3908, allocations: 223.5 kB / 0.5568 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3909, allocations: 67.98 kB / 0.5569 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.3925, allocations: 0.8653 MB / 0.5577 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.3925, allocations: 7.875 kB / 0.5577 GB, free: 4.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.099e-05/0.3926, allocations: 27.98 kB / 0.5578 GB, free: 4.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.3927, allocations: 41.28 kB / 0.5578 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.394, allocations: 0.6179 MB / 0.5584 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004514/0.3985, allocations: 2.688 MB / 0.561 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.4, allocations: 0.5719 MB / 0.5616 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007232/0.4007, allocations: 298.2 kB / 0.5619 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.4007, allocations: 4.328 kB / 0.5619 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007666/0.4015, allocations: 350.7 kB / 0.5622 GB, free: 15.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 4.298e-06/0.4015, allocations: 0 / 0.5622 GB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.004306/0.4058, allocations: 1.7 MB / 0.5639 GB, free: 13.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.921e-05/0.4059, allocations: 114.8 kB / 0.564 GB, free: 13.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006416/0.4066, allocations: 0.5028 MB / 0.5645 GB, free: 13.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.702e-05/0.4066, allocations: 37.7 kB / 0.5645 GB, free: 13.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/0.4069, allocations: 372.5 kB / 0.5649 GB, free: 12.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.4071, allocations: 150.8 kB / 0.565 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.4072, allocations: 118.3 kB / 0.5651 GB, free: 12.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.4075, allocations: 374.7 kB / 0.5655 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003965/0.4079, allocations: 225.2 kB / 0.5657 GB, free: 11.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005087/0.4084, allocations: 390.6 kB / 0.5661 GB, free: 11.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009102/0.4093, allocations: 0.6249 MB / 0.5667 GB, free: 10.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4093, allocations: 4 kB / 0.5667 GB, free: 10.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001467/0.4108, allocations: 0.8271 MB / 0.5675 GB, free: 9.805 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.679e-05/0.4108, allocations: 45.69 kB / 0.5675 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.4108, allocations: 8 kB / 0.5675 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003447/0.4112, allocations: 85.66 kB / 0.5676 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.4116, allocations: 107.8 kB / 0.5677 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/0.4148, allocations: 3.056 MB / 0.5707 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.4153, allocations: 35.92 kB / 0.5707 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.993e-05/0.4153, allocations: 35.98 kB / 0.5708 GB, free: 6.195 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.0005016/0.4158, allocations: 274.2 kB / 0.571 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.375e-05/0.4159, allocations: 59.62 kB / 0.5711 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.4174, allocations: 0.6367 MB / 0.5717 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4174, allocations: 4 kB / 0.5717 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4174, allocations: 4 kB / 0.5717 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.4174, allocations: 3.984 kB / 0.5717 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.4202, allocations: 1.425 MB / 0.5731 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.4202, allocations: 4 kB / 0.5731 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000288/0.4205, allocations: 59.91 kB / 0.5732 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002924/0.4208, allocations: 105.6 kB / 0.5733 GB, free: 3.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.4208, allocations: 11.98 kB / 0.5733 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/0.4239, allocations: 3.048 MB / 0.5763 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4239, allocations: 4.031 kB / 0.5763 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.426, allocations: 0.997 MB / 0.5772 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.4263, allocations: 99.61 kB / 0.5773 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.4264, allocations: 27.98 kB / 0.5774 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.4267, allocations: 43.95 kB / 0.5774 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4269, allocations: 35.88 kB / 0.5774 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.4269, allocations: 11.98 kB / 0.5775 GB, free: 15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005069/0.4274, allocations: 358.8 kB / 0.5778 GB, free: 14.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4274, allocations: 0 / 0.5778 GB, free: 14.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007927/0.4282, allocations: 152 kB / 0.5779 GB, free: 14.5 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.002463/0.4307, allocations: 1.562 MB / 0.5795 GB, free: 12.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.4323, allocations: 0.8547 MB / 0.5803 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4323, allocations: 0 / 0.5803 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009389/0.4332, allocations: 490.3 kB / 0.5808 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009135/0.4341, allocations: 151.8 kB / 0.5809 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008967/0.4431, allocations: 5.952 MB / 0.5867 GB, free: 5.145 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007151/0.4438, allocations: 0.9722 MB / 0.5877 GB, free: 4.145 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003052/0.4441, allocations: 104.9 kB / 0.5878 GB, free: 4.043 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003018/0.4444, allocations: 219.4 kB / 0.588 GB, free: 3.828 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4444, allocations: 8 kB / 0.588 GB, free: 3.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05895/0.5034, allocations: 13.75 MB / 0.6014 GB, free: 6.246 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.9, allocations: 2.812 kB / 0.6014 GB, free: 6.246 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.808022804092616] Failed to read output from testmodel.py, exit status != 0: 13.022636102046818 13.053423832 12.661057733 Calling exit ...