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.001092/0.001092, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.901/1.901, allocations: 205.3 MB / 213.4 MB, free: 13.7 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.0008848/0.0008846, allocations: 87.17 kB / 261.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05786/0.05786, allocations: 14.04 MB / 323.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.797e-05/1.799e-05, allocations: 0 / 382 MB, free: 72.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 51.12 MB / 433.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.462/0.5777, allocations: 78.88 MB / 0.5 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.578, allocations: 68.22 kB / 0.5 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01694/0.5949, allocations: 6.598 MB / 0.5065 GB, free: 10.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5949, allocations: 0 / 0.5065 GB, free: 10.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.595, allocations: 15.62 kB / 0.5065 GB, free: 10.34 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.0007438/0.5957, allocations: 0.5852 MB / 0.5071 GB, free: 9.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.5958, allocations: 11.34 kB / 0.5071 GB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.819e-05/0.5959, allocations: 42.58 kB / 0.5071 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.5963, allocations: 333.7 kB / 0.5074 GB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5963, allocations: 3.844 kB / 0.5074 GB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.5964, allocations: 15.22 kB / 0.5074 GB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002575/0.5966, allocations: 142.9 kB / 0.5076 GB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003355/0.597, allocations: 237.1 kB / 0.5078 GB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.597, allocations: 0 / 0.5078 GB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.597, allocations: 3.969 kB / 0.5078 GB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.597, allocations: 3.844 kB / 0.5078 GB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.5982, allocations: 0.9046 MB / 0.5087 GB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006083/0.5988, allocations: 254 kB / 0.5089 GB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.599, allocations: 114.3 kB / 0.5091 GB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.599, allocations: 0 / 0.5091 GB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.5993, allocations: 210.2 kB / 0.5093 GB, free: 8.512 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.5993, allocations: 0 / 0.5093 GB, free: 8.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006073/0.5999, allocations: 276.1 kB / 0.5095 GB, free: 8.438 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.6, allocations: 209.5 kB / 0.5097 GB, free: 8.188 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.6002, allocations: 237.3 kB / 0.5099 GB, free: 8.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.6003, allocations: 29.67 kB / 0.51 GB, free: 8.039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.549e-05/0.6004, allocations: 176.8 kB / 0.5101 GB, free: 7.918 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.6004, allocations: 64.8 kB / 0.5102 GB, free: 7.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.6004, allocations: 3.844 kB / 0.5102 GB, free: 7.871 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.626e-05/0.6005, allocations: 336.6 kB / 0.5105 GB, free: 7.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.6006, allocations: 82.42 kB / 0.5106 GB, free: 7.539 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.6008, allocations: 157.9 kB / 0.5108 GB, free: 7.441 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.6009, allocations: 79.98 kB / 0.5108 GB, free: 7.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6009, allocations: 0 / 0.5108 GB, free: 7.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00041/0.6014, allocations: 300.9 kB / 0.5111 GB, free: 7.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.6015, allocations: 392.3 kB / 0.5115 GB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.6015, allocations: 0 / 0.5115 GB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.6015, allocations: 3.844 kB / 0.5115 GB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.6018, allocations: 57.5 kB / 0.5115 GB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.6018, allocations: 0 / 0.5115 GB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.602, allocations: 42.41 kB / 0.5116 GB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.6021, allocations: 19.17 kB / 0.5116 GB, free: 6.914 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.763e-06/0.6021, allocations: 7.797 kB / 0.5116 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003235/0.6024, allocations: 236.5 kB / 0.5118 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-06/0.6024, allocations: 3.75 kB / 0.5118 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-06/0.6024, allocations: 0 / 0.5118 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.6026, allocations: 42.28 kB / 0.5119 GB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/0.6026, allocations: 7.781 kB / 0.5119 GB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.6028, allocations: 27.45 kB / 0.5119 GB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.6028, allocations: 11.53 kB / 0.5119 GB, free: 6.848 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.000123/0.6029, allocations: 149.4 kB / 0.5121 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003963/0.6033, allocations: 284 kB / 0.5123 GB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.6034, allocations: 34.72 kB / 0.5124 GB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.534e-05/0.6035, allocations: 29.53 kB / 0.5124 GB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.6035, allocations: 3.844 kB / 0.5124 GB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6035, allocations: 4.016 kB / 0.5124 GB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.6035, allocations: 4 kB / 0.5124 GB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.6038, allocations: 308.7 kB / 0.5127 GB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.6038, allocations: 0 / 0.5127 GB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.604, allocations: 48.84 kB / 0.5128 GB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.604, allocations: 3.984 kB / 0.5128 GB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.6041, allocations: 3.875 kB / 0.5128 GB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.6041, allocations: 11.81 kB / 0.5128 GB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6041, allocations: 4 kB / 0.5128 GB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005889/0.6047, allocations: 468.2 kB / 0.5132 GB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.6047, allocations: 103.7 kB / 0.5133 GB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.6048, allocations: 7.859 kB / 0.5133 GB, free: 6.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.605, allocations: 35.03 kB / 0.5134 GB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.6051, allocations: 23.62 kB / 0.5134 GB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.6051, allocations: 11.25 kB / 0.5134 GB, free: 6.039 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001601/0.6053, allocations: 191.8 kB / 0.5136 GB, free: 5.945 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.263e-06/0.6053, allocations: 11.78 kB / 0.5136 GB, free: 5.938 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004448/0.6058, allocations: 112.3 kB / 0.5137 GB, free: 5.91 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.0007787/0.6066, allocations: 1.137 MB / 0.5148 GB, free: 5.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.607, allocations: 442.9 kB / 0.5152 GB, free: 4.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.607, allocations: 7.781 kB / 0.5152 GB, free: 4.926 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.6072, allocations: 167.3 kB / 0.5154 GB, free: 4.855 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.6076, allocations: 54.36 kB / 0.5155 GB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009239/0.6085, allocations: 498.7 kB / 0.5159 GB, free: 4.559 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.6087, allocations: 0.7768 MB / 0.5167 GB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002232/0.6089, allocations: 53.97 kB / 0.5167 GB, free: 3.785 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.6091, allocations: 90.94 kB / 0.5168 GB, free: 3.773 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6091, allocations: 3.938 kB / 0.5168 GB, free: 3.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0311/0.6402, allocations: 6.364 MB / 0.523 GB, free: 456 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.6405, allocations: 137.9 kB / 0.5232 GB, free: 256 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.991/2.632, allocations: 0 / 0.5232 GB, free: 256 kB / 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)