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.0009956/0.0009956, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001417/0.002412, allocations: 449.7 kB / 10.37 MB, free: 328 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.001072/0.001072, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001367/0.002439, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9891/0.9891, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08177/1.071, allocations: 53.65 MB / 243.3 MB, free: 15.57 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.1176/0.1176, allocations: 29.45 MB / 273.4 MB, free: 1.477 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.164/0.2815, allocations: 9.532 MB / 283 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.483e-06/1.483e-06, allocations: 0 / 284.2 MB, free: 11.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.775e-05, allocations: 2.859 kB / 284.2 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005225/0.005243, allocations: 5.632 MB / 289.9 MB, free: 7.527 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.007846, allocations: 1.693 MB / 291.6 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003934/0.008239, allocations: 36.06 kB / 291.6 MB, free: 6.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003728/0.008612, allocations: 158.9 kB / 291.8 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007453/0.009357, allocations: 444.3 kB / 292.2 MB, free: 5.691 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000661/0.01002, allocations: 363.8 kB / 292.5 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.01162, allocations: 1.511 MB / 294.1 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003517/0.01197, allocations: 265.9 kB / 294.3 MB, free: 4.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.01326, allocations: 0.8918 MB / 295.2 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007947/0.01406, allocations: 0.5533 MB / 295.8 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.01418, allocations: 84 kB / 295.8 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.01432, allocations: 92 kB / 295.9 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002507/0.01457, allocations: 359.2 kB / 296.3 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.01481, allocations: 255.5 kB / 296.5 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006023/0.01541, allocations: 0.6931 MB / 297.2 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433e-05/0.01543, allocations: 0 / 297.2 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01543, allocations: 0 / 297.2 MB, free: 1.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.01545, allocations: 0 / 297.2 MB, free: 1.785 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.001614/0.01707, allocations: 1.313 MB / 298.5 MB, free: 436 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.01709, allocations: 8.031 kB / 298.5 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.01725, allocations: 140.8 kB / 298.7 MB, free: 288 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006498/0.0179, allocations: 0.5263 MB / 299.2 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003513/0.01826, allocations: 0.7287 MB / 299.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.958e-05/0.01835, allocations: 68 kB / 300 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007077/0.01905, allocations: 0.6373 MB / 300.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.01907, allocations: 0 / 300.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.01911, allocations: 24 kB / 300.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.418e-05/0.01918, allocations: 29.3 kB / 300.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.0196, allocations: 301 kB / 301 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002372/0.02198, allocations: 2.134 MB / 303.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005329/0.02251, allocations: 405 kB / 303.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.02283, allocations: 239.1 kB / 303.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.003e-05/0.02287, allocations: 16.44 kB / 303.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000337/0.02321, allocations: 327.5 kB / 304.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=59): time 1.653e-06/0.02321, allocations: 3.938 kB / 304.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=60): time 0.007758/0.03097, allocations: 3.834 MB / 307.9 MB, free: 6.668 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.03102, allocations: 89.59 kB / 308 MB, free: 6.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.03124, allocations: 367.1 kB / 308.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.03128, allocations: 45.7 kB / 308.4 MB, free: 6.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.03153, allocations: 281.7 kB / 308.7 MB, free: 5.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.03165, allocations: 206.2 kB / 308.9 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.03179, allocations: 118.2 kB / 309 MB, free: 5.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.03189, allocations: 382.5 kB / 309.4 MB, free: 5.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.03207, allocations: 165.8 kB / 309.5 MB, free: 4.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.03227, allocations: 272 kB / 309.8 MB, free: 4.676 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.0007642/0.03304, allocations: 0.7741 MB / 310.6 MB, free: 3.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.03304, allocations: 0 / 310.6 MB, free: 3.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001833/0.03487, allocations: 1.187 MB / 311.8 MB, free: 2.633 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.908e-05/0.03492, allocations: 45.69 kB / 311.8 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.03493, allocations: 4 kB / 311.8 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/0.03708, allocations: 1.395 MB / 313.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.03735, allocations: 123.8 kB / 313.3 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003452/0.04081, allocations: 2.753 MB / 316.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.04105, allocations: 51.89 kB / 316.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/0.0411, allocations: 39.97 kB / 316.2 MB, free: 14.12 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.0001751/0.04127, allocations: 168 kB / 316.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.547e-05/0.04135, allocations: 55.94 kB / 316.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.04315, allocations: 1.069 MB / 317.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.04316, allocations: 4 kB / 317.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.04316, allocations: 4 kB / 317.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.04317, allocations: 3.984 kB / 317.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.04566, allocations: 1.74 MB / 319.2 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.04566, allocations: 0 / 319.2 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.04586, allocations: 87.83 kB / 319.3 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003934/0.04626, allocations: 111.5 kB / 319.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/0.04809, allocations: 1.396 MB / 320.8 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.04813, allocations: 23.92 kB / 320.8 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003209/0.05134, allocations: 2.739 MB / 323.6 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.05134, allocations: 7.875 kB / 323.6 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.05338, allocations: 1.346 MB / 324.9 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.726e-05/0.05345, allocations: 27.98 kB / 324.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.05369, allocations: 51.94 kB / 325 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.05383, allocations: 92.23 kB / 325.1 MB, free: 5.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.05386, allocations: 15.98 kB / 325.1 MB, free: 4.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.05396, allocations: 148.7 kB / 325.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.05396, allocations: 0 / 325.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004974/0.05446, allocations: 224 kB / 325.5 MB, free: 4.621 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.0001309/0.05459, allocations: 104.3 kB / 325.6 MB, free: 4.508 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.05575, allocations: 0.8726 MB / 326.4 MB, free: 3.598 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/0.05577, allocations: 8 kB / 326.5 MB, free: 3.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.05684, allocations: 0.5777 MB / 327 MB, free: 3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004752/0.05731, allocations: 222.4 kB / 327.2 MB, free: 2.785 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007451/0.06476, allocations: 1.381 MB / 328.6 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001565/0.06492, allocations: 211 kB / 328.8 MB, free: 1.125 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.06511, allocations: 68.91 kB / 328.9 MB, free: 1.055 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.06535, allocations: 165.3 kB / 329.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.06535, allocations: 0 / 329.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of Templates: time 0.01776/0.08312, allocations: 16.97 MB / 346 MB, free: 112 kB / 330.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2035050122067332]