Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001165/0.001165, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001439/0.001439, allocations: 169 kB / 24.91 MB, free: 8.723 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.024/1.024, allocations: 177.1 MB / 205.3 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1503/0.1503, allocations: 29.44 MB / 291.2 MB, free: 2.699 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.614e-06/2.614e-06, allocations: 3.984 kB / 316.8 MB, free: 9.066 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.396e-05/1.657e-05, allocations: 2.312 kB / 316.8 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005316/0.005332, allocations: 5.563 MB / 322.4 MB, free: 3.465 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.007802, allocations: 1.683 MB / 324.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003056/0.008108, allocations: 39.69 kB / 324.1 MB, free: 1.738 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004263/0.008534, allocations: 146.9 kB / 324.3 MB, free: 1.594 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007105/0.009245, allocations: 441.4 kB / 324.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.009855, allocations: 371.2 kB / 325.1 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.01159, allocations: 1.523 MB / 326.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.01188, allocations: 248.1 kB / 326.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.01289, allocations: 0.8691 MB / 327.7 MB, free: 14.15 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007496/0.01364, allocations: 0.5572 MB / 328.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.01374, allocations: 84 kB / 328.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.01386, allocations: 88 kB / 328.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.01414, allocations: 423 kB / 328.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.01438, allocations: 327.3 kB / 329.2 MB, free: 12.69 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006706/0.01505, allocations: 0.7593 MB / 329.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.01506, allocations: 0 / 329.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01506, allocations: 0 / 329.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.01507, allocations: 0 / 329.9 MB, free: 11.93 MB / 314.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.001442/0.01651, allocations: 1.138 MB / 331.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.01655, allocations: 12.03 kB / 331.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.01669, allocations: 132.8 kB / 331.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005594/0.01725, allocations: 0.5263 MB / 331.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003461/0.0176, allocations: 0.7292 MB / 332.5 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.003e-05/0.01769, allocations: 64.38 kB / 332.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006731/0.01836, allocations: 0.6334 MB / 333.2 MB, free: 8.441 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.01838, allocations: 3.938 kB / 333.2 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.01843, allocations: 28 kB / 333.2 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.16e-05/0.01849, allocations: 29.3 kB / 333.2 MB, free: 8.383 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.01889, allocations: 301 kB / 333.5 MB, free: 8.086 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.021, allocations: 2.138 MB / 335.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.0215, allocations: 411.1 kB / 336 MB, free: 5.461 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.0218, allocations: 247.6 kB / 336.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.02184, allocations: 8.5 kB / 336.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003087/0.02215, allocations: 327.5 kB / 336.6 MB, free: 4.863 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 1.673e-06/0.02215, allocations: 0 / 336.6 MB, free: 4.863 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.00732/0.02947, allocations: 3.834 MB / 340.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.02951, allocations: 93.55 kB / 340.5 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.02971, allocations: 363.2 kB / 340.9 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.02976, allocations: 45.69 kB / 340.9 MB, free: 468 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.02988, allocations: 285.6 kB / 341.2 MB, free: 176 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1658/0.1957, allocations: 202.8 kB / 341.4 MB, free: 33.03 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.1959, allocations: 120.9 kB / 341.5 MB, free: 33.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.196, allocations: 370 kB / 341.9 MB, free: 32.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.1963, allocations: 164.6 kB / 342.1 MB, free: 32.67 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.1967, allocations: 275.3 kB / 342.3 MB, free: 32.53 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.00117/0.1978, allocations: 0.755 MB / 343.1 MB, free: 32.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.1978, allocations: 1.25 kB / 343.1 MB, free: 32.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002359/0.2002, allocations: 1.184 MB / 344.3 MB, free: 32.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.2002, allocations: 51.86 kB / 344.3 MB, free: 32.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.2003, allocations: 2.656 kB / 344.3 MB, free: 32.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/0.2026, allocations: 1.387 MB / 345.7 MB, free: 32.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.2029, allocations: 102.1 kB / 345.8 MB, free: 32.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00396/0.2068, allocations: 2.753 MB / 348.6 MB, free: 30.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000327/0.2071, allocations: 52.56 kB / 348.6 MB, free: 30.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.2072, allocations: 39.7 kB / 348.7 MB, free: 30.72 MB / 314.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.0002433/0.2074, allocations: 162.2 kB / 348.8 MB, free: 30.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.2075, allocations: 58.33 kB / 348.9 MB, free: 30.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.2096, allocations: 1.069 MB / 349.9 MB, free: 30.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.2096, allocations: 7.5 kB / 349.9 MB, free: 30.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2096, allocations: 0.875 kB / 349.9 MB, free: 30.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.2096, allocations: 9.047 kB / 350 MB, free: 30.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.2121, allocations: 1.747 MB / 351.7 MB, free: 30.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2121, allocations: 0 / 351.7 MB, free: 30.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.2123, allocations: 66.84 kB / 351.8 MB, free: 30.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.2143, allocations: 1.401 MB / 353.2 MB, free: 30.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/0.2143, allocations: 21.67 kB / 353.2 MB, free: 30.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003131/0.2174, allocations: 2.726 MB / 355.9 MB, free: 28.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2174, allocations: 8 kB / 355.9 MB, free: 28.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.2193, allocations: 1.359 MB / 357.3 MB, free: 26.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.2194, allocations: 106.7 kB / 357.4 MB, free: 26.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.2195, allocations: 32.42 kB / 357.4 MB, free: 26.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.2197, allocations: 54.5 kB / 357.5 MB, free: 26.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.2199, allocations: 78.36 kB / 357.5 MB, free: 26.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.2199, allocations: 19.86 kB / 357.6 MB, free: 26.51 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.647e-05/0.22, allocations: 152.9 kB / 357.7 MB, free: 26.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.22, allocations: 0 / 357.7 MB, free: 26.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005028/0.2205, allocations: 223.1 kB / 357.9 MB, free: 26.19 MB / 314.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.0001413/0.2207, allocations: 109.8 kB / 358 MB, free: 26.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.2217, allocations: 0.8555 MB / 358.9 MB, free: 25.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/0.2217, allocations: 8 kB / 358.9 MB, free: 25.26 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007221/0.2225, allocations: 0.5661 MB / 359.5 MB, free: 24.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.2229, allocations: 172.2 kB / 359.6 MB, free: 24.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.2245, allocations: 1.35 MB / 361 MB, free: 23.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.2246, allocations: 207 kB / 361.2 MB, free: 23.12 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.2248, allocations: 72.52 kB / 361.3 MB, free: 23.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.225, allocations: 165.3 kB / 361.4 MB, free: 22.89 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.225, allocations: 4 kB / 361.4 MB, free: 22.89 MB / 314.7 MB Notification: Performance of Templates: time 0.0155/0.2405, allocations: 16.69 MB / 378.1 MB, free: 6.441 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.597982307896018]