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.0006901/0.0006901, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009643/0.001654, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.000716/0.000716, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009707/0.001687, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9764/0.9764, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09195/1.068, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo): time 0.1279/0.1279, allocations: 29.45 MB / 273.6 MB, free: 1.383 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1256/0.2535, allocations: 9.536 MB / 283.1 MB, free: 12.82 MB / 282.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-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="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="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.943e-06/1.943e-06, allocations: 0 / 284.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.395e-05, allocations: 2.312 kB / 284.5 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008359/0.008383, allocations: 5.655 MB / 290.1 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003688/0.01207, allocations: 1.686 MB / 291.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005766/0.01265, allocations: 39.84 kB / 291.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004832/0.01313, allocations: 156.2 kB / 292 MB, free: 5.98 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.01426, allocations: 446.9 kB / 292.4 MB, free: 5.621 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009188/0.01518, allocations: 360.4 kB / 292.8 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001698/0.01688, allocations: 1.518 MB / 294.3 MB, free: 4.516 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.0172, allocations: 255.3 kB / 294.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.01842, allocations: 0.8962 MB / 295.4 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008286/0.01924, allocations: 0.5533 MB / 296 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.01937, allocations: 92 kB / 296.1 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.01951, allocations: 84 kB / 296.2 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002459/0.01976, allocations: 371.2 kB / 296.5 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.01998, allocations: 251.6 kB / 296.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006444/0.02062, allocations: 0.6931 MB / 297.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.02064, allocations: 0 / 297.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.02064, allocations: 0 / 297.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.02066, allocations: 0 / 297.5 MB, free: 1.66 MB / 282.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.001542/0.0222, allocations: 1.302 MB / 298.8 MB, free: 320 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.02224, allocations: 16.03 kB / 298.8 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.02239, allocations: 136.8 kB / 298.9 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000607/0.023, allocations: 0.5185 MB / 299.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003451/0.02335, allocations: 0.7444 MB / 300.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.712e-05/0.02343, allocations: 64 kB / 300.2 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006656/0.0241, allocations: 0.6334 MB / 300.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.02412, allocations: 3.938 kB / 300.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.02416, allocations: 28 kB / 300.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.737e-05/0.02423, allocations: 29.3 kB / 300.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.02461, allocations: 297 kB / 301.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.0267, allocations: 2.134 MB / 303.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.02719, allocations: 401 kB / 303.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/0.0275, allocations: 247.2 kB / 304 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.02754, allocations: 16.44 kB / 304 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/0.02786, allocations: 324.2 kB / 304.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=59): time 1.723e-06/0.02786, allocations: 0 / 304.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=60): time 0.007699/0.03556, allocations: 3.869 MB / 308.2 MB, free: 6.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.03561, allocations: 97.53 kB / 308.3 MB, free: 6.402 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.03585, allocations: 371.1 kB / 308.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.03591, allocations: 37.7 kB / 308.7 MB, free: 5.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.03609, allocations: 293.6 kB / 309 MB, free: 5.695 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.03622, allocations: 206.2 kB / 309.2 MB, free: 5.492 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.03635, allocations: 122.2 kB / 309.3 MB, free: 5.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.384e-05/0.03644, allocations: 374.6 kB / 309.7 MB, free: 4.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.03662, allocations: 161.8 kB / 309.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.03682, allocations: 273 kB / 310.1 MB, free: 4.516 MB / 298.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.0007433/0.03756, allocations: 0.7858 MB / 310.9 MB, free: 3.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.03756, allocations: 0 / 310.9 MB, free: 3.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001815/0.03938, allocations: 1.183 MB / 312 MB, free: 2.465 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.03943, allocations: 53.69 kB / 312.1 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.03943, allocations: 0 / 312.1 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001864/0.04129, allocations: 1.394 MB / 313.5 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.04155, allocations: 115.8 kB / 313.6 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003459/0.04501, allocations: 2.753 MB / 316.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.04524, allocations: 51.95 kB / 316.4 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-05/0.04529, allocations: 39.97 kB / 316.5 MB, free: 13.95 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.0001597/0.04545, allocations: 167.2 kB / 316.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.907e-05/0.04552, allocations: 51.94 kB / 316.7 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.04743, allocations: 1.077 MB / 317.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.04744, allocations: 8 kB / 317.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.04744, allocations: 0 / 317.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.04745, allocations: 3.984 kB / 317.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.04985, allocations: 1.743 MB / 319.5 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.04985, allocations: 4 kB / 319.5 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.05006, allocations: 71.91 kB / 319.6 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.0502, allocations: 107.6 kB / 319.7 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/0.05204, allocations: 1.403 MB / 321.1 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.05208, allocations: 23.91 kB / 321.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003288/0.05537, allocations: 2.74 MB / 323.8 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.05537, allocations: 4.062 kB / 323.8 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.05758, allocations: 1.354 MB / 325.2 MB, free: 4.996 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.05769, allocations: 35.98 kB / 325.2 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.05793, allocations: 59.94 kB / 325.3 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.0581, allocations: 80.3 kB / 325.4 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.05813, allocations: 15.98 kB / 325.4 MB, free: 4.809 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001166/0.05824, allocations: 152.7 kB / 325.5 MB, free: 4.656 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05824, allocations: 0 / 325.5 MB, free: 4.656 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005238/0.05877, allocations: 220 kB / 325.8 MB, free: 4.441 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.0001694/0.05894, allocations: 113 kB / 325.9 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.06015, allocations: 0.8773 MB / 326.7 MB, free: 3.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/0.06017, allocations: 4 kB / 326.7 MB, free: 3.406 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008787/0.06105, allocations: 0.6709 MB / 327.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.06182, allocations: 1.157 MB / 328.6 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007247/0.06906, allocations: 1.382 MB / 330 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/0.06922, allocations: 214.9 kB / 330.2 MB, free: 15.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000169/0.06939, allocations: 60.94 kB / 330.2 MB, free: 15.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.06963, allocations: 169.3 kB / 330.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.06963, allocations: 0 / 330.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of Templates: time 0.01695/0.08657, allocations: 17.06 MB / 347.4 MB, free: 14.58 MB / 346.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.212600741535425]