Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=480,variableFilter="",fileNamePrefix="PowerGrids_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.0009391/0.0009388, allocations: 100 kB / 15.05 MB, free: 1.105 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.001001/0.001001, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06313/0.06313, allocations: 14.15 MB / 284.5 MB, free: 7.027 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.000644/0.0006443, allocations: 19.94 kB / 348.1 MB, free: 17.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0994/0.1001, allocations: 51.12 MB / 399.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.002624/0.1027, allocations: 1.796 MB / 401 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.1044, allocations: 0.8546 MB / 401.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1047, allocations: 7.938 kB / 401.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.1049, allocations: 39.77 kB / 401.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003056/0.1052, allocations: 91.67 kB / 402 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008179/0.106, allocations: 195.6 kB / 402.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005823/0.1066, allocations: 223.5 kB / 402.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.1069, allocations: 78.12 kB / 402.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.1071, allocations: 111.5 kB / 402.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.1074, allocations: 115.4 kB / 402.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.919e-05/0.1074, allocations: 8 kB / 402.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.1076, allocations: 67.94 kB / 402.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.745e-05/0.1077, allocations: 51.75 kB / 402.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.1078, allocations: 73.52 kB / 402.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.1082, allocations: 247.5 kB / 403.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.1082, allocations: 4 kB / 403.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1082, allocations: 0 / 403.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.1082, allocations: 0 / 403.2 MB, free: 10.77 MB / 302.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.001116/0.1093, allocations: 0.6051 MB / 403.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.1094, allocations: 12.02 kB / 403.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.1095, allocations: 39.53 kB / 403.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.1101, allocations: 318.2 kB / 404.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.1101, allocations: 15.94 kB / 404.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.1102, allocations: 24 kB / 404.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007553/0.1109, allocations: 300.4 kB / 404.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.111, allocations: 0 / 404.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.111, allocations: 12 kB / 404.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.111, allocations: 4 kB / 404.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006779/0.1117, allocations: 240.4 kB / 404.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.1132, allocations: 0.8446 MB / 405.6 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.1143, allocations: 379.7 kB / 405.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.1144, allocations: 0 / 405.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005502/0.1149, allocations: 248.1 kB / 406.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.1149, allocations: 0 / 406.2 MB, free: 7.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001319/0.1163, allocations: 0.5666 MB / 406.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.1164, allocations: 225.6 kB / 407 MB, free: 6.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.1167, allocations: 275 kB / 407.2 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.1167, allocations: 29.7 kB / 407.3 MB, free: 6.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.1169, allocations: 180.2 kB / 407.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.117, allocations: 59.11 kB / 407.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.781e-05/0.117, allocations: 11.94 kB / 407.5 MB, free: 6.086 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1171, allocations: 338.8 kB / 407.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.1175, allocations: 115.9 kB / 408 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003776/0.1179, allocations: 196.7 kB / 408.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003553/0.1182, allocations: 154.3 kB / 408.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1182, allocations: 4 kB / 408.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008616/0.1191, allocations: 405 kB / 408.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002565/0.1194, allocations: 401.6 kB / 409.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1194, allocations: 64 / 409.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1194, allocations: 4 kB / 409.1 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.1197, allocations: 59.91 kB / 409.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.1197, allocations: 0 / 409.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.12, allocations: 51.8 kB / 409.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.12, allocations: 4 kB / 409.2 MB, free: 4.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.12, allocations: 4 kB / 409.2 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005509/0.1206, allocations: 285.5 kB / 409.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.1206, allocations: 4 kB / 409.5 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.366e-06/0.1206, allocations: 3.938 kB / 409.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.1208, allocations: 31.98 kB / 409.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1208, allocations: 3.984 kB / 409.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.121, allocations: 35.92 kB / 409.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.121, allocations: 7.953 kB / 409.6 MB, free: 3.93 MB / 302.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 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002568/0.1213, allocations: 269.4 kB / 409.8 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.604e-05/0.1213, allocations: 27.72 kB / 409.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.1215, allocations: 30.3 kB / 409.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1215, allocations: 0 / 409.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.1215, allocations: 4 kB / 409.9 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1216, allocations: 7.969 kB / 409.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.1219, allocations: 349.2 kB / 410.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1219, allocations: 7.938 kB / 410.3 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.1222, allocations: 43.97 kB / 410.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.565e-06/0.1222, allocations: 4 kB / 410.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.1222, allocations: 11.94 kB / 410.3 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1222, allocations: 3.938 kB / 410.3 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1223, allocations: 0 / 410.3 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.1236, allocations: 0.6126 MB / 410.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.1237, allocations: 108.7 kB / 411 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.1237, allocations: 7.984 kB / 411.1 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.124, allocations: 43.98 kB / 411.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.72e-05/0.1241, allocations: 12.11 kB / 411.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.1241, allocations: 11.94 kB / 411.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.1243, allocations: 201.9 kB / 411.3 MB, free: 2.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1243, allocations: 0 / 411.3 MB, free: 2.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004403/0.1247, allocations: 115.7 kB / 411.4 MB, free: 1.957 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002223/0.125, allocations: 134.7 kB / 411.6 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.1261, allocations: 0.5533 MB / 412.1 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1261, allocations: 0 / 412.1 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003995/0.1265, allocations: 231.5 kB / 412.3 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.1269, allocations: 56.61 kB / 412.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.1282, allocations: 0.6732 MB / 413.1 MB, free: 252 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.1286, allocations: 0.7755 MB / 413.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.1287, allocations: 37.94 kB / 413.9 MB, free: 15.4 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.147e-05/0.1288, allocations: 19.44 kB / 413.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1288, allocations: 0 / 413.9 MB, free: 15.38 MB / 318.1 MB Notification: Performance of Templates: time 0.00796/0.1368, allocations: 3.713 MB / 417.6 MB, free: 11.68 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.makefile Environment - environmentSimulation: (rm -f PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.sim & ./PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1) Environment - environmentSimulation: