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.001313/0.001313, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.00174/0.00174, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.015/1.015, allocations: 177.1 MB / 205 MB, free: 5.625 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.2455/0.2455, allocations: 29.41 MB / 290.9 MB, free: 2.492 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.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 1.273e-06/1.273e-06, allocations: 0 / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.324e-05/1.451e-05, allocations: 2.312 kB / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005183/0.005198, allocations: 5.588 MB / 375.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.007533, allocations: 1.64 MB / 376.9 MB, free: 3.727 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003468/0.00788, allocations: 39.69 kB / 376.9 MB, free: 3.688 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004302/0.00831, allocations: 150.8 kB / 377 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007287/0.009039, allocations: 449.4 kB / 377.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006311/0.00967, allocations: 363.3 kB / 377.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001436/0.01111, allocations: 1.508 MB / 379.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.01146, allocations: 258 kB / 379.6 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.01246, allocations: 0.7951 MB / 380.4 MB, free: 188 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008148/0.01327, allocations: 0.6352 MB / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.0134, allocations: 100 kB / 381.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.01355, allocations: 100 kB / 381.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005797/0.01413, allocations: 450.9 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002652/0.01439, allocations: 339.3 kB / 382 MB, free: 14.58 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000704/0.0151, allocations: 0.8101 MB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.0151, allocations: 0 / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.0151, allocations: 0 / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.01511, allocations: 0 / 382.8 MB, free: 13.77 MB / 362.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.001748/0.01686, allocations: 1.345 MB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.01689, allocations: 11.98 kB / 384.2 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.01708, allocations: 164.4 kB / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008446/0.01793, allocations: 0.6747 MB / 385 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003726/0.0183, allocations: 0.7292 MB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.01839, allocations: 64.38 kB / 385.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008536/0.01924, allocations: 0.717 MB / 386.5 MB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.01926, allocations: 0 / 386.5 MB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.01931, allocations: 27.98 kB / 386.5 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.572e-05/0.01938, allocations: 41.23 kB / 386.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006396/0.02002, allocations: 427.4 kB / 387 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.023, allocations: 3.027 MB / 390 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007063/0.02371, allocations: 465.1 kB / 390.5 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.02417, allocations: 316.7 kB / 390.8 MB, free: 5.379 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.02422, allocations: 8.5 kB / 390.8 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004296/0.02464, allocations: 380 kB / 391.2 MB, free: 4.973 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 1.764e-06/0.02465, allocations: 0 / 391.2 MB, free: 4.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.00583/0.03048, allocations: 3.099 MB / 394.3 MB, free: 1.836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.03053, allocations: 93.59 kB / 394.4 MB, free: 1.727 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.03082, allocations: 446.6 kB / 394.8 MB, free: 1.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.03087, allocations: 41.69 kB / 394.8 MB, free: 1.223 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.03104, allocations: 383.4 kB / 395.2 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.03117, allocations: 214.2 kB / 395.4 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.03132, allocations: 131.9 kB / 395.5 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003553/0.03168, allocations: 0.543 MB / 396.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.03196, allocations: 231.2 kB / 396.3 MB, free: 15.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.03231, allocations: 394.5 kB / 396.7 MB, free: 15.26 MB / 378.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.001117/0.03342, allocations: 0.9995 MB / 397.7 MB, free: 14.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.03342, allocations: 0 / 397.7 MB, free: 14.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002244/0.03567, allocations: 1.44 MB / 399.1 MB, free: 12.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.03571, allocations: 49.69 kB / 399.2 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.03572, allocations: 4 kB / 399.2 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.03775, allocations: 1.447 MB / 400.6 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.03799, allocations: 107.9 kB / 400.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004248/0.04224, allocations: 3.49 MB / 404.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.04249, allocations: 71.92 kB / 404.3 MB, free: 7.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.294e-05/0.04255, allocations: 35.98 kB / 404.3 MB, free: 7.398 MB / 378.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: 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.000172/0.04272, allocations: 210.5 kB / 404.5 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-05/0.0428, allocations: 79.66 kB / 404.6 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/0.04497, allocations: 1.279 MB / 405.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.04497, allocations: 8 kB / 405.9 MB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.04497, allocations: 4 kB / 405.9 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.04498, allocations: 3.984 kB / 405.9 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.04788, allocations: 2.073 MB / 408 MB, free: 3.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.04789, allocations: 4 kB / 408 MB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.04807, allocations: 79.89 kB / 408.1 MB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/0.05007, allocations: 1.44 MB / 409.5 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.05011, allocations: 19.98 kB / 409.5 MB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004132/0.05424, allocations: 3.474 MB / 413 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.05424, allocations: 0 / 413 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002589/0.05683, allocations: 1.638 MB / 414.6 MB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.05702, allocations: 143.5 kB / 414.8 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.837e-05/0.05709, allocations: 39.97 kB / 414.8 MB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.05734, allocations: 63.92 kB / 414.9 MB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.05759, allocations: 168.2 kB / 415 MB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/0.05763, allocations: 27.98 kB / 415.1 MB, free: 12.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001885/0.05782, allocations: 275.1 kB / 415.3 MB, free: 12.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05782, allocations: 0 / 415.3 MB, free: 12.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005888/0.05841, allocations: 224 kB / 415.6 MB, free: 11.91 MB / 394.7 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.0001666/0.05858, allocations: 131.1 kB / 415.7 MB, free: 11.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.06008, allocations: 1.063 MB / 416.8 MB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.06008, allocations: 0 / 416.8 MB, free: 10.67 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.06133, allocations: 0.6852 MB / 417.4 MB, free: 9.965 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.06185, allocations: 171.9 kB / 417.6 MB, free: 9.805 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.06394, allocations: 1.423 MB / 419 MB, free: 8.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.06408, allocations: 203 kB / 419.2 MB, free: 8.102 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001925/0.06427, allocations: 100.9 kB / 419.3 MB, free: 8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.392e-05/0.06436, allocations: 44.5 kB / 419.4 MB, free: 7.953 MB / 394.7 MB Notification: Performance of SimCode: time 8.52e-07/0.06436, allocations: 0 / 419.4 MB, free: 7.953 MB / 394.7 MB Notification: Performance of Templates: time 0.0161/0.08047, allocations: 15.78 MB / 435.2 MB, free: 8.242 MB / 410.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.81182012334466]