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.001309/0.001309, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001521/0.001521, allocations: 171.8 kB / 24.91 MB, free: 8.773 MB / 18.57 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.009/1.009, allocations: 177.1 MB / 205.3 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] 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.2387/0.2387, allocations: 29.4 MB / 291.2 MB, free: 2.438 MB / 266.7 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: 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 1.733e-06/1.733e-06, allocations: 0 / 316.8 MB, free: 28 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.472e-05, allocations: 2.312 kB / 316.8 MB, free: 24 kB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005784/0.005809, allocations: 5.559 MB / 322.4 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00266/0.008469, allocations: 1.676 MB / 324.1 MB, free: 8.754 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003645/0.008834, allocations: 39.62 kB / 324.1 MB, free: 8.715 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000465/0.009299, allocations: 154.7 kB / 324.3 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007532/0.01005, allocations: 453.4 kB / 324.7 MB, free: 8.117 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.01068, allocations: 363.3 kB / 325 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.01188, allocations: 1.523 MB / 326.6 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.01217, allocations: 252.1 kB / 326.8 MB, free: 5.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009547/0.01312, allocations: 0.8731 MB / 327.7 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005861/0.01371, allocations: 0.5494 MB / 328.2 MB, free: 4.559 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.632e-05/0.0138, allocations: 88 kB / 328.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.01391, allocations: 84 kB / 328.4 MB, free: 4.391 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.0142, allocations: 430.9 kB / 328.8 MB, free: 3.969 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.01445, allocations: 323.3 kB / 329.1 MB, free: 3.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006422/0.01509, allocations: 0.7554 MB / 329.9 MB, free: 2.895 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.0151, allocations: 4 kB / 329.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.0151, allocations: 0 / 329.9 MB, free: 2.891 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.01511, allocations: 4 kB / 329.9 MB, free: 2.887 MB / 298.7 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.0014/0.01651, allocations: 1.142 MB / 331.1 MB, free: 1.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.01654, allocations: 11.98 kB / 331.1 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.01672, allocations: 132.8 kB / 331.2 MB, free: 1.562 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006135/0.01733, allocations: 0.5302 MB / 331.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003519/0.01768, allocations: 0.7253 MB / 332.4 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.875e-05/0.01778, allocations: 68.36 kB / 332.5 MB, free: 64 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000714/0.0185, allocations: 0.6373 MB / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.01851, allocations: 3.984 kB / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.198e-05/0.01857, allocations: 24 kB / 333.2 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.564e-05/0.01863, allocations: 25.31 kB / 333.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004126/0.01904, allocations: 308.9 kB / 333.5 MB, free: 15.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.02124, allocations: 2.134 MB / 335.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005197/0.02176, allocations: 401.8 kB / 336 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.02209, allocations: 251 kB / 336.3 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.02213, allocations: 12.5 kB / 336.3 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.02247, allocations: 315.5 kB / 336.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 1.814e-06/0.02247, allocations: 4 kB / 336.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.007699/0.03017, allocations: 3.834 MB / 340.4 MB, free: 7.941 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.03022, allocations: 93.55 kB / 340.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.03046, allocations: 367.1 kB / 340.9 MB, free: 7.457 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.03051, allocations: 45.7 kB / 340.9 MB, free: 7.406 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.03067, allocations: 277.7 kB / 341.2 MB, free: 7.129 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.0308, allocations: 206.2 kB / 341.4 MB, free: 6.926 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.03096, allocations: 126.2 kB / 341.5 MB, free: 6.797 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.03108, allocations: 370.7 kB / 341.9 MB, free: 6.426 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.03127, allocations: 161.8 kB / 342 MB, free: 6.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.03151, allocations: 279.9 kB / 342.3 MB, free: 5.941 MB / 314.7 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.0008557/0.03237, allocations: 0.755 MB / 343.1 MB, free: 5.125 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.03237, allocations: 4 kB / 343.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0019/0.03427, allocations: 1.183 MB / 344.3 MB, free: 3.914 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.03432, allocations: 53.62 kB / 344.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.03433, allocations: 0 / 344.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.03638, allocations: 1.396 MB / 345.7 MB, free: 2.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.03665, allocations: 103.8 kB / 345.8 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003804/0.04045, allocations: 2.746 MB / 348.6 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.04078, allocations: 55.95 kB / 348.6 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.04083, allocations: 36.03 kB / 348.6 MB, free: 15.43 MB / 330.7 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: 13 * 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 (62): * Single equations (assignments): 60 * 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.0002581/0.04109, allocations: 171.2 kB / 348.8 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.647e-05/0.04118, allocations: 51.89 kB / 348.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.043, allocations: 1.069 MB / 349.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.043, allocations: 7.984 kB / 349.9 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.04301, allocations: 4 kB / 349.9 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.04301, allocations: 4 kB / 349.9 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.04554, allocations: 1.736 MB / 351.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.04554, allocations: 0 / 351.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.04572, allocations: 71.91 kB / 351.8 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/0.04761, allocations: 1.396 MB / 353.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.04765, allocations: 19.97 kB / 353.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00329/0.05094, allocations: 2.729 MB / 355.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.05094, allocations: 7.938 kB / 355.9 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.053, allocations: 1.361 MB / 357.3 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.05316, allocations: 99.61 kB / 357.4 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.05323, allocations: 35.92 kB / 357.4 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.05346, allocations: 59.94 kB / 357.5 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.05361, allocations: 76.3 kB / 357.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.05364, allocations: 19.98 kB / 357.6 MB, free: 6.316 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.05375, allocations: 148.7 kB / 357.7 MB, free: 6.172 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.05375, allocations: 0 / 357.7 MB, free: 6.172 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005429/0.05429, allocations: 220 kB / 357.9 MB, free: 5.957 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (49): * Single equations (assignments): 41 * 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.0001481/0.05444, allocations: 128.4 kB / 358 MB, free: 5.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.0556, allocations: 0.8575 MB / 358.9 MB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.05561, allocations: 4 kB / 358.9 MB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007906/0.0564, allocations: 0.5695 MB / 359.5 MB, free: 4.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.05686, allocations: 182.4 kB / 359.6 MB, free: 4.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.05874, allocations: 1.348 MB / 361 MB, free: 2.773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.05889, allocations: 203 kB / 361.2 MB, free: 2.555 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.05905, allocations: 64.92 kB / 361.3 MB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.05927, allocations: 173.2 kB / 361.4 MB, free: 2.324 MB / 330.7 MB Notification: Performance of SimCode: time 9.11e-07/0.05928, allocations: 0 / 361.4 MB, free: 2.324 MB / 330.7 MB Notification: Performance of Templates: time 0.01851/0.07778, allocations: 16.68 MB / 378.1 MB, free: 1.805 MB / 346.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.306989568285644]