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.001636/0.001636, allocations: 112 kB / 20.43 MB, free: 1.449 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.001859/0.001859, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.476/1.476, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.1866/0.1866, allocations: 38.53 MB / 346.3 MB, free: 2.07 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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid")
translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 67.88 kB / 484.5 MB, free: 11.12 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4166/0.4186, allocations: 61.29 MB / 0.533 GB, free: 5.555 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007277/0.4259, allocations: 6.735 MB / 0.5396 GB, free: 0.5977 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003192/0.4291, allocations: 1.68 MB / 0.5412 GB, free: 15.25 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004151/0.4295, allocations: 37.66 kB / 0.5413 GB, free: 15.23 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000513/0.43, allocations: 162.5 kB / 0.5414 GB, free: 15.09 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001002/0.431, allocations: 452.6 kB / 0.5419 GB, free: 14.73 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007392/0.4318, allocations: 351.9 kB / 0.5422 GB, free: 14.45 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00161/0.4334, allocations: 1.512 MB / 0.5437 GB, free: 13.57 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003848/0.4338, allocations: 259.2 kB / 0.5439 GB, free: 13.41 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0009635/0.4347, allocations: 0.6223 MB / 0.5445 GB, free: 13.06 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001009/0.4357, allocations: 0.6988 MB / 0.5452 GB, free: 12.64 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.4359, allocations: 98 kB / 0.5453 GB, free: 12.64 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.4361, allocations: 98.25 kB / 0.5454 GB, free: 12.64 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0005092/0.4366, allocations: 420.7 kB / 0.5458 GB, free: 12.36 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000544/0.4371, allocations: 471.2 kB / 0.5463 GB, free: 12.04 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001368/0.4385, allocations: 1.189 MB / 0.5474 GB, free: 11.21 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4385, allocations: 0 / 0.5474 GB, free: 11.21 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.543e-06/0.4385, allocations: 1.094 kB / 0.5474 GB, free: 11.21 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.886e-05/0.4385, allocations: 0 / 0.5474 GB, free: 11.21 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.002917/0.4415, allocations: 1.256 MB / 0.5486 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.4415, allocations: 9.25 kB / 0.5487 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.4417, allocations: 95.98 kB / 0.5487 GB, free: 10.27 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.4432, allocations: 0.6653 MB / 0.5494 GB, free: 9.801 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004674/0.4436, allocations: 347.5 kB / 0.5497 GB, free: 9.488 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.4438, allocations: 64.56 kB / 0.5498 GB, free: 9.469 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/0.4463, allocations: 1.149 MB / 0.5509 GB, free: 8.754 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.4464, allocations: 1 kB / 0.5509 GB, free: 8.754 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.386e-05/0.4465, allocations: 26.41 kB / 0.5509 GB, free: 8.734 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/0.4466, allocations: 38.72 kB / 0.551 GB, free: 8.723 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003073/0.4497, allocations: 1.177 MB / 0.5521 GB, free: 8.141 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006175/0.4558, allocations: 3.434 MB / 0.5555 GB, free: 4.844 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002682/0.4585, allocations: 0.9248 MB / 0.5564 GB, free: 3.898 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.4603, allocations: 0.6589 MB / 0.557 GB, free: 3.234 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.164e-05/0.4603, allocations: 8.5 kB / 0.557 GB, free: 3.227 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001664/0.462, allocations: 0.6762 MB / 0.5577 GB, free: 2.531 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=59): time 2.204e-06/0.462, allocations: 0 / 0.5577 GB, free: 2.531 MB / 398.1 MB
Notification: Performance of matching and sorting (n=61): time 0.02116/0.4831, allocations: 5.514 MB / 0.5631 GB, free: 12.98 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.506e-05/0.4832, allocations: 97.58 kB / 0.5632 GB, free: 12.86 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008303/0.4841, allocations: 473.8 kB / 0.5636 GB, free: 12.39 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.000165/0.4842, allocations: 49.64 kB / 0.5637 GB, free: 12.34 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.4846, allocations: 328.8 kB / 0.564 GB, free: 12.01 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004522/0.4851, allocations: 214.2 kB / 0.5642 GB, free: 11.8 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002661/0.4854, allocations: 126.3 kB / 0.5643 GB, free: 11.67 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002113/0.4856, allocations: 370.8 kB / 0.5647 GB, free: 11.3 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.4868, allocations: 0.5051 MB / 0.5652 GB, free: 10.79 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.488, allocations: 0.622 MB / 0.5658 GB, free: 10.13 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.007739/0.4958, allocations: 3.058 MB / 0.5687 GB, free: 7.008 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.4958, allocations: 0 / 0.5687 GB, free: 7.008 MB / 414.1 MB
Notification: Performance of matching and sorting (n=83) (initialization): time 0.008125/0.5039, allocations: 2.501 MB / 0.5712 GB, free: 4.488 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 7.721e-05/0.504, allocations: 49.69 kB / 0.5712 GB, free: 4.434 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.504, allocations: 8 kB / 0.5712 GB, free: 4.426 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/0.5067, allocations: 1.082 MB / 0.5723 GB, free: 3.34 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.5072, allocations: 115.8 kB / 0.5724 GB, free: 3.227 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01724/0.5244, allocations: 6.755 MB / 0.579 GB, free: 12.36 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.5254, allocations: 83.89 kB / 0.5791 GB, free: 12.28 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.5255, allocations: 43.97 kB / 0.5791 GB, free: 12.24 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.0006327/0.5261, allocations: 279.5 kB / 0.5794 GB, free: 11.95 MB / 430.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.5263, allocations: 63.58 kB / 0.5795 GB, free: 11.89 MB / 430.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008548/0.5348, allocations: 2.427 MB / 0.5818 GB, free: 9.449 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.5348, allocations: 4 kB / 0.5818 GB, free: 9.445 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.5349, allocations: 7.984 kB / 0.5818 GB, free: 9.438 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.5349, allocations: 3.938 kB / 0.5818 GB, free: 9.434 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.5455, allocations: 3.522 MB / 0.5853 GB, free: 5.828 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.5455, allocations: 0 / 0.5853 GB, free: 5.828 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004076/0.5459, allocations: 79.89 kB / 0.5854 GB, free: 5.75 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002691/0.5486, allocations: 1.105 MB / 0.5864 GB, free: 4.645 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.5487, allocations: 15.98 kB / 0.5865 GB, free: 4.629 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01702/0.5658, allocations: 6.73 MB / 0.593 GB, free: 13.78 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.5658, allocations: 4 kB / 0.593 GB, free: 13.77 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.5761, allocations: 3.199 MB / 0.5962 GB, free: 10.54 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0005079/0.5767, allocations: 147.5 kB / 0.5963 GB, free: 10.39 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.5768, allocations: 31.98 kB / 0.5963 GB, free: 10.36 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007782/0.5776, allocations: 99.86 kB / 0.5964 GB, free: 10.26 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004574/0.578, allocations: 176.1 kB / 0.5966 GB, free: 10.09 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-05/0.5781, allocations: 19.98 kB / 0.5966 GB, free: 10.07 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.000456/0.5786, allocations: 326.9 kB / 0.5969 GB, free: 9.754 MB / 446.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.5786, allocations: 0 / 0.5969 GB, free: 9.754 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.001004/0.5796, allocations: 228 kB / 0.5971 GB, free: 9.531 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.0002426/0.5798, allocations: 127.1 kB / 0.5973 GB, free: 9.398 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.005028/0.5848, allocations: 1.673 MB / 0.5989 GB, free: 7.699 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.5848, allocations: 4 kB / 0.5989 GB, free: 7.695 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.00348/0.5883, allocations: 1.083 MB / 0.6 GB, free: 6.598 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.5894, allocations: 164.3 kB / 0.6001 GB, free: 6.438 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.5929, allocations: 1.723 MB / 0.6018 GB, free: 4.664 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008089/0.5937, allocations: 1.001 MB / 0.6028 GB, free: 3.637 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.0003837/0.5941, allocations: 117.2 kB / 0.6029 GB, free: 3.523 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.5942, allocations: 51.42 kB / 0.6029 GB, free: 3.473 MB / 446.1 MB
Notification: Performance of SimCode: time 1.123e-06/0.5942, allocations: 0 / 0.6029 GB, free: 3.473 MB / 446.1 MB
Notification: Performance of Templates: time 0.0314/0.6256, allocations: 17.65 MB / 0.6202 GB, free: 1.887 MB / 462.1 MB
"
[Timeout remaining time 659]
make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660]
(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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid  -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.9186490047723055]
Failed to read output from testmodel.py, exit status != 0:
0.6352230058982968 0.64958122 0.20781797800000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f40193dd7b0>