Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.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.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",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.005864/0.005864, allocations: 170.3 kB / 15.11 MB, free: 5.969 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.455/1.455, allocations: 205.4 MB / 221.3 MB, free: 13.83 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.0008788/0.0008784, allocations: 90.84 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05272/0.05272, allocations: 14.2 MB / 332.1 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003759, allocations: 10.62 kB / 395.7 MB, free: 50 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09169, allocations: 51.11 MB / 446.9 MB, free: 4.727 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.1922, allocations: 79.98 MB / 0.5145 GB, free: 4.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.1924, allocations: 71.97 kB / 0.5146 GB, free: 4.562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1718/0.3642, allocations: 6.224 MB / 0.5206 GB, free: 82.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3642, allocations: 1.891 kB / 0.5206 GB, free: 82.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.3642, allocations: 4.312 kB / 0.5206 GB, free: 82.21 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.000788/0.365, allocations: 0.6106 MB / 0.5212 GB, free: 81.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3651, allocations: 12.61 kB / 0.5213 GB, free: 81.73 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.522e-05/0.3651, allocations: 50.58 kB / 0.5213 GB, free: 81.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.3652, allocations: 34.56 kB / 0.5213 GB, free: 81.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3657, allocations: 308 kB / 0.5216 GB, free: 81.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.3657, allocations: 16.22 kB / 0.5216 GB, free: 81.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.3658, allocations: 23.34 kB / 0.5217 GB, free: 81.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007527/0.3665, allocations: 318 kB / 0.522 GB, free: 81.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.3666, allocations: 8.25 kB / 0.522 GB, free: 81.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.3666, allocations: 9.125 kB / 0.522 GB, free: 81.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.3666, allocations: 8.125 kB / 0.522 GB, free: 81.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007473/0.3674, allocations: 267.2 kB / 0.5222 GB, free: 81.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.3687, allocations: 1.062 MB / 0.5233 GB, free: 80.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008226/0.3695, allocations: 355.1 kB / 0.5236 GB, free: 80.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.3696, allocations: 4.328 kB / 0.5236 GB, free: 80.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004973/0.3701, allocations: 264 kB / 0.5239 GB, free: 80.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.974e-06/0.3701, allocations: 3.719 kB / 0.5239 GB, free: 80.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001301/0.3714, allocations: 0.6435 MB / 0.5245 GB, free: 80.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.3715, allocations: 164 kB / 0.5247 GB, free: 80.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.3717, allocations: 223.9 kB / 0.5249 GB, free: 79.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.3717, allocations: 30.86 kB / 0.5249 GB, free: 79.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.634e-05/0.3718, allocations: 159.2 kB / 0.5251 GB, free: 79.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/0.3719, allocations: 73.97 kB / 0.5251 GB, free: 79.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.3719, allocations: 8.375 kB / 0.5251 GB, free: 79.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.502e-05/0.372, allocations: 337.5 kB / 0.5255 GB, free: 79.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.3723, allocations: 145 kB / 0.5256 GB, free: 79.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/0.3727, allocations: 221.4 kB / 0.5258 GB, free: 79.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.373, allocations: 175.6 kB / 0.526 GB, free: 79.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3731, allocations: 5.531 kB / 0.526 GB, free: 79.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001534/0.3746, allocations: 0.6954 MB / 0.5267 GB, free: 79.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.3747, allocations: 0.559 MB / 0.5272 GB, free: 78.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.3747, allocations: 5.5 kB / 0.5272 GB, free: 78.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005497/0.3753, allocations: 192.3 kB / 0.5274 GB, free: 78.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.3754, allocations: 31.73 kB / 0.5274 GB, free: 78.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.3767, allocations: 1.401 MB / 0.5288 GB, free: 77.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002545/0.377, allocations: 53.34 kB / 0.5288 GB, free: 77.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.377, allocations: 15.62 kB / 0.5289 GB, free: 77.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.173e-06/0.3771, allocations: 2.719 kB / 0.5289 GB, free: 77.55 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005396/0.3776, allocations: 320 kB / 0.5292 GB, free: 77.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/0.3776, allocations: 4.859 kB / 0.5292 GB, free: 77.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.176e-06/0.3776, allocations: 2.906 kB / 0.5292 GB, free: 77.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.3778, allocations: 51.61 kB / 0.5292 GB, free: 77.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.3778, allocations: 5.156 kB / 0.5292 GB, free: 77.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.378, allocations: 29.84 kB / 0.5293 GB, free: 77.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.3781, allocations: 13.59 kB / 0.5293 GB, free: 77.49 MB / 362.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,firstOrderNegativeGain.I.local_reset,firstOrderPositiveGain.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * 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: 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 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002275/0.3783, allocations: 267 kB / 0.5295 GB, free: 77.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/0.3784, allocations: 27.47 kB / 0.5296 GB, free: 77.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.165e-05/0.3785, allocations: 28.98 kB / 0.5296 GB, free: 77.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3785, allocations: 3.812 kB / 0.5296 GB, free: 77.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3785, allocations: 0 / 0.5296 GB, free: 77.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3785, allocations: 7.234 kB / 0.5296 GB, free: 77.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000383/0.3789, allocations: 336.5 kB / 0.5299 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3789, allocations: 2.688 kB / 0.5299 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.3792, allocations: 59.95 kB / 0.53 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3792, allocations: 3.5 kB / 0.53 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.3792, allocations: 6.703 kB / 0.53 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3792, allocations: 3.594 kB / 0.53 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3792, allocations: 0.8594 kB / 0.53 GB, free: 77.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3807, allocations: 0.6727 MB / 0.5306 GB, free: 76.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-05/0.3808, allocations: 103.9 kB / 0.5307 GB, free: 76.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.916e-05/0.3809, allocations: 7.844 kB / 0.5308 GB, free: 76.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.3811, allocations: 41.48 kB / 0.5308 GB, free: 76.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.3812, allocations: 32.12 kB / 0.5308 GB, free: 76.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.3812, allocations: 10.31 kB / 0.5308 GB, free: 76.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001997/0.3815, allocations: 188.8 kB / 0.531 GB, free: 76.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3815, allocations: 0 / 0.531 GB, free: 76.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004662/0.3819, allocations: 124.7 kB / 0.5311 GB, free: 76.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (firstOrderPositiveGain.I.y,firstOrderNegativeGain.I.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 (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.001593/0.3835, allocations: 1.281 MB / 0.5324 GB, free: 75.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.385, allocations: 0.7212 MB / 0.5331 GB, free: 75.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.385, allocations: 4.062 kB / 0.5331 GB, free: 75.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.3854, allocations: 247.8 kB / 0.5333 GB, free: 75.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.3857, allocations: 44.95 kB / 0.5334 GB, free: 75.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.3891, allocations: 2.799 MB / 0.5361 GB, free: 74.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.3893, allocations: 0.7605 MB / 0.5368 GB, free: 73.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.3894, allocations: 36.41 kB / 0.5369 GB, free: 73.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3895, allocations: 84.38 kB / 0.537 GB, free: 73.5 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3896, allocations: 0 / 0.537 GB, free: 73.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.4102, allocations: 6.779 MB / 0.5436 GB, free: 70.67 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002671/0.4105, allocations: 214.6 kB / 0.5438 GB, free: 70.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.246, allocations: 0 / 0.5438 GB, free: 70.43 MB / 362.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe 2>&1)