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.001331/0.001331, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001534/0.001534, allocations: 209.9 kB / 23.73 MB, free: 4.387 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.1939/0.1939, allocations: 38.55 MB / 352.5 MB, free: 12.27 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.002383/0.002383, allocations: 70.41 kB / 492.5 MB, free: 4.656 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3625, allocations: 62.46 MB / 0.5419 GB, free: 228 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008889/0.3714, allocations: 6.272 MB / 0.5481 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.3745, allocations: 1.609 MB / 0.5496 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003117/0.3748, allocations: 40.5 kB / 0.5497 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005242/0.3753, allocations: 155.3 kB / 0.5498 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009897/0.3763, allocations: 448.8 kB / 0.5502 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007017/0.377, allocations: 356.1 kB / 0.5506 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.3787, allocations: 1.507 MB / 0.5521 GB, free: 8.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004224/0.3791, allocations: 246.9 kB / 0.5523 GB, free: 8.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009642/0.38, allocations: 0.6407 MB / 0.5529 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.381, allocations: 0.6591 MB / 0.5536 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001659/0.3812, allocations: 102.4 kB / 0.5537 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.3814, allocations: 99 kB / 0.5538 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004801/0.3819, allocations: 424.7 kB / 0.5542 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005038/0.3824, allocations: 391 kB / 0.5545 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.3838, allocations: 1.203 MB / 0.5557 GB, free: 6.109 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3838, allocations: 0 / 0.5557 GB, free: 6.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3838, allocations: 4 kB / 0.5557 GB, free: 6.105 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.3838, allocations: 0 / 0.5557 GB, free: 6.105 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.002959/0.3868, allocations: 1.257 MB / 0.5569 GB, free: 4.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.3868, allocations: 11.98 kB / 0.5569 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002152/0.3871, allocations: 122.6 kB / 0.5571 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.3873, allocations: 100.4 kB / 0.5572 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.3889, allocations: 0.665 MB / 0.5578 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007432/0.3897, allocations: 0.7442 MB / 0.5585 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.3898, allocations: 67.94 kB / 0.5586 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.3923, allocations: 1.145 MB / 0.5597 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.3923, allocations: 0 / 0.5597 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-05/0.3924, allocations: 28 kB / 0.5597 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.3925, allocations: 37.28 kB / 0.5598 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002843/0.3954, allocations: 1.176 MB / 0.5609 GB, free: 496 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006257/0.4016, allocations: 3.25 MB / 0.5641 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.4043, allocations: 0.9165 MB / 0.565 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.4061, allocations: 0.6511 MB / 0.5656 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.726e-05/0.4061, allocations: 4.5 kB / 0.5656 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.4077, allocations: 0.6918 MB / 0.5663 GB, free: 10.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.335e-06/0.4077, allocations: 0 / 0.5663 GB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02052/0.4283, allocations: 5.503 MB / 0.5717 GB, free: 5.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.4284, allocations: 101.6 kB / 0.5718 GB, free: 5.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007931/0.4292, allocations: 473.8 kB / 0.5722 GB, free: 4.699 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.475e-05/0.4293, allocations: 41.7 kB / 0.5723 GB, free: 4.652 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/0.4296, allocations: 324.9 kB / 0.5726 GB, free: 4.328 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/0.4298, allocations: 214.2 kB / 0.5728 GB, free: 4.117 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.4301, allocations: 126.3 kB / 0.5729 GB, free: 3.988 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.4303, allocations: 370.8 kB / 0.5733 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.4315, allocations: 0.5419 MB / 0.5738 GB, free: 3.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.4328, allocations: 0.6587 MB / 0.5744 GB, free: 2.363 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.007374/0.4402, allocations: 3.083 MB / 0.5774 GB, free: 15.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4402, allocations: 4 kB / 0.5775 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008071/0.4483, allocations: 2.522 MB / 0.5799 GB, free: 12.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.849e-05/0.4483, allocations: 57.91 kB / 0.58 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4483, allocations: 0 / 0.58 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002622/0.451, allocations: 1.086 MB / 0.581 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.4515, allocations: 111.8 kB / 0.5811 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01708/0.4686, allocations: 6.67 MB / 0.5877 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008727/0.4694, allocations: 87.95 kB / 0.5877 GB, free: 4.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.822e-05/0.4695, allocations: 43.97 kB / 0.5878 GB, free: 4.488 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.0005449/0.4701, allocations: 275.4 kB / 0.588 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.4702, allocations: 63.58 kB / 0.5881 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008419/0.4786, allocations: 2.431 MB / 0.5905 GB, free: 1.707 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.4786, allocations: 11.98 kB / 0.5905 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.4786, allocations: 4 kB / 0.5905 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.4786, allocations: 3.984 kB / 0.5905 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.4894, allocations: 3.374 MB / 0.5938 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.4894, allocations: 4.156 kB / 0.5938 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.4898, allocations: 75.89 kB / 0.5939 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002599/0.4924, allocations: 1.086 MB / 0.5949 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-05/0.4925, allocations: 19.98 kB / 0.5949 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/0.5096, allocations: 6.659 MB / 0.6014 GB, free: 6.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5096, allocations: 4 kB / 0.6015 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/0.5199, allocations: 3.202 MB / 0.6046 GB, free: 3.031 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007054/0.5206, allocations: 147.5 kB / 0.6047 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002354/0.5208, allocations: 35.98 kB / 0.6048 GB, free: 2.852 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008548/0.5217, allocations: 91.88 kB / 0.6048 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/0.5221, allocations: 176.1 kB / 0.605 GB, free: 2.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.724e-05/0.5222, allocations: 23.98 kB / 0.605 GB, free: 2.566 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004659/0.5227, allocations: 318.9 kB / 0.6053 GB, free: 2.258 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5227, allocations: 4 kB / 0.6053 GB, free: 2.254 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001013/0.5237, allocations: 220 kB / 0.6056 GB, free: 2.039 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.01052/0.5342, allocations: 3.782 MB / 0.6092 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004867/0.5391, allocations: 1.706 MB / 0.6109 GB, free: 12.47 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.5391, allocations: 384 / 0.6109 GB, free: 12.47 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003332/0.5424, allocations: 1.087 MB / 0.612 GB, free: 11.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.5435, allocations: 164.1 kB / 0.6121 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02525/0.5687, allocations: 9.993 MB / 0.6219 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.5694, allocations: 399.4 kB / 0.6223 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004598/0.5698, allocations: 121.2 kB / 0.6224 GB, free: 444 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004049/0.5702, allocations: 231.4 kB / 0.6226 GB, free: 212 kB / 462.1 MB Notification: Performance of SimCode: time 1.352e-06/0.5702, allocations: 0 / 0.6226 GB, free: 212 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06739/0.6376, allocations: 23.1 MB / 0.6452 GB, free: 9.312 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.79, allocations: 11.42 kB / 0.6452 GB, free: 9.305 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] Could not SIGINT process: 4090353. Could not SIGINT process: 4090354. Could not SIGINT process: 4090358. Could not SIGINT process: 4083614. [Calling os._exit(0), Time elapsed: 69.02103898720816] Failed to read output from testmodel.py, exit status != 0: 13.923441709950566 13.940480705 13.553237041 Calling exit ...