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.001249/0.001249, allocations: 83.58 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.001369/0.001369, allocations: 161 kB / 24.56 MB, free: 20 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 0.946/0.946, allocations: 177.1 MB / 205 MB, free: 5.629 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.2271/0.2271, allocations: 29.43 MB / 290.9 MB, free: 2.52 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.345e-06/2.345e-06, allocations: 0 / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.798e-05/3.033e-05, allocations: 2.312 kB / 369.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00741/0.00744, allocations: 5.591 MB / 375.2 MB, free: 5.367 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003536/0.01098, allocations: 1.636 MB / 376.9 MB, free: 3.727 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006783/0.01165, allocations: 39.62 kB / 376.9 MB, free: 3.688 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007693/0.01242, allocations: 154.8 kB / 377.1 MB, free: 3.535 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.01387, allocations: 445.4 kB / 377.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.01499, allocations: 367.2 kB / 377.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.01691, allocations: 1.515 MB / 379.4 MB, free: 1.219 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004461/0.01736, allocations: 250.1 kB / 379.6 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.01903, allocations: 0.8731 MB / 380.5 MB, free: 104 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001077/0.0201, allocations: 0.5767 MB / 381.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002576/0.02036, allocations: 88 kB / 381.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002248/0.02059, allocations: 84 kB / 381.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000438/0.02102, allocations: 435 kB / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004992/0.02152, allocations: 319.3 kB / 382 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.02277, allocations: 0.7593 MB / 382.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.02277, allocations: 4 kB / 382.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.02278, allocations: 0 / 382.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.305e-05/0.02281, allocations: 0 / 382.7 MB, free: 13.85 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.002547/0.02536, allocations: 1.314 MB / 384 MB, free: 12.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.0254, allocations: 11.98 kB / 384.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.02572, allocations: 164.4 kB / 384.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.02674, allocations: 0.5877 MB / 384.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005424/0.02728, allocations: 0.7292 MB / 385.5 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.02741, allocations: 68.33 kB / 385.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.02888, allocations: 0.717 MB / 386.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.0289, allocations: 0 / 386.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-05/0.02899, allocations: 27.94 kB / 386.3 MB, free: 9.957 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.02911, allocations: 41.28 kB / 386.4 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.03023, allocations: 431.4 kB / 386.8 MB, free: 9.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003828/0.03406, allocations: 3.023 MB / 389.8 MB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007567/0.03482, allocations: 465.1 kB / 390.3 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.03529, allocations: 320.7 kB / 390.6 MB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.03533, allocations: 16.44 kB / 390.6 MB, free: 5.555 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004243/0.03576, allocations: 372 kB / 391 MB, free: 5.168 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.865e-06/0.03576, allocations: 0 / 391 MB, free: 5.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.006088/0.04185, allocations: 3.103 MB / 394.1 MB, free: 2.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.04189, allocations: 89.59 kB / 394.2 MB, free: 1.922 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.0422, allocations: 438.6 kB / 394.6 MB, free: 1.473 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.04225, allocations: 41.7 kB / 394.6 MB, free: 1.426 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.04244, allocations: 383.4 kB / 395 MB, free: 1.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.04258, allocations: 218.2 kB / 395.2 MB, free: 0.832 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.04272, allocations: 131.9 kB / 395.4 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.04287, allocations: 0.5469 MB / 395.9 MB, free: 140 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002927/0.04316, allocations: 235.2 kB / 396.1 MB, free: 15.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.0435, allocations: 397.7 kB / 396.5 MB, free: 15.45 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.001146/0.04465, allocations: 0.9956 MB / 397.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.04465, allocations: 0 / 397.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002296/0.04694, allocations: 1.436 MB / 398.9 MB, free: 12.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.002e-05/0.04699, allocations: 53.69 kB / 399 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.047, allocations: 4.219 kB / 399 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0022/0.0492, allocations: 1.436 MB / 400.4 MB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.04947, allocations: 107.9 kB / 400.5 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/0.05368, allocations: 3.491 MB / 404 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.05404, allocations: 67.92 kB / 404.1 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-05/0.0541, allocations: 35.98 kB / 404.1 MB, free: 7.602 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.0002622/0.05436, allocations: 214.5 kB / 404.3 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/0.05446, allocations: 79.61 kB / 404.4 MB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002245/0.0567, allocations: 1.283 MB / 405.7 MB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.05671, allocations: 12 kB / 405.7 MB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.05671, allocations: 0 / 405.7 MB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.05672, allocations: 3.984 kB / 405.7 MB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003095/0.05981, allocations: 2.073 MB / 407.8 MB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.05982, allocations: 4 kB / 407.8 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.06002, allocations: 80 kB / 407.9 MB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/0.06211, allocations: 1.443 MB / 409.3 MB, free: 2.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.478e-05/0.06217, allocations: 19.98 kB / 409.3 MB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003948/0.06611, allocations: 3.459 MB / 412.8 MB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.06612, allocations: 7.922 kB / 412.8 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.06875, allocations: 1.638 MB / 414.4 MB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.06898, allocations: 147.5 kB / 414.6 MB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/0.06906, allocations: 31.98 kB / 414.6 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002615/0.06932, allocations: 59.92 kB / 414.7 MB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.06958, allocations: 176.2 kB / 414.9 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.06962, allocations: 19.98 kB / 414.9 MB, free: 12.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002022/0.06982, allocations: 279.1 kB / 415.1 MB, free: 12.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.06982, allocations: 0 / 415.1 MB, free: 12.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006205/0.07044, allocations: 228 kB / 415.4 MB, free: 12.11 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.0001618/0.0706, allocations: 138.4 kB / 415.5 MB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.07217, allocations: 1.063 MB / 416.6 MB, free: 10.87 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.07217, allocations: 0 / 416.6 MB, free: 10.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009834/0.07315, allocations: 0.6813 MB / 417.2 MB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000523/0.07368, allocations: 167.4 kB / 417.4 MB, free: 10.01 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.07594, allocations: 1.43 MB / 418.8 MB, free: 8.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.07609, allocations: 211 kB / 419 MB, free: 8.293 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00022/0.07631, allocations: 96.88 kB / 419.1 MB, free: 8.195 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.006e-05/0.0764, allocations: 44.5 kB / 419.2 MB, free: 8.148 MB / 394.7 MB Notification: Performance of SimCode: time 1.372e-06/0.07641, allocations: 4 kB / 419.2 MB, free: 8.145 MB / 394.7 MB Notification: Performance of Templates: time 0.01744/0.09385, allocations: 16.53 MB / 435.7 MB, free: 7.68 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.6717473678290844]