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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 120.7 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 186.9 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.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.1947/0.1947, allocations: 38.49 MB / 342.5 MB, free: 8.012 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 66.14 kB / 478.6 MB, free: 33.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1069, allocations: 61.24 MB / 0.5272 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009506/0.1165, allocations: 6.617 MB / 0.5337 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003552/0.12, allocations: 1.668 MB / 0.5353 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000563/0.1206, allocations: 27.81 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005959/0.1212, allocations: 158.7 kB / 0.5355 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.1223, allocations: 453.8 kB / 0.5359 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007919/0.1231, allocations: 343.4 kB / 0.5362 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.1249, allocations: 1.504 MB / 0.5377 GB, free: 6.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005218/0.1255, allocations: 313.8 kB / 0.538 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.1266, allocations: 0.6151 MB / 0.5386 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.1278, allocations: 0.6855 MB / 0.5393 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000216/0.128, allocations: 104 kB / 0.5394 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.1282, allocations: 96 kB / 0.5395 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004989/0.1287, allocations: 426.9 kB / 0.5399 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006413/0.1293, allocations: 466 kB / 0.5403 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.1308, allocations: 1.191 MB / 0.5415 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1308, allocations: 0 / 0.5415 GB, free: 2.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1308, allocations: 0 / 0.5415 GB, free: 2.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.1309, allocations: 8 kB / 0.5415 GB, free: 2.672 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.003089/0.134, allocations: 1.328 MB / 0.5428 GB, free: 1.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.134, allocations: 11.89 kB / 0.5428 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.1342, allocations: 122.7 kB / 0.5429 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.1344, allocations: 96.42 kB / 0.543 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.136, allocations: 0.741 MB / 0.5437 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004827/0.1365, allocations: 342.8 kB / 0.5441 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.1367, allocations: 71.98 kB / 0.5441 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.1391, allocations: 1.134 MB / 0.5452 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.1391, allocations: 3.938 kB / 0.5452 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-05/0.1392, allocations: 35.98 kB / 0.5453 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/0.1393, allocations: 37.28 kB / 0.5453 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002907/0.1422, allocations: 1.176 MB / 0.5465 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006479/0.1487, allocations: 3.477 MB / 0.5498 GB, free: 9.801 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.1513, allocations: 0.9179 MB / 0.5507 GB, free: 8.867 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.1531, allocations: 0.6616 MB / 0.5514 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.748e-05/0.1532, allocations: 12.55 kB / 0.5514 GB, free: 8.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001647/0.1548, allocations: 0.6888 MB / 0.5521 GB, free: 7.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 4.118e-06/0.1548, allocations: 0 / 0.5521 GB, free: 7.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01983/0.1746, allocations: 5.665 MB / 0.5576 GB, free: 1.738 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9e-05/0.1747, allocations: 89.67 kB / 0.5577 GB, free: 1.633 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006534/0.1754, allocations: 477.8 kB / 0.5581 GB, free: 1.156 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.1755, allocations: 37.7 kB / 0.5582 GB, free: 1.113 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.1759, allocations: 336.8 kB / 0.5585 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.1761, allocations: 214.2 kB / 0.5587 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/0.1764, allocations: 126.3 kB / 0.5588 GB, free: 448 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.1766, allocations: 370.8 kB / 0.5592 GB, free: 68 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.1778, allocations: 0.5091 MB / 0.5597 GB, free: 15.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.1791, allocations: 0.6257 MB / 0.5603 GB, free: 14.88 MB / 430.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.007542/0.1866, allocations: 3.124 MB / 0.5633 GB, free: 11.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.1866, allocations: 0 / 0.5633 GB, free: 11.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007611/0.1943, allocations: 2.495 MB / 0.5658 GB, free: 9.168 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.113e-05/0.1944, allocations: 53.91 kB / 0.5658 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1944, allocations: 0 / 0.5658 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.197, allocations: 1.093 MB / 0.5669 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006184/0.1976, allocations: 107.8 kB / 0.567 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01687/0.2145, allocations: 6.868 MB / 0.5737 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008476/0.2153, allocations: 79.97 kB / 0.5738 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.2155, allocations: 43.97 kB / 0.5738 GB, free: 0.7852 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.0006415/0.2162, allocations: 286.4 kB / 0.5741 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.2163, allocations: 67.52 kB / 0.5742 GB, free: 440 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008123/0.2245, allocations: 2.417 MB / 0.5765 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/0.2245, allocations: 8 kB / 0.5765 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2245, allocations: 4 kB / 0.5765 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.706e-05/0.2245, allocations: 3.984 kB / 0.5765 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.235, allocations: 3.548 MB / 0.58 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.069e-05/0.235, allocations: 4 kB / 0.58 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.2355, allocations: 75.89 kB / 0.5801 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/0.2382, allocations: 1.099 MB / 0.5812 GB, free: 9.168 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.2383, allocations: 19.98 kB / 0.5812 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01668/0.255, allocations: 6.836 MB / 0.5878 GB, free: 2.168 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.255, allocations: 256 / 0.5878 GB, free: 2.168 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009648/0.2647, allocations: 3.188 MB / 0.591 GB, free: 14.94 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005544/0.2652, allocations: 224.7 kB / 0.5912 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.2654, allocations: 35.98 kB / 0.5912 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/0.2662, allocations: 99.86 kB / 0.5913 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004732/0.2666, allocations: 168.2 kB / 0.5915 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.051e-05/0.2667, allocations: 27.92 kB / 0.5915 GB, free: 14.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004654/0.2672, allocations: 318.9 kB / 0.5918 GB, free: 14.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2672, allocations: 4 kB / 0.5918 GB, free: 14.06 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001029/0.2682, allocations: 228 kB / 0.592 GB, free: 13.84 MB / 462.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.009951/0.2782, allocations: 3.768 MB / 0.5957 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004699/0.2829, allocations: 1.669 MB / 0.5973 GB, free: 8.324 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.2829, allocations: 4 kB / 0.5973 GB, free: 8.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00342/0.2863, allocations: 1.087 MB / 0.5984 GB, free: 7.223 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.2876, allocations: 156.4 kB / 0.5985 GB, free: 7.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2461/0.5336, allocations: 9.855 MB / 0.6082 GB, free: 73.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.5341, allocations: 0.9967 MB / 0.6091 GB, free: 73.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004318/0.5346, allocations: 122.3 kB / 0.6093 GB, free: 73.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.5349, allocations: 233.1 kB / 0.6095 GB, free: 73.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5349, allocations: 0 / 0.6095 GB, free: 73.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05422/0.5891, allocations: 22.84 MB / 0.6318 GB, free: 62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.65, allocations: 7.25 kB / 0.6318 GB, free: 62 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 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: 16.63777891220525] Failed to read output from testmodel.py, exit status != 0: 13.75572553742677 13.773937035 13.639569441 Calling exit ...