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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001651/0.001651, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.2 MB / 218.5 MB, free: 9.211 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.0009326/0.0009322, allocations: 94.34 kB / 266.6 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05779/0.05779, allocations: 14.03 MB / 328.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.538e-05/4.538e-05, allocations: 8 kB / 389.2 MB, free: 66.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 51.11 MB / 440.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.473/0.5797, allocations: 79.54 MB / 0.5077 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.5801, allocations: 69.95 kB / 0.5078 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01753/0.5976, allocations: 6.647 MB / 0.5143 GB, free: 9.066 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.397e-06/0.5977, allocations: 0 / 0.5143 GB, free: 9.066 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.027e-05/0.5977, allocations: 4 kB / 0.5143 GB, free: 9.062 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.0009584/0.5987, allocations: 0.5947 MB / 0.5149 GB, free: 8.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.5988, allocations: 8.031 kB / 0.5149 GB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.986e-05/0.5988, allocations: 52.67 kB / 0.5149 GB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.521e-05/0.5989, allocations: 39.53 kB / 0.5149 GB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.5994, allocations: 333.7 kB / 0.5153 GB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.5994, allocations: 14.69 kB / 0.5153 GB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.5994, allocations: 30.95 kB / 0.5153 GB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003976/0.5999, allocations: 251.9 kB / 0.5155 GB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.5999, allocations: 7.875 kB / 0.5156 GB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.5999, allocations: 9.812 kB / 0.5156 GB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.5999, allocations: 4 kB / 0.5156 GB, free: 7.758 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.6002, allocations: 151.4 kB / 0.5157 GB, free: 7.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.6014, allocations: 0.9517 MB / 0.5166 GB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005885/0.602, allocations: 255.7 kB / 0.5169 GB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.6022, allocations: 122.2 kB / 0.517 GB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.912e-05/0.6023, allocations: 0 / 0.517 GB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.6025, allocations: 208.5 kB / 0.5172 GB, free: 6.293 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.323e-06/0.6025, allocations: 0 / 0.5172 GB, free: 6.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005104/0.6031, allocations: 313.5 kB / 0.5175 GB, free: 6.031 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.6032, allocations: 209.6 kB / 0.5177 GB, free: 5.777 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.6034, allocations: 250.1 kB / 0.5179 GB, free: 5.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.6034, allocations: 33.27 kB / 0.518 GB, free: 5.531 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.6036, allocations: 176.4 kB / 0.5181 GB, free: 5.398 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.521e-05/0.6036, allocations: 65.73 kB / 0.5182 GB, free: 5.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.6036, allocations: 4 kB / 0.5182 GB, free: 5.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.754e-05/0.6037, allocations: 341.5 kB / 0.5185 GB, free: 5.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.6039, allocations: 81.58 kB / 0.5186 GB, free: 4.961 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.604, allocations: 154.4 kB / 0.5188 GB, free: 4.812 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.6042, allocations: 115.7 kB / 0.5189 GB, free: 4.719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6042, allocations: 0 / 0.5189 GB, free: 4.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004129/0.6046, allocations: 329.6 kB / 0.5192 GB, free: 4.449 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.6048, allocations: 396.7 kB / 0.5196 GB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.6048, allocations: 4 kB / 0.5196 GB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.6048, allocations: 0 / 0.5196 GB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.6051, allocations: 55.45 kB / 0.5196 GB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.6051, allocations: 11.95 kB / 0.5196 GB, free: 3.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002403/0.6053, allocations: 47.31 kB / 0.5197 GB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.6054, allocations: 11.98 kB / 0.5197 GB, free: 3.918 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.6054, allocations: 4 kB / 0.5197 GB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003904/0.6058, allocations: 300.6 kB / 0.52 GB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/0.6058, allocations: 64 / 0.52 GB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.578e-06/0.6058, allocations: 8 kB / 0.52 GB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.606, allocations: 35.3 kB / 0.52 GB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.606, allocations: 11.92 kB / 0.52 GB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.6062, allocations: 23.83 kB / 0.5201 GB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.6062, allocations: 10.62 kB / 0.5201 GB, free: 3.598 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.0001332/0.6063, allocations: 161.7 kB / 0.5202 GB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.6064, allocations: 27.72 kB / 0.5202 GB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.164e-05/0.6064, allocations: 36.45 kB / 0.5203 GB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.6065, allocations: 0 / 0.5203 GB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.6065, allocations: 0 / 0.5203 GB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.6065, allocations: 4 kB / 0.5203 GB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000297/0.6068, allocations: 348.6 kB / 0.5206 GB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.6068, allocations: 0 / 0.5206 GB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.607, allocations: 55.41 kB / 0.5207 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.607, allocations: 4 kB / 0.5207 GB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.6071, allocations: 7.375 kB / 0.5207 GB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.6071, allocations: 3.984 kB / 0.5207 GB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6071, allocations: 0 / 0.5207 GB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006525/0.6077, allocations: 0.5086 MB / 0.5212 GB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.741e-05/0.6078, allocations: 104.8 kB / 0.5213 GB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.6079, allocations: 7.312 kB / 0.5213 GB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.6081, allocations: 35.47 kB / 0.5213 GB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.957e-05/0.6082, allocations: 23.53 kB / 0.5213 GB, free: 2.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.6082, allocations: 8 kB / 0.5213 GB, free: 2.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001909/0.6084, allocations: 203.8 kB / 0.5215 GB, free: 2.203 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6084, allocations: 0 / 0.5215 GB, free: 2.203 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004353/0.6089, allocations: 125.2 kB / 0.5217 GB, free: 2.09 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.0008998/0.6098, allocations: 1.185 MB / 0.5228 GB, free: 0.9688 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005824/0.6104, allocations: 479.2 kB / 0.5233 GB, free: 0.6016 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6104, allocations: 0 / 0.5233 GB, free: 0.6016 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.6105, allocations: 184 kB / 0.5235 GB, free: 464 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.6109, allocations: 58.81 kB / 0.5235 GB, free: 420 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.612, allocations: 0.4946 MB / 0.524 GB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.6124, allocations: 0.7803 MB / 0.5248 GB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.6126, allocations: 51.05 kB / 0.5248 GB, free: 15.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.6128, allocations: 87.78 kB / 0.5249 GB, free: 15.05 MB / 346.7 MB Notification: Performance of SimCode: time 3.227e-06/0.6128, allocations: 0 / 0.5249 GB, free: 15.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.6362, allocations: 6.941 MB / 0.5317 GB, free: 8.227 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000258/0.6365, allocations: 153.2 kB / 0.5318 GB, free: 7.996 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/2.926, allocations: 0 / 0.5318 GB, free: 7.996 MB / 346.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)