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.005115/0.005115, allocations: 169.7 kB / 15.11 MB, free: 5.973 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.466/1.466, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0008231/0.0008231, allocations: 102.8 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05217/0.05217, allocations: 14.21 MB / 332.1 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003129, allocations: 9.688 kB / 395.7 MB, free: 50.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08044/0.08078, allocations: 51.13 MB / 446.9 MB, free: 4.699 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09435/0.1752, allocations: 79.79 MB / 0.5143 GB, free: 4.797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000175/0.1754, allocations: 67.97 kB / 0.5144 GB, free: 4.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1941/0.3695, allocations: 6.246 MB / 0.5205 GB, free: 82.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3695, allocations: 1.688 kB / 0.5205 GB, free: 82.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.3695, allocations: 8.656 kB / 0.5205 GB, free: 82.02 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0008214/0.3704, allocations: 0.6147 MB / 0.5211 GB, free: 81.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3704, allocations: 15.3 kB / 0.5211 GB, free: 81.54 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.725e-05/0.3705, allocations: 53.19 kB / 0.5212 GB, free: 81.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.3705, allocations: 33.5 kB / 0.5212 GB, free: 81.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.371, allocations: 322.9 kB / 0.5215 GB, free: 81.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.371, allocations: 19.28 kB / 0.5215 GB, free: 81.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.3711, allocations: 22.03 kB / 0.5215 GB, free: 81.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005373/0.3716, allocations: 307.7 kB / 0.5218 GB, free: 81.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3716, allocations: 1.531 kB / 0.5218 GB, free: 81.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.3717, allocations: 10 kB / 0.5218 GB, free: 81.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.3717, allocations: 7.781 kB / 0.5219 GB, free: 81.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004776/0.3722, allocations: 212.4 kB / 0.5221 GB, free: 81.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.3733, allocations: 1.084 MB / 0.5231 GB, free: 80.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006955/0.374, allocations: 293.2 kB / 0.5234 GB, free: 80.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.374, allocations: 8.094 kB / 0.5234 GB, free: 80.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003824/0.3744, allocations: 227.9 kB / 0.5236 GB, free: 80.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 2.485e-06/0.3744, allocations: 9.938 kB / 0.5236 GB, free: 80.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001028/0.3755, allocations: 0.5369 MB / 0.5242 GB, free: 80.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.3755, allocations: 166.3 kB / 0.5243 GB, free: 79.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.3758, allocations: 240.6 kB / 0.5245 GB, free: 79.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.3758, allocations: 35.64 kB / 0.5246 GB, free: 79.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3759, allocations: 168.7 kB / 0.5247 GB, free: 79.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.387e-05/0.376, allocations: 77.2 kB / 0.5248 GB, free: 79.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.811e-05/0.376, allocations: 4.188 kB / 0.5248 GB, free: 79.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.255e-05/0.3761, allocations: 341.6 kB / 0.5251 GB, free: 79.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.3764, allocations: 111.7 kB / 0.5252 GB, free: 79.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.3767, allocations: 194.3 kB / 0.5254 GB, free: 79.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.377, allocations: 156.1 kB / 0.5256 GB, free: 79.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.377, allocations: 4 kB / 0.5256 GB, free: 79.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001225/0.3783, allocations: 0.5611 MB / 0.5261 GB, free: 79.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/0.3784, allocations: 0.5595 MB / 0.5267 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3785, allocations: 1.859 kB / 0.5267 GB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005239/0.379, allocations: 142.5 kB / 0.5268 GB, free: 78.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.3791, allocations: 30.05 kB / 0.5268 GB, free: 78.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3804, allocations: 1.343 MB / 0.5282 GB, free: 77.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.3806, allocations: 37.97 kB / 0.5282 GB, free: 77.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.3807, allocations: 11.03 kB / 0.5282 GB, free: 77.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.3807, allocations: 6.188 kB / 0.5282 GB, free: 77.36 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007008/0.3814, allocations: 391.5 kB / 0.5286 GB, free: 77.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3814, allocations: 1.438 kB / 0.5286 GB, free: 77.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/0.3816, allocations: 71.88 kB / 0.5287 GB, free: 77.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.3818, allocations: 35.36 kB / 0.5287 GB, free: 77.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/0.3839, allocations: 3.017 MB / 0.5316 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/0.3841, allocations: 25.83 kB / 0.5317 GB, free: 74.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.3841, allocations: 12.17 kB / 0.5317 GB, free: 74.56 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,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Number of clocked 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.000245/0.3844, allocations: 261.7 kB / 0.5319 GB, free: 74.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.415e-05/0.3844, allocations: 27.91 kB / 0.5319 GB, free: 74.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.403e-05/0.3845, allocations: 29.17 kB / 0.532 GB, free: 74.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-06/0.3845, allocations: 7.359 kB / 0.532 GB, free: 74.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3845, allocations: 4.828 kB / 0.532 GB, free: 74.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3845, allocations: 1.859 kB / 0.532 GB, free: 74.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.3849, allocations: 338.2 kB / 0.5323 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3849, allocations: 0 / 0.5323 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.3852, allocations: 41.38 kB / 0.5323 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3852, allocations: 2.812 kB / 0.5323 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.3852, allocations: 10.95 kB / 0.5324 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3852, allocations: 3.719 kB / 0.5324 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3852, allocations: 4.469 kB / 0.5324 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.3863, allocations: 0.5856 MB / 0.5329 GB, free: 73.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.3863, allocations: 103 kB / 0.533 GB, free: 73.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.438e-05/0.3864, allocations: 9.344 kB / 0.533 GB, free: 73.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.3866, allocations: 33.64 kB / 0.5331 GB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/0.3867, allocations: 17.47 kB / 0.5331 GB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.3867, allocations: 13.42 kB / 0.5331 GB, free: 73.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001882/0.3869, allocations: 194.1 kB / 0.5333 GB, free: 73.76 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3869, allocations: 3.469 kB / 0.5333 GB, free: 73.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005905/0.3875, allocations: 123 kB / 0.5334 GB, free: 73.74 MB / 362.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) * 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.001307/0.3888, allocations: 1.194 MB / 0.5346 GB, free: 72.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.3904, allocations: 0.9079 MB / 0.5355 GB, free: 72.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3904, allocations: 1.844 kB / 0.5355 GB, free: 72.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.3907, allocations: 210 kB / 0.5357 GB, free: 72.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.391, allocations: 49.78 kB / 0.5357 GB, free: 72.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003813/0.3949, allocations: 2.835 MB / 0.5385 GB, free: 70.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.3951, allocations: 0.7688 MB / 0.5392 GB, free: 70.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.3953, allocations: 38.5 kB / 0.5393 GB, free: 70.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.3954, allocations: 86.52 kB / 0.5394 GB, free: 70.09 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3954, allocations: 0 / 0.5394 GB, free: 70.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.4163, allocations: 6.789 MB / 0.546 GB, free: 67.77 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.4165, allocations: 213.8 kB / 0.5462 GB, free: 67.53 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/2.197, allocations: 0 / 0.5462 GB, free: 67.53 MB / 362.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)