Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.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.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",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.001934/0.001934, allocations: 175.2 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.846/1.846, allocations: 205.2 MB / 218.5 MB, free: 9.203 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.0009381/0.000938, allocations: 82.59 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.0583/0.0583, allocations: 14.01 MB / 328.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.089e-05/5.104e-05, allocations: 4 kB / 389.2 MB, free: 66.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1287, allocations: 51.11 MB / 440.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5059/0.6347, allocations: 79.71 MB / 0.5079 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.6351, allocations: 64.91 kB / 0.5079 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01664/0.6517, allocations: 6.257 MB / 0.5141 GB, free: 9.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6518, allocations: 0 / 0.5141 GB, free: 9.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.6518, allocations: 4.219 kB / 0.5141 GB, free: 9.227 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0008418/0.6527, allocations: 0.5616 MB / 0.5146 GB, free: 8.637 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.6527, allocations: 11.97 kB / 0.5146 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.828e-05/0.6528, allocations: 58.22 kB / 0.5147 GB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.846e-05/0.6529, allocations: 35.53 kB / 0.5147 GB, free: 8.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.6534, allocations: 315.1 kB / 0.515 GB, free: 8.227 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.6534, allocations: 27.77 kB / 0.515 GB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.6535, allocations: 19.55 kB / 0.515 GB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/0.654, allocations: 272.9 kB / 0.5153 GB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.654, allocations: 0 / 0.5153 GB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.654, allocations: 15.12 kB / 0.5153 GB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.654, allocations: 4 kB / 0.5153 GB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002485/0.6543, allocations: 150.3 kB / 0.5155 GB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.6555, allocations: 1.073 MB / 0.5165 GB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.656, allocations: 217.4 kB / 0.5167 GB, free: 6.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.6562, allocations: 124 kB / 0.5168 GB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.6562, allocations: 11.92 kB / 0.5169 GB, free: 6.559 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003114/0.6565, allocations: 197.6 kB / 0.517 GB, free: 6.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.6565, allocations: 3.938 kB / 0.517 GB, free: 6.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005959/0.6571, allocations: 311.5 kB / 0.5173 GB, free: 6.113 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.6572, allocations: 162.2 kB / 0.5175 GB, free: 5.918 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.6575, allocations: 237.3 kB / 0.5177 GB, free: 5.719 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.6575, allocations: 29.64 kB / 0.5178 GB, free: 5.688 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.6576, allocations: 167 kB / 0.5179 GB, free: 5.559 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.6577, allocations: 74.38 kB / 0.518 GB, free: 5.496 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.346e-05/0.6577, allocations: 3.938 kB / 0.518 GB, free: 5.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.6578, allocations: 342.5 kB / 0.5183 GB, free: 5.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.6579, allocations: 79.17 kB / 0.5184 GB, free: 5.109 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.6581, allocations: 175.5 kB / 0.5186 GB, free: 4.938 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.6583, allocations: 112.5 kB / 0.5187 GB, free: 4.844 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.6583, allocations: 4 kB / 0.5187 GB, free: 4.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008156/0.6591, allocations: 484.7 kB / 0.5191 GB, free: 4.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002153/0.6593, allocations: 0.5598 MB / 0.5197 GB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.6593, allocations: 4 kB / 0.5197 GB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/0.6597, allocations: 88.7 kB / 0.5198 GB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.6598, allocations: 39.91 kB / 0.5198 GB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009759/0.6608, allocations: 1.25 MB / 0.521 GB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.661, allocations: 35.64 kB / 0.5211 GB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-05/0.6611, allocations: 23.84 kB / 0.5211 GB, free: 2.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.6611, allocations: 7.953 kB / 0.5211 GB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005276/0.6616, allocations: 363.8 kB / 0.5214 GB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.6616, allocations: 4 kB / 0.5214 GB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.6618, allocations: 74.59 kB / 0.5215 GB, free: 2.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.6619, allocations: 27.98 kB / 0.5215 GB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.6642, allocations: 3.007 MB / 0.5245 GB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.6644, allocations: 31.2 kB / 0.5245 GB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.6644, allocations: 11.38 kB / 0.5245 GB, free: 14.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.6647, allocations: 153.7 kB / 0.5247 GB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.6647, allocations: 27.72 kB / 0.5247 GB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.6648, allocations: 29.95 kB / 0.5247 GB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.6649, allocations: 8.031 kB / 0.5247 GB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6649, allocations: 8.062 kB / 0.5247 GB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.6649, allocations: 0 / 0.5247 GB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.6653, allocations: 336.4 kB / 0.5251 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.6653, allocations: 0 / 0.5251 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002217/0.6656, allocations: 43.91 kB / 0.5251 GB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.6656, allocations: 4 kB / 0.5251 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/0.6656, allocations: 7.375 kB / 0.5251 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.6656, allocations: 3.984 kB / 0.5251 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.6656, allocations: 3.953 kB / 0.5251 GB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007775/0.6664, allocations: 0.4901 MB / 0.5256 GB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.688e-05/0.6665, allocations: 104.3 kB / 0.5257 GB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.6666, allocations: 7.438 kB / 0.5257 GB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.6668, allocations: 35.98 kB / 0.5257 GB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.6668, allocations: 11.17 kB / 0.5257 GB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.6669, allocations: 11.94 kB / 0.5258 GB, free: 13.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002199/0.6671, allocations: 196.4 kB / 0.5259 GB, free: 13.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6671, allocations: 0 / 0.5259 GB, free: 13.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006439/0.6678, allocations: 122.4 kB / 0.5261 GB, free: 13.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (leadLagPositiveGain.integ_fb.y,leadLagNegativeGain.integ_fb.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 (17): * Single equations (assignments): 16 * 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.001242/0.669, allocations: 1.119 MB / 0.5272 GB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.6706, allocations: 0.8347 MB / 0.528 GB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6706, allocations: 0 / 0.528 GB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.6708, allocations: 176 kB / 0.5281 GB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.6712, allocations: 56.69 kB / 0.5282 GB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.6729, allocations: 0.6235 MB / 0.5288 GB, free: 10.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.6734, allocations: 0.7726 MB / 0.5296 GB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.6736, allocations: 39.06 kB / 0.5296 GB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.6737, allocations: 85.78 kB / 0.5297 GB, free: 10.05 MB / 346.7 MB Notification: Performance of SimCode: time 8.81e-07/0.6737, allocations: 0 / 0.5297 GB, free: 10.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.6992, allocations: 7.166 MB / 0.5367 GB, free: 3.008 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003343/0.6997, allocations: 195.9 kB / 0.5369 GB, free: 2.777 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.881, allocations: 0 / 0.5369 GB, free: 2.777 MB / 346.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1)