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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 192.6 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05941/0.05941, allocations: 14.16 MB / 283.6 MB, free: 7.254 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 71.88 kB / 346.7 MB, free: 17.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.08046, allocations: 50.13 MB / 396.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.003081/0.08358, allocations: 2.217 MB / 399.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.08501, allocations: 0.9125 MB / 400 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.08515, allocations: 7.938 kB / 400 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.0854, allocations: 59.67 kB / 400.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.08556, allocations: 63.67 kB / 400.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006449/0.08621, allocations: 243.7 kB / 400.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.08661, allocations: 363.1 kB / 400.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.08681, allocations: 111.4 kB / 400.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.08696, allocations: 135.5 kB / 401 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.08714, allocations: 159.2 kB / 401.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.08719, allocations: 28 kB / 401.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.08733, allocations: 103.9 kB / 401.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.08742, allocations: 63.77 kB / 401.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.08754, allocations: 151.1 kB / 401.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.08786, allocations: 346.9 kB / 401.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.08788, allocations: 0 / 401.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.08789, allocations: 4 kB / 401.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.0879, allocations: 0 / 401.8 MB, free: 10.45 MB / 302.1 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.0008304/0.08873, allocations: 0.6479 MB / 402.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.08878, allocations: 12.03 kB / 402.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.425e-05/0.08884, allocations: 50.73 kB / 402.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.75e-05/0.08891, allocations: 40.47 kB / 402.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.08928, allocations: 335.2 kB / 402.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.08931, allocations: 20.31 kB / 402.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.332e-05/0.08937, allocations: 16.38 kB / 402.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/0.08996, allocations: 296.6 kB / 403.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.08999, allocations: 0 / 403.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.09002, allocations: 7.938 kB / 403.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.09003, allocations: 8 kB / 403.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005626/0.0906, allocations: 216.5 kB / 403.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.09176, allocations: 0.8367 MB / 404.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009785/0.09275, allocations: 343.6 kB / 404.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003107/0.09307, allocations: 138.6 kB / 404.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.09311, allocations: 3.984 kB / 404.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004681/0.09359, allocations: 231.5 kB / 405 MB, free: 7.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.0936, allocations: 3.938 kB / 405 MB, free: 7.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001076/0.09468, allocations: 465.6 kB / 405.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.807e-05/0.09479, allocations: 225.8 kB / 405.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.09506, allocations: 279 kB / 405.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.0951, allocations: 29.7 kB / 405.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.09521, allocations: 172.4 kB / 406.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/0.09527, allocations: 66.95 kB / 406.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.33e-05/0.09536, allocations: 49.7 kB / 406.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.09548, allocations: 342.8 kB / 406.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.09578, allocations: 116.8 kB / 406.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.09612, allocations: 184.7 kB / 406.9 MB, free: 5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.09671, allocations: 302.7 kB / 407.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.09673, allocations: 0 / 407.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000777/0.09751, allocations: 394.7 kB / 407.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.09755, allocations: 33.7 kB / 407.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.09757, allocations: 3.984 kB / 407.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.09758, allocations: 0 / 407.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.09781, allocations: 47.91 kB / 407.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.09783, allocations: 4 kB / 407.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.09806, allocations: 35.81 kB / 407.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.09809, allocations: 16 kB / 407.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002502/0.09834, allocations: 188.1 kB / 407.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002183/0.09857, allocations: 143.8 kB / 408 MB, free: 3.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003559/0.09894, allocations: 238.7 kB / 408.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.212e-06/0.09895, allocations: 0 / 408.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0005197/0.09947, allocations: 318.8 kB / 408.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.09951, allocations: 41.62 kB / 408.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-06/0.09952, allocations: 0 / 408.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.687e-06/0.09952, allocations: 4 kB / 408.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.09968, allocations: 31.98 kB / 408.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-06/0.09969, allocations: 4 kB / 408.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.09989, allocations: 31.81 kB / 408.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.09992, allocations: 8.125 kB / 408.7 MB, free: 3.074 MB / 302.1 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 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.1001, allocations: 253.7 kB / 408.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.1001, allocations: 27.72 kB / 408.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.1002, allocations: 34.3 kB / 409 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1002, allocations: 4 kB / 409 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1002, allocations: 0 / 409 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1002, allocations: 0 / 409 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003255/0.1006, allocations: 353.2 kB / 409.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1006, allocations: 0 / 409.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.1008, allocations: 43.91 kB / 409.4 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1008, allocations: 4 kB / 409.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.1009, allocations: 8 kB / 409.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1009, allocations: 0 / 409.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1009, allocations: 0 / 409.4 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.102, allocations: 0.5592 MB / 409.9 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.1021, allocations: 108.8 kB / 410 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.1021, allocations: 7.938 kB / 410 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.1023, allocations: 32.03 kB / 410.1 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.614e-05/0.1024, allocations: 19.92 kB / 410.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.1024, allocations: 4 kB / 410.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.1026, allocations: 209.9 kB / 410.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1026, allocations: 0 / 410.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003828/0.103, allocations: 107.7 kB / 410.4 MB, free: 1.211 MB / 302.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001404/0.1044, allocations: 1.123 MB / 411.5 MB, free: 48 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.1055, allocations: 0.5398 MB / 412.1 MB, free: 15.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1055, allocations: 0 / 412.1 MB, free: 15.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003562/0.1058, allocations: 227.6 kB / 412.3 MB, free: 15.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.1063, allocations: 87.14 kB / 412.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004263/0.1105, allocations: 3.208 MB / 415.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.1108, allocations: 0.7675 MB / 416.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001669/0.111, allocations: 45.92 kB / 416.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.1111, allocations: 95.41 kB / 416.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of SimCode: time 1.753e-06/0.1111, allocations: 0 / 416.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.1285, allocations: 6.854 MB / 423.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.1287, allocations: 206.9 kB / 423.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/1.989, allocations: 4 kB / 423.5 MB, free: 3.852 MB / 318.1 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/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter_res.mat --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)