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.001796/0.001796, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.002114/0.002114, allocations: 211.9 kB / 23.74 MB, free: 4.535 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.555/1.555, allocations: 230.6 MB / 257.5 MB, free: 7.977 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.1883/0.1883, allocations: 38.54 MB / 352.5 MB, free: 12.51 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.003164/0.003164, allocations: 59.91 kB / 492.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3335, allocations: 62.48 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.009108/0.3426, allocations: 6.689 MB / 0.5485 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.3452, allocations: 1.348 MB / 0.5499 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003127/0.3455, allocations: 39.59 kB / 0.5499 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003537/0.3458, allocations: 129.2 kB / 0.55 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.3469, allocations: 430 kB / 0.5504 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.3474, allocations: 238.6 kB / 0.5507 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001302/0.3487, allocations: 1.127 MB / 0.5518 GB, free: 8.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.3491, allocations: 261.1 kB / 0.552 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008075/0.3499, allocations: 0.5262 MB / 0.5525 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008572/0.3507, allocations: 0.5571 MB / 0.5531 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.3508, allocations: 64.84 kB / 0.5531 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.351, allocations: 65.44 kB / 0.5532 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003542/0.3513, allocations: 342.6 kB / 0.5535 GB, free: 7.785 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004725/0.3518, allocations: 403.7 kB / 0.5539 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.3529, allocations: 0.9191 MB / 0.5548 GB, free: 6.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3529, allocations: 0 / 0.5548 GB, free: 6.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3529, allocations: 3.938 kB / 0.5548 GB, free: 6.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.3529, allocations: 4 kB / 0.5548 GB, free: 6.879 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.002203/0.3551, allocations: 1.098 MB / 0.5559 GB, free: 6.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3551, allocations: 17.25 kB / 0.5559 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001537/0.3553, allocations: 110.8 kB / 0.556 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.3555, allocations: 87.67 kB / 0.5561 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3566, allocations: 0.5388 MB / 0.5566 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.3568, allocations: 223.5 kB / 0.5568 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.3569, allocations: 64 kB / 0.5569 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.3585, allocations: 0.8691 MB / 0.5577 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.3585, allocations: 4 kB / 0.5577 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.74e-05/0.3586, allocations: 20 kB / 0.5578 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.3587, allocations: 37.28 kB / 0.5578 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.3601, allocations: 0.6295 MB / 0.5584 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004594/0.3647, allocations: 2.696 MB / 0.561 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.3662, allocations: 0.564 MB / 0.5616 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007352/0.367, allocations: 302.2 kB / 0.5619 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.367, allocations: 4.328 kB / 0.5619 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007606/0.3678, allocations: 346.8 kB / 0.5622 GB, free: 15.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 2.184e-06/0.3678, allocations: 0 / 0.5622 GB, free: 15.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.004218/0.372, allocations: 1.696 MB / 0.5639 GB, free: 13.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.701e-05/0.3721, allocations: 114.8 kB / 0.564 GB, free: 13.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006489/0.3727, allocations: 0.5067 MB / 0.5645 GB, free: 13.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.3728, allocations: 45.7 kB / 0.5645 GB, free: 13.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.3731, allocations: 368.5 kB / 0.5649 GB, free: 12.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.3732, allocations: 146.8 kB / 0.565 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.3734, allocations: 118.3 kB / 0.5651 GB, free: 12.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.3736, allocations: 366.8 kB / 0.5655 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.374, allocations: 225.2 kB / 0.5657 GB, free: 11.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004937/0.3745, allocations: 394.5 kB / 0.5661 GB, free: 11.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009315/0.3754, allocations: 0.6249 MB / 0.5667 GB, free: 10.67 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3754, allocations: 0 / 0.5667 GB, free: 10.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001324/0.3767, allocations: 0.823 MB / 0.5675 GB, free: 9.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.614e-05/0.3768, allocations: 49.69 kB / 0.5675 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3768, allocations: 4 kB / 0.5675 GB, free: 9.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.3771, allocations: 93.59 kB / 0.5676 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004001/0.3775, allocations: 108.1 kB / 0.5677 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002926/0.3804, allocations: 3.052 MB / 0.5707 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.3808, allocations: 39.92 kB / 0.5707 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.697e-05/0.3809, allocations: 35.98 kB / 0.5708 GB, free: 6.207 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.0003812/0.3813, allocations: 274.2 kB / 0.571 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-05/0.3814, allocations: 59.62 kB / 0.5711 GB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.3828, allocations: 0.6328 MB / 0.5717 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.3829, allocations: 8.094 kB / 0.5717 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3829, allocations: 0 / 0.5717 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3829, allocations: 7.969 kB / 0.5717 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002569/0.3854, allocations: 1.433 MB / 0.5731 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3854, allocations: 0 / 0.5731 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.3857, allocations: 55.91 kB / 0.5732 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002881/0.386, allocations: 105.7 kB / 0.5733 GB, free: 3.551 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.3861, allocations: 11.98 kB / 0.5733 GB, free: 3.539 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002828/0.3889, allocations: 3.048 MB / 0.5763 GB, free: 264 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3889, allocations: 0 / 0.5763 GB, free: 264 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.391, allocations: 0.997 MB / 0.5772 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002823/0.3913, allocations: 103.6 kB / 0.5773 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.3914, allocations: 27.98 kB / 0.5774 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.3917, allocations: 43.94 kB / 0.5774 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.3918, allocations: 31.89 kB / 0.5774 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3919, allocations: 19.98 kB / 0.5775 GB, free: 15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004418/0.3923, allocations: 358.8 kB / 0.5778 GB, free: 14.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3923, allocations: 0 / 0.5778 GB, free: 14.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006989/0.393, allocations: 144 kB / 0.5779 GB, free: 14.52 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.002478/0.3955, allocations: 1.559 MB / 0.5795 GB, free: 12.92 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.3971, allocations: 0.8625 MB / 0.5803 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3971, allocations: 0 / 0.5803 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009008/0.398, allocations: 486 kB / 0.5808 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.3988, allocations: 152 kB / 0.5809 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009221/0.4081, allocations: 5.945 MB / 0.5867 GB, free: 5.16 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008758/0.4089, allocations: 0.9761 MB / 0.5877 GB, free: 4.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004281/0.4094, allocations: 105 kB / 0.5878 GB, free: 4.055 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.4098, allocations: 227.3 kB / 0.588 GB, free: 3.832 MB / 430.1 MB Notification: Performance of SimCode: time 2.705e-06/0.4098, allocations: 0 / 0.588 GB, free: 3.832 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05555/0.4653, allocations: 13.75 MB / 0.6014 GB, free: 6.262 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.98, allocations: 18.81 kB / 0.6014 GB, free: 6.25 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 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.17580227000144] Failed to read output from testmodel.py, exit status != 0: 13.09320678700169 13.108604538 12.752456766 Calling exit ...