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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005587/0.005587, allocations: 180.2 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.2 MB / 213.1 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 88.41 kB / 261.1 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05792/0.05792, allocations: 14.03 MB / 323 MB, free: 15.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2693/0.3272, allocations: 58.35 MB / 381.4 MB, free: 73.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.4545, allocations: 51.12 MB / 432.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3765/0.831, allocations: 78.8 MB / 0.4993 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.8314, allocations: 73.16 kB / 0.4994 GB, free: 11.93 MB / 330.7 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.02386/0.8553, allocations: 6.896 MB / 0.5061 GB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.367e-05/0.8554, allocations: 9.625 kB / 0.5061 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003377/0.8557, allocations: 37.41 kB / 0.5062 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.8568, allocations: 344.7 kB / 0.5065 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.852e-05/0.8569, allocations: 6.875 kB / 0.5065 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.756e-05/0.857, allocations: 11 kB / 0.5065 GB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004745/0.8575, allocations: 138.7 kB / 0.5067 GB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005266/0.8581, allocations: 236.5 kB / 0.5069 GB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.8581, allocations: 0 / 0.5069 GB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/0.8581, allocations: 1.062 kB / 0.5069 GB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.8581, allocations: 8.344 kB / 0.5069 GB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.86, allocations: 0.9152 MB / 0.5078 GB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008394/0.8609, allocations: 249.9 kB / 0.508 GB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.8611, allocations: 112.9 kB / 0.5081 GB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.487e-05/0.8611, allocations: 2.75 kB / 0.5081 GB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003197/0.8615, allocations: 203.9 kB / 0.5083 GB, free: 8.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.695e-06/0.8615, allocations: 3.938 kB / 0.5083 GB, free: 8.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007693/0.8623, allocations: 231.2 kB / 0.5086 GB, free: 8.758 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.8624, allocations: 210.1 kB / 0.5088 GB, free: 8.508 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.8628, allocations: 244.7 kB / 0.509 GB, free: 8.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.35e-05/0.8629, allocations: 26.52 kB / 0.509 GB, free: 8.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.968e-05/0.863, allocations: 142.2 kB / 0.5092 GB, free: 8.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.128e-05/0.8631, allocations: 62.28 kB / 0.5092 GB, free: 8.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.57e-05/0.8631, allocations: 0 / 0.5092 GB, free: 8.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.8632, allocations: 342.9 kB / 0.5095 GB, free: 7.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.8634, allocations: 74.92 kB / 0.5096 GB, free: 7.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.8636, allocations: 157.2 kB / 0.5098 GB, free: 7.773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/0.864, allocations: 82.61 kB / 0.5098 GB, free: 7.762 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.864, allocations: 0 / 0.5098 GB, free: 7.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006291/0.8646, allocations: 250 kB / 0.5101 GB, free: 7.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.8648, allocations: 363.1 kB / 0.5104 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.8648, allocations: 2.031 kB / 0.5104 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.8649, allocations: 2.125 kB / 0.5104 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.8652, allocations: 62.05 kB / 0.5105 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.8652, allocations: 1.625 kB / 0.5105 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.8655, allocations: 47.84 kB / 0.5105 GB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.8656, allocations: 11.06 kB / 0.5105 GB, free: 7.285 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.8656, allocations: 3 kB / 0.5105 GB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000432/0.8661, allocations: 179.3 kB / 0.5107 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.8661, allocations: 1.156 kB / 0.5107 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.8661, allocations: 1.969 kB / 0.5107 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.8663, allocations: 34.45 kB / 0.5108 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.8663, allocations: 2.312 kB / 0.5108 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.8666, allocations: 25.77 kB / 0.5108 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.8666, allocations: 10.09 kB / 0.5108 GB, free: 7.234 MB / 330.7 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 () * 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.0001577/0.8668, allocations: 153.8 kB / 0.5109 GB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.8669, allocations: 31.78 kB / 0.511 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.927e-05/0.867, allocations: 28.8 kB / 0.511 GB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.867, allocations: 6.344 kB / 0.511 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.867, allocations: 1.188 kB / 0.511 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.867, allocations: 1.031 kB / 0.511 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003689/0.8674, allocations: 307.8 kB / 0.5113 GB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.8674, allocations: 1.125 kB / 0.5113 GB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.8677, allocations: 48.38 kB / 0.5113 GB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.8677, allocations: 8.984 kB / 0.5114 GB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.8677, allocations: 11.12 kB / 0.5114 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.8677, allocations: 6.375 kB / 0.5114 GB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.8678, allocations: 0 / 0.5114 GB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008324/0.8686, allocations: 422.6 kB / 0.5118 GB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001057/0.8697, allocations: 0.9105 MB / 0.5127 GB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.315e-05/0.8698, allocations: 104.8 kB / 0.5128 GB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.952e-05/0.8699, allocations: 7.844 kB / 0.5128 GB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.8702, allocations: 36.34 kB / 0.5128 GB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.02e-05/0.8702, allocations: 13.78 kB / 0.5128 GB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.8703, allocations: 11.09 kB / 0.5128 GB, free: 5.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000263/0.8706, allocations: 198.6 kB / 0.513 GB, free: 5.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001862/0.8724, allocations: 113.4 kB / 0.5131 GB, free: 5.832 MB / 330.7 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) * 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.0003578/0.8728, allocations: 127 kB / 0.5132 GB, free: 5.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007455/0.8735, allocations: 355.2 kB / 0.5136 GB, free: 5.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.8736, allocations: 0.9688 kB / 0.5136 GB, free: 5.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.8738, allocations: 151.6 kB / 0.5137 GB, free: 5.605 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.8743, allocations: 58.98 kB / 0.5138 GB, free: 5.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.8758, allocations: 430.8 kB / 0.5142 GB, free: 5.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005133/0.8763, allocations: 0.8112 MB / 0.515 GB, free: 4.605 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.8763, allocations: 1.125 kB / 0.515 GB, free: 4.605 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1)