Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.001245/0.001245, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001463/0.001463, allocations: 208.1 kB / 23.73 MB, free: 4.379 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.52/1.52, allocations: 230.6 MB / 257.5 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.1899/0.1899, allocations: 38.56 MB / 352.5 MB, free: 12.31 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.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.002033/0.002033, allocations: 59.91 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3526, allocations: 62.46 MB / 0.5419 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009709/0.3623, allocations: 6.268 MB / 0.5481 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003897/0.3662, allocations: 1.612 MB / 0.5496 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004814/0.3666, allocations: 37.06 kB / 0.5497 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005602/0.3672, allocations: 146.7 kB / 0.5498 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.3683, allocations: 457 kB / 0.5502 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009004/0.3692, allocations: 347.7 kB / 0.5506 GB, free: 9.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001998/0.3712, allocations: 1.512 MB / 0.5521 GB, free: 8.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004202/0.3716, allocations: 254.5 kB / 0.5523 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.3727, allocations: 0.6361 MB / 0.5529 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001088/0.3738, allocations: 0.6952 MB / 0.5536 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001772/0.3739, allocations: 97.91 kB / 0.5537 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.3742, allocations: 98.72 kB / 0.5538 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004979/0.3747, allocations: 424.2 kB / 0.5542 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.3752, allocations: 396.3 kB / 0.5546 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.3766, allocations: 1.2 MB / 0.5557 GB, free: 6.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3766, allocations: 0 / 0.5557 GB, free: 6.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3766, allocations: 0 / 0.5557 GB, free: 6.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.3766, allocations: 4 kB / 0.5557 GB, free: 6.125 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002911/0.3795, allocations: 1.253 MB / 0.557 GB, free: 4.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.3796, allocations: 19.92 kB / 0.557 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001701/0.3798, allocations: 114.7 kB / 0.5571 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.38, allocations: 100.4 kB / 0.5572 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.3816, allocations: 0.665 MB / 0.5578 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006883/0.3823, allocations: 0.7558 MB / 0.5586 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3825, allocations: 64 kB / 0.5586 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.3848, allocations: 1.145 MB / 0.5598 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.3848, allocations: 0 / 0.5598 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.047e-05/0.3849, allocations: 28 kB / 0.5598 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.385, allocations: 37.28 kB / 0.5598 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002889/0.3879, allocations: 1.172 MB / 0.561 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006305/0.3942, allocations: 3.258 MB / 0.5641 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00258/0.3968, allocations: 0.9098 MB / 0.565 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.3986, allocations: 0.655 MB / 0.5657 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.525e-05/0.3986, allocations: 12.5 kB / 0.5657 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001666/0.4003, allocations: 0.6801 MB / 0.5663 GB, free: 10.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.154e-06/0.4003, allocations: 0 / 0.5663 GB, free: 10.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02082/0.4211, allocations: 5.514 MB / 0.5717 GB, free: 5.293 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.984e-05/0.4212, allocations: 89.59 kB / 0.5718 GB, free: 5.188 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006756/0.4219, allocations: 477.8 kB / 0.5723 GB, free: 4.711 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.422, allocations: 41.69 kB / 0.5723 GB, free: 4.664 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003097/0.4223, allocations: 328.9 kB / 0.5726 GB, free: 4.336 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/0.4225, allocations: 210.2 kB / 0.5728 GB, free: 4.129 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.4228, allocations: 122.3 kB / 0.5729 GB, free: 4.004 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.423, allocations: 370.8 kB / 0.5733 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.4242, allocations: 0.5419 MB / 0.5738 GB, free: 3.086 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.4255, allocations: 0.6665 MB / 0.5745 GB, free: 2.371 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007447/0.433, allocations: 3.077 MB / 0.5775 GB, free: 15.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.433, allocations: 0 / 0.5775 GB, free: 15.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007991/0.441, allocations: 2.53 MB / 0.58 GB, free: 12.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.465e-05/0.441, allocations: 49.69 kB / 0.58 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.4411, allocations: 4 kB / 0.58 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002565/0.4436, allocations: 1.085 MB / 0.5811 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.4441, allocations: 111.8 kB / 0.5812 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01717/0.4613, allocations: 6.678 MB / 0.5877 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008664/0.4622, allocations: 92.08 kB / 0.5878 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-05/0.4623, allocations: 39.92 kB / 0.5878 GB, free: 4.5 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005311/0.4628, allocations: 275.4 kB / 0.5881 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4629, allocations: 67.56 kB / 0.5881 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008396/0.4713, allocations: 2.427 MB / 0.5905 GB, free: 1.719 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.4713, allocations: 4 kB / 0.5905 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4713, allocations: 4 kB / 0.5905 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.4714, allocations: 3.984 kB / 0.5905 GB, free: 1.707 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.4817, allocations: 3.378 MB / 0.5938 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.4817, allocations: 4 kB / 0.5938 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.4821, allocations: 75.89 kB / 0.5939 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002629/0.4847, allocations: 1.09 MB / 0.595 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4848, allocations: 23.98 kB / 0.595 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01704/0.5019, allocations: 6.644 MB / 0.6015 GB, free: 6.293 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.5019, allocations: 4 kB / 0.6015 GB, free: 6.289 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.512, allocations: 3.195 MB / 0.6046 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005588/0.5126, allocations: 151.5 kB / 0.6047 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.5127, allocations: 31.98 kB / 0.6048 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/0.5135, allocations: 95.88 kB / 0.6049 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004314/0.5139, allocations: 172.1 kB / 0.605 GB, free: 2.617 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.792e-05/0.514, allocations: 24.2 kB / 0.6051 GB, free: 2.594 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004415/0.5144, allocations: 322.9 kB / 0.6054 GB, free: 2.281 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5144, allocations: 0 / 0.6054 GB, free: 2.281 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009347/0.5154, allocations: 232 kB / 0.6056 GB, free: 2.055 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01046/0.5258, allocations: 3.778 MB / 0.6093 GB, free: 14.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004921/0.5307, allocations: 1.714 MB / 0.6109 GB, free: 12.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.5307, allocations: 0 / 0.6109 GB, free: 12.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00351/0.5343, allocations: 1.075 MB / 0.612 GB, free: 11.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.5353, allocations: 168.2 kB / 0.6122 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02486/0.5602, allocations: 9.997 MB / 0.6219 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.5607, allocations: 403.4 kB / 0.6223 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004704/0.5612, allocations: 121.2 kB / 0.6224 GB, free: 456 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003376/0.5615, allocations: 235.4 kB / 0.6226 GB, free: 220 kB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5615, allocations: 0 / 0.6226 GB, free: 220 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06347/0.625, allocations: 23.29 MB / 0.6454 GB, free: 9.125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/13.86, allocations: 7.984 kB / 0.6454 GB, free: 9.117 MB / 494.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_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_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 68.97744539898122] Failed to read output from testmodel.py, exit status != 0: 13.996891024988145 14.015989963 13.635737589 Calling exit ...