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.001735/0.001735, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002173/0.002173, allocations: 217.2 kB / 23.75 MB, free: 4.668 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: 7.996 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.188/0.188, allocations: 38.52 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.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.002102/0.002102, allocations: 67.89 kB / 492.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3452, allocations: 62.47 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01027/0.3555, allocations: 6.749 MB / 0.5486 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004001/0.3595, allocations: 1.696 MB / 0.5503 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005155/0.36, allocations: 37.94 kB / 0.5503 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006262/0.3606, allocations: 165.8 kB / 0.5504 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.3618, allocations: 453.5 kB / 0.5509 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009476/0.3627, allocations: 350.9 kB / 0.5512 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.3646, allocations: 1.513 MB / 0.5527 GB, free: 8.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004248/0.365, allocations: 251 kB / 0.5529 GB, free: 7.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.3661, allocations: 0.6352 MB / 0.5536 GB, free: 7.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.3673, allocations: 0.6914 MB / 0.5542 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.3674, allocations: 98.03 kB / 0.5543 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.3676, allocations: 99.47 kB / 0.5544 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004906/0.3681, allocations: 424.9 kB / 0.5548 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006059/0.3687, allocations: 470.1 kB / 0.5553 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001597/0.3703, allocations: 1.189 MB / 0.5564 GB, free: 5.695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3703, allocations: 0 / 0.5564 GB, free: 5.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3703, allocations: 0 / 0.5564 GB, free: 5.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.37e-05/0.3704, allocations: 4 kB / 0.5564 GB, free: 5.691 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.003428/0.3738, allocations: 1.257 MB / 0.5577 GB, free: 4.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.3739, allocations: 15.98 kB / 0.5577 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001696/0.374, allocations: 114.7 kB / 0.5578 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002197/0.3742, allocations: 100.4 kB / 0.5579 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.3759, allocations: 0.661 MB / 0.5585 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007181/0.3766, allocations: 0.7481 MB / 0.5593 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.3768, allocations: 71.97 kB / 0.5593 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.3792, allocations: 1.141 MB / 0.5604 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.3792, allocations: 0 / 0.5604 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.131e-05/0.3793, allocations: 31.98 kB / 0.5605 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.3794, allocations: 37.3 kB / 0.5605 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00281/0.3823, allocations: 1.18 MB / 0.5617 GB, free: 68 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006344/0.3886, allocations: 3.445 MB / 0.565 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/0.3913, allocations: 0.9211 MB / 0.5659 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.3931, allocations: 0.6501 MB / 0.5666 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.346e-05/0.3932, allocations: 4.5 kB / 0.5666 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/0.3948, allocations: 0.6918 MB / 0.5672 GB, free: 10.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.545e-06/0.3948, allocations: 0 / 0.5672 GB, free: 10.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01991/0.4147, allocations: 5.51 MB / 0.5726 GB, free: 4.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/0.4148, allocations: 93.61 kB / 0.5727 GB, free: 4.547 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007321/0.4155, allocations: 469.9 kB / 0.5732 GB, free: 4.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.682e-05/0.4156, allocations: 41.7 kB / 0.5732 GB, free: 4.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.416, allocations: 328.8 kB / 0.5735 GB, free: 3.703 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.4163, allocations: 218.2 kB / 0.5737 GB, free: 3.488 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/0.4165, allocations: 134.2 kB / 0.5738 GB, free: 3.352 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.4167, allocations: 370.8 kB / 0.5742 GB, free: 2.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.4179, allocations: 0.5051 MB / 0.5747 GB, free: 2.477 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.4191, allocations: 0.6336 MB / 0.5753 GB, free: 1.801 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.007557/0.4267, allocations: 3.054 MB / 0.5783 GB, free: 14.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.4267, allocations: 4 kB / 0.5783 GB, free: 14.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007968/0.4347, allocations: 2.489 MB / 0.5807 GB, free: 12.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.978e-05/0.4348, allocations: 49.69 kB / 0.5808 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.4348, allocations: 4.219 kB / 0.5808 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002721/0.4375, allocations: 1.092 MB / 0.5818 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005549/0.4381, allocations: 115.7 kB / 0.582 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01657/0.4546, allocations: 6.741 MB / 0.5885 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007791/0.4554, allocations: 83.95 kB / 0.5886 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.4555, allocations: 44.05 kB / 0.5887 GB, free: 3.926 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.0004939/0.456, allocations: 291.4 kB / 0.5889 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.4561, allocations: 59.62 kB / 0.589 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007966/0.4641, allocations: 2.419 MB / 0.5914 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.4641, allocations: 8 kB / 0.5914 GB, free: 1.137 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.4641, allocations: 0 / 0.5914 GB, free: 1.137 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.4641, allocations: 3.984 kB / 0.5914 GB, free: 1.133 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009989/0.4741, allocations: 3.537 MB / 0.5948 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.4741, allocations: 0 / 0.5948 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004326/0.4745, allocations: 79.89 kB / 0.5949 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002657/0.4772, allocations: 1.096 MB / 0.596 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.4773, allocations: 23.98 kB / 0.596 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01636/0.4937, allocations: 6.726 MB / 0.6026 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4937, allocations: 0 / 0.6026 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009629/0.5033, allocations: 3.202 MB / 0.6057 GB, free: 2.227 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005577/0.5039, allocations: 139.6 kB / 0.6058 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.504, allocations: 35.98 kB / 0.6059 GB, free: 2.055 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007134/0.5047, allocations: 95.81 kB / 0.606 GB, free: 1.961 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004332/0.5052, allocations: 176.1 kB / 0.6061 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.26e-05/0.5052, allocations: 23.98 kB / 0.6061 GB, free: 1.766 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004374/0.5057, allocations: 322.9 kB / 0.6064 GB, free: 1.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5057, allocations: 0 / 0.6064 GB, free: 1.453 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000883/0.5065, allocations: 224 kB / 0.6067 GB, free: 1.234 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.01014/0.5167, allocations: 3.778 MB / 0.6104 GB, free: 13.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00495/0.5216, allocations: 1.673 MB / 0.612 GB, free: 11.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.5216, allocations: 384 / 0.612 GB, free: 11.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003221/0.5249, allocations: 1.087 MB / 0.613 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.526, allocations: 157.5 kB / 0.6132 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02344/0.5494, allocations: 9.859 MB / 0.6228 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007456/0.5502, allocations: 1.004 MB / 0.6238 GB, free: 15.33 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004073/0.5506, allocations: 133.1 kB / 0.6239 GB, free: 15.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/0.5509, allocations: 231.4 kB / 0.6242 GB, free: 14.98 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5509, allocations: 3.938 kB / 0.6242 GB, free: 14.97 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06106/0.612, allocations: 23.51 MB / 0.6471 GB, free: 7.633 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.21, allocations: 10.78 kB / 0.6471 GB, free: 7.625 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: 17.468779775997973] Failed to read output from testmodel.py, exit status != 0: 14.342876832000911 14.370936342 13.995080683 Calling exit ...