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.002014/0.002014, allocations: 105.1 kB / 21.22 MB, free: 0.6211 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.002308/0.002308, allocations: 221.3 kB / 24.52 MB, free: 3.906 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.493/1.493, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.1868/0.1868, allocations: 38.55 MB / 353.2 MB, free: 12.3 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.002091/0.002091, allocations: 63.89 kB / 493.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4038, allocations: 62.46 MB / 0.5427 GB, free: 420 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01334/0.4172, allocations: 6.201 MB / 0.5488 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004128/0.4213, allocations: 1.286 MB / 0.55 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000679/0.422, allocations: 36.47 kB / 0.5501 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005108/0.4225, allocations: 130 kB / 0.5502 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001778/0.4243, allocations: 425.9 kB / 0.5506 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009577/0.4252, allocations: 237.7 kB / 0.5508 GB, free: 10 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.4276, allocations: 1.128 MB / 0.5519 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006327/0.4282, allocations: 255.8 kB / 0.5522 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/0.4297, allocations: 0.5301 MB / 0.5527 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.431, allocations: 0.5576 MB / 0.5532 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001767/0.4312, allocations: 65.53 kB / 0.5533 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.4315, allocations: 64.38 kB / 0.5533 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000548/0.432, allocations: 347.4 kB / 0.5537 GB, free: 8.355 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006324/0.4326, allocations: 327.5 kB / 0.554 GB, free: 8.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.4344, allocations: 0.9261 MB / 0.5549 GB, free: 7.531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.4344, allocations: 1.031 kB / 0.5549 GB, free: 7.531 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.4344, allocations: 3.938 kB / 0.5549 GB, free: 7.527 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.4344, allocations: 3.938 kB / 0.5549 GB, free: 7.523 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.003277/0.4377, allocations: 1.096 MB / 0.556 GB, free: 6.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.314e-05/0.4378, allocations: 13.95 kB / 0.556 GB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.584e-05/0.4378, allocations: 20.09 kB / 0.556 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002114/0.438, allocations: 111 kB / 0.5561 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.4382, allocations: 91.77 kB / 0.5562 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.4394, allocations: 0.5476 MB / 0.5567 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.4397, allocations: 219.5 kB / 0.5569 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.4398, allocations: 64 kB / 0.557 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.4424, allocations: 0.8614 MB / 0.5578 GB, free: 4.711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.4424, allocations: 3.938 kB / 0.5578 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.4425, allocations: 27.98 kB / 0.5579 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001968/0.4427, allocations: 37.3 kB / 0.5579 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001981/0.4447, allocations: 0.6256 MB / 0.5585 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006434/0.4511, allocations: 2.544 MB / 0.561 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002604/0.4537, allocations: 0.5656 MB / 0.5616 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.4548, allocations: 296.3 kB / 0.5618 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-05/0.4548, allocations: 8.328 kB / 0.5618 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.4559, allocations: 350.7 kB / 0.5622 GB, free: 132 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 3.136e-06/0.4559, allocations: 0 / 0.5622 GB, free: 132 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.00719/0.4631, allocations: 1.696 MB / 0.5638 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/0.4632, allocations: 110.8 kB / 0.5639 GB, free: 14.26 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.4645, allocations: 0.5067 MB / 0.5644 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.592e-05/0.4646, allocations: 41.64 kB / 0.5645 GB, free: 13.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006433/0.4652, allocations: 372.5 kB / 0.5648 GB, free: 13.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.4655, allocations: 150.8 kB / 0.565 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/0.4658, allocations: 122.3 kB / 0.5651 GB, free: 13.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002872/0.4661, allocations: 370.8 kB / 0.5654 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005775/0.4666, allocations: 258.9 kB / 0.5657 GB, free: 12.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007018/0.4673, allocations: 420.3 kB / 0.5661 GB, free: 11.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.4688, allocations: 0.621 MB / 0.5667 GB, free: 11.24 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.4688, allocations: 0 / 0.5667 GB, free: 11.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002152/0.4709, allocations: 0.8441 MB / 0.5675 GB, free: 10.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.471, allocations: 48.5 kB / 0.5676 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.471, allocations: 8 kB / 0.5676 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/0.4716, allocations: 90 kB / 0.5677 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/0.4723, allocations: 107.8 kB / 0.5678 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004133/0.4764, allocations: 3.04 MB / 0.5707 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008686/0.4773, allocations: 36.02 kB / 0.5708 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.4774, allocations: 39.92 kB / 0.5708 GB, free: 6.762 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.0007769/0.4782, allocations: 282.2 kB / 0.5711 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.4784, allocations: 59.62 kB / 0.5711 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002193/0.4806, allocations: 0.625 MB / 0.5717 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.709e-06/0.4806, allocations: 4 kB / 0.5717 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4806, allocations: 0 / 0.5717 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.4806, allocations: 7.984 kB / 0.5718 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003691/0.4843, allocations: 1.37 MB / 0.5731 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.4843, allocations: 4 kB / 0.5731 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.4846, allocations: 56.03 kB / 0.5731 GB, free: 4.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003277/0.485, allocations: 101.5 kB / 0.5732 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.485, allocations: 19.98 kB / 0.5733 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003009/0.488, allocations: 3.04 MB / 0.5762 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.488, allocations: 0 / 0.5762 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.4902, allocations: 0.9971 MB / 0.5772 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.4905, allocations: 107.5 kB / 0.5773 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.4906, allocations: 23.98 kB / 0.5773 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.491, allocations: 35.95 kB / 0.5774 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.52e-05/0.4911, allocations: 35.88 kB / 0.5774 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.216e-05/0.4912, allocations: 19.98 kB / 0.5774 GB, free: 15.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004549/0.4916, allocations: 354.8 kB / 0.5778 GB, free: 15.29 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4916, allocations: 0 / 0.5778 GB, free: 15.29 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000865/0.4925, allocations: 152 kB / 0.5779 GB, free: 15.14 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.002786/0.4953, allocations: 1.56 MB / 0.5794 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.4971, allocations: 0.8842 MB / 0.5803 GB, free: 12.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4971, allocations: 4 kB / 0.5803 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009607/0.4981, allocations: 481.8 kB / 0.5808 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009289/0.499, allocations: 157.5 kB / 0.5809 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009544/0.5085, allocations: 6.087 MB / 0.5868 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.509, allocations: 370.3 kB / 0.5872 GB, free: 5.191 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003833/0.5094, allocations: 112.9 kB / 0.5873 GB, free: 5.082 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00034/0.5097, allocations: 223.4 kB / 0.5875 GB, free: 4.863 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5097, allocations: 0 / 0.5875 GB, free: 4.863 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05373/0.5634, allocations: 14.2 MB / 0.6014 GB, free: 6.941 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.21, allocations: 11.81 kB / 0.6014 GB, free: 6.934 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: 16.157062435988337] Failed to read output from testmodel.py, exit status != 0: 13.380060440977104 13.399726816 12.960276801 Calling exit ...