Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=480,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=480,variableFilter="",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 102.4 kB / 16.96 MB, free: 5.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002257/0.002257, allocations: 190.2 kB / 17.9 MB, free: 5.148 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.984/2.984, allocations: 205.1 MB / 223.8 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.1197/0.1197, allocations: 14.17 MB / 285.3 MB, free: 13.93 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002773/0.002773, allocations: 71.88 kB / 348.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4406, allocations: 50.12 MB / 398.7 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.005909/0.4466, allocations: 2.167 MB / 400.9 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.4494, allocations: 0.9296 MB / 401.8 MB, free: 46.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.4499, allocations: 14.53 kB / 401.8 MB, free: 46.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004474/0.4503, allocations: 60.59 kB / 401.9 MB, free: 46.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003434/0.4507, allocations: 75.14 kB / 402 MB, free: 46.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.4521, allocations: 277.7 kB / 402.2 MB, free: 45.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008499/0.453, allocations: 376.8 kB / 402.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004253/0.4534, allocations: 99.14 kB / 402.7 MB, free: 45.54 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003896/0.4538, allocations: 134.5 kB / 402.8 MB, free: 45.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004959/0.4544, allocations: 160.1 kB / 403 MB, free: 45.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.4545, allocations: 31.06 kB / 403 MB, free: 45.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002949/0.4548, allocations: 100.5 kB / 403.1 MB, free: 45.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.455, allocations: 76.34 kB / 403.2 MB, free: 45.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.4553, allocations: 142.8 kB / 403.3 MB, free: 45.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008394/0.4561, allocations: 366.6 kB / 403.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.4562, allocations: 0 / 403.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4562, allocations: 0 / 403.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.439e-05/0.4562, allocations: 1.469 kB / 403.7 MB, free: 44.86 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001875/0.4581, allocations: 0.6509 MB / 404.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.029e-05/0.4582, allocations: 9.25 kB / 404.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.4584, allocations: 35.41 kB / 404.4 MB, free: 44.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006258/0.459, allocations: 329.2 kB / 404.7 MB, free: 43.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.4591, allocations: 12.91 kB / 404.7 MB, free: 43.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.4592, allocations: 21.81 kB / 404.7 MB, free: 43.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009882/0.4602, allocations: 294.2 kB / 405 MB, free: 43.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.4602, allocations: 1.156 kB / 405 MB, free: 43.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.434e-05/0.4603, allocations: 6.375 kB / 405 MB, free: 43.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.4603, allocations: 4.594 kB / 405 MB, free: 43.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.4614, allocations: 227.7 kB / 405.3 MB, free: 43.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.4635, allocations: 0.834 MB / 406.1 MB, free: 42.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.4651, allocations: 328.5 kB / 406.4 MB, free: 42.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.4657, allocations: 146.6 kB / 406.6 MB, free: 42.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.4657, allocations: 2.969 kB / 406.6 MB, free: 42.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008178/0.4666, allocations: 240.9 kB / 406.8 MB, free: 42.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 4.579e-06/0.4666, allocations: 0 / 406.8 MB, free: 42.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.002071/0.4687, allocations: 465.1 kB / 407.2 MB, free: 42.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.797e-05/0.4688, allocations: 211.4 kB / 407.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004885/0.4693, allocations: 282.5 kB / 407.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.127e-05/0.4694, allocations: 35.95 kB / 407.8 MB, free: 41.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.4695, allocations: 184.4 kB / 407.9 MB, free: 41.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.4696, allocations: 72.64 kB / 408 MB, free: 41.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.4698, allocations: 45.2 kB / 408.1 MB, free: 41.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.4699, allocations: 338.1 kB / 408.4 MB, free: 41.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005493/0.4705, allocations: 115.4 kB / 408.5 MB, free: 41.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006105/0.4711, allocations: 187.5 kB / 408.7 MB, free: 40.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.4722, allocations: 312.7 kB / 409 MB, free: 40.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.4723, allocations: 1.125 kB / 409 MB, free: 40.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001297/0.4736, allocations: 380.9 kB / 409.4 MB, free: 40.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.46e-05/0.4737, allocations: 37.69 kB / 409.4 MB, free: 40.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4737, allocations: 0 / 409.4 MB, free: 40.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.157e-05/0.4737, allocations: 4 kB / 409.4 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.4741, allocations: 59.98 kB / 409.5 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.4741, allocations: 0 / 409.5 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004151/0.4746, allocations: 39.81 kB / 409.5 MB, free: 40.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.4746, allocations: 8 kB / 409.5 MB, free: 40.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004604/0.4751, allocations: 184 kB / 409.7 MB, free: 40.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003119/0.4754, allocations: 156.6 kB / 409.8 MB, free: 39.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005416/0.476, allocations: 234.8 kB / 410.1 MB, free: 39.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.953e-06/0.476, allocations: 3.938 kB / 410.1 MB, free: 39.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007653/0.4768, allocations: 310.8 kB / 410.4 MB, free: 39.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.586e-05/0.4768, allocations: 41.69 kB / 410.4 MB, free: 39.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4769, allocations: 0 / 410.4 MB, free: 39.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.21e-06/0.4769, allocations: 0 / 410.4 MB, free: 39.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.4771, allocations: 40.02 kB / 410.5 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.4771, allocations: 3.984 kB / 410.5 MB, free: 39.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.4775, allocations: 27.89 kB / 410.5 MB, free: 39.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.4775, allocations: 8 kB / 410.5 MB, free: 39.18 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000174/0.4777, allocations: 239.5 kB / 410.7 MB, free: 38.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.162e-05/0.4778, allocations: 31.62 kB / 410.8 MB, free: 38.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.465e-05/0.4779, allocations: 30.3 kB / 410.8 MB, free: 38.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.4779, allocations: 8 kB / 410.8 MB, free: 38.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.478, allocations: 3.938 kB / 410.8 MB, free: 38.86 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.478, allocations: 3.984 kB / 410.8 MB, free: 38.86 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004483/0.4784, allocations: 341.3 kB / 411.1 MB, free: 38.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.4784, allocations: 0 / 411.1 MB, free: 38.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.4789, allocations: 47.89 kB / 411.2 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4789, allocations: 0 / 411.2 MB, free: 38.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.4789, allocations: 8 kB / 411.2 MB, free: 38.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.479, allocations: 4.125 kB / 411.2 MB, free: 38.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.479, allocations: 8 kB / 411.2 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006714/0.4862, allocations: 3.242 MB / 414.4 MB, free: 34.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.4863, allocations: 108.7 kB / 414.6 MB, free: 34.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.562e-05/0.4863, allocations: 8 kB / 414.6 MB, free: 34.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.4866, allocations: 23.97 kB / 414.6 MB, free: 34.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.4867, allocations: 15.97 kB / 414.6 MB, free: 34.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.4868, allocations: 12 kB / 414.6 MB, free: 34.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002634/0.487, allocations: 201.9 kB / 414.8 MB, free: 34.61 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4871, allocations: 4 kB / 414.8 MB, free: 34.61 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0012/0.4883, allocations: 159.7 kB / 415 MB, free: 34.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (PIController.firstOrder.y,PIControllerNegativeKp.firstOrder.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003217/0.4886, allocations: 129.1 kB / 415.1 MB, free: 34.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.4904, allocations: 0.5424 MB / 415.6 MB, free: 33.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4905, allocations: 0 / 415.6 MB, free: 33.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006212/0.4911, allocations: 219.2 kB / 415.9 MB, free: 33.53 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000609/0.4917, allocations: 64.59 kB / 415.9 MB, free: 33.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.4933, allocations: 0.8559 MB / 416.8 MB, free: 32.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.4936, allocations: 0.7756 MB / 417.5 MB, free: 31.74 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.4937, allocations: 27.44 kB / 417.6 MB, free: 31.71 MB / 318.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4937, allocations: 3.938 kB / 417.6 MB, free: 31.71 MB / 318.1 MB Notification: Performance of Templates: time 0.007691/0.5014, allocations: 4.042 MB / 421.6 MB, free: 27.68 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1)