Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 179.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 225.7 MB / 243.2 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008279/0.0008281, allocations: 89.64 kB / 294.4 MB, free: 9.738 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.3068/0.3068, allocations: 38.12 MB / 383.6 MB, free: 40.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003576, allocations: 12 kB / 453.5 MB, free: 8.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3404, allocations: 59.14 MB / 0.5006 GB, free: 38.83 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008167/0.3486, allocations: 7.063 MB / 0.5075 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00524/0.3538, allocations: 2.374 MB / 0.5098 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.355, allocations: 47.72 kB / 0.5099 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000667/0.3557, allocations: 132 kB / 0.51 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001342/0.357, allocations: 408.7 kB / 0.5104 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3582, allocations: 317 kB / 0.5107 GB, free: 34.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00297/0.3612, allocations: 2.012 MB / 0.5126 GB, free: 33.71 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/0.3618, allocations: 331 kB / 0.513 GB, free: 33.61 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.3629, allocations: 496.1 kB / 0.5134 GB, free: 33.44 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.364, allocations: 0.6206 MB / 0.514 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.3641, allocations: 43.97 kB / 0.5141 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.3643, allocations: 40.56 kB / 0.5141 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004124/0.3648, allocations: 367 kB / 0.5145 GB, free: 33.13 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005147/0.3653, allocations: 426.5 kB / 0.5149 GB, free: 32.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.3664, allocations: 1.105 MB / 0.516 GB, free: 32.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.3664, allocations: 3.062 kB / 0.516 GB, free: 32.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3664, allocations: 0 / 0.516 GB, free: 32.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.3665, allocations: 0 / 0.516 GB, free: 32.59 MB / 378.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.003056/0.3695, allocations: 1.168 MB / 0.5171 GB, free: 31.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3696, allocations: 8.125 kB / 0.5171 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.3698, allocations: 96.84 kB / 0.5172 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001648/0.3715, allocations: 0.6913 MB / 0.5179 GB, free: 31.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005389/0.372, allocations: 358.5 kB / 0.5182 GB, free: 31.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.3722, allocations: 64.44 kB / 0.5183 GB, free: 31.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/0.3753, allocations: 1.202 MB / 0.5195 GB, free: 30.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.3754, allocations: 0 / 0.5195 GB, free: 30.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.3755, allocations: 36.98 kB / 0.5195 GB, free: 30.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/0.3756, allocations: 39.91 kB / 0.5195 GB, free: 30.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003791/0.3794, allocations: 1.283 MB / 0.5208 GB, free: 30.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006534/0.386, allocations: 3.557 MB / 0.5243 GB, free: 28.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003225/0.3892, allocations: 1.049 MB / 0.5253 GB, free: 27.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/0.3914, allocations: 0.752 MB / 0.526 GB, free: 27.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.3915, allocations: 10.84 kB / 0.526 GB, free: 27.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002015/0.3935, allocations: 0.7366 MB / 0.5267 GB, free: 27.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.516e-06/0.3935, allocations: 0 / 0.5267 GB, free: 27.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.02748/0.421, allocations: 6.973 MB / 0.5336 GB, free: 25.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/0.4212, allocations: 90.41 kB / 0.5336 GB, free: 25.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/0.422, allocations: 464.6 kB / 0.5341 GB, free: 25.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001623/0.4221, allocations: 50.11 kB / 0.5341 GB, free: 25.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.4225, allocations: 327.6 kB / 0.5344 GB, free: 25.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.4227, allocations: 199.7 kB / 0.5346 GB, free: 25.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.4228, allocations: 18.56 kB / 0.5347 GB, free: 25.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.4229, allocations: 368.4 kB / 0.535 GB, free: 24.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001512/0.4245, allocations: 0.5519 MB / 0.5355 GB, free: 24.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.426, allocations: 0.6748 MB / 0.5362 GB, free: 24.25 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.01017/0.4362, allocations: 3.38 MB / 0.5395 GB, free: 23.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.4362, allocations: 1.375 kB / 0.5395 GB, free: 23.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.01201/0.4482, allocations: 3.047 MB / 0.5425 GB, free: 22.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.4484, allocations: 48.98 kB / 0.5425 GB, free: 22.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.4484, allocations: 7.266 kB / 0.5425 GB, free: 22.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003919/0.4524, allocations: 1.182 MB / 0.5437 GB, free: 22.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008514/0.4532, allocations: 113.1 kB / 0.5438 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02282/0.4761, allocations: 7.152 MB / 0.5508 GB, free: 18.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.4774, allocations: 117.7 kB / 0.5509 GB, free: 18.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.4775, allocations: 48.59 kB / 0.5509 GB, free: 18.88 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 sytem: 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[4],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * 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.0006328/0.4782, allocations: 279.3 kB / 0.5512 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.4783, allocations: 58.88 kB / 0.5513 GB, free: 18.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01125/0.4896, allocations: 3.005 MB / 0.5542 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.4897, allocations: 8 kB / 0.5542 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4897, allocations: 3.938 kB / 0.5542 GB, free: 16.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.223e-05/0.4897, allocations: 7.984 kB / 0.5542 GB, free: 16.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/0.5031, allocations: 4.141 MB / 0.5583 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.5032, allocations: 4 kB / 0.5583 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005809/0.5038, allocations: 72.05 kB / 0.5583 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003342/0.5071, allocations: 1.191 MB / 0.5595 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.5073, allocations: 15.98 kB / 0.5595 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01983/0.5272, allocations: 7.121 MB / 0.5665 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5272, allocations: 0 / 0.5665 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01277/0.54, allocations: 3.836 MB / 0.5702 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006898/0.5407, allocations: 220.4 kB / 0.5704 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.541, allocations: 31.98 kB / 0.5704 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009995/0.542, allocations: 123.9 kB / 0.5706 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006466/0.5426, allocations: 172.2 kB / 0.5707 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.862e-05/0.5427, allocations: 27.98 kB / 0.5708 GB, free: 14.86 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006241/0.5434, allocations: 318.9 kB / 0.5711 GB, free: 14.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5434, allocations: 0 / 0.5711 GB, free: 14.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001382/0.5448, allocations: 224 kB / 0.5713 GB, free: 14.33 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.0002822/0.545, allocations: 147.3 kB / 0.5714 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006432/0.5515, allocations: 1.942 MB / 0.5733 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5515, allocations: 0 / 0.5733 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004472/0.556, allocations: 1.275 MB / 0.5746 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.5574, allocations: 153.9 kB / 0.5747 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.5619, allocations: 2.061 MB / 0.5767 GB, free: 8.668 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000858/0.5627, allocations: 1.001 MB / 0.5777 GB, free: 7.637 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006007/0.5634, allocations: 117.2 kB / 0.5778 GB, free: 7.523 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.5635, allocations: 43.44 kB / 0.5778 GB, free: 7.48 MB / 394.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5635, allocations: 0 / 0.5778 GB, free: 7.48 MB / 394.7 MB Notification: Performance of Templates: time 0.03281/0.5963, allocations: 15.49 MB / 0.593 GB, free: 8.016 MB / 410.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)