Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_dev_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.0008546/0.0008546, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009409/0.0009412, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2232/0.2232, allocations: 14.18 MB / 305.3 MB, free: 1.125 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.000302, allocations: 12 kB / 371.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3011, allocations: 53.91 MB / 425.7 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter): time 0.001881/0.3031, allocations: 1.779 MB / 427.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.3042, allocations: 0.8134 MB / 428.3 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.3043, allocations: 9.531 kB / 428.3 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001826/0.3045, allocations: 54.28 kB / 428.4 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.3046, allocations: 63.38 kB / 428.4 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.3051, allocations: 202 kB / 428.6 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.3054, allocations: 308.5 kB / 428.9 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3055, allocations: 80.08 kB / 429 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.435e-05/0.3056, allocations: 107 kB / 429.1 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.3058, allocations: 118.8 kB / 429.2 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.3058, allocations: 7.844 kB / 429.2 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.3059, allocations: 73.84 kB / 429.3 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.371e-05/0.306, allocations: 48.61 kB / 429.4 MB, free: 38.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.988e-05/0.3061, allocations: 71.53 kB / 429.4 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.3063, allocations: 248.6 kB / 429.7 MB, free: 38.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3063, allocations: 1.812 kB / 429.7 MB, free: 38.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3063, allocations: 0 / 429.7 MB, free: 38.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3063, allocations: 0 / 429.7 MB, free: 38.59 MB / 350.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.000681/0.307, allocations: 0.606 MB / 430.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3071, allocations: 8.906 kB / 430.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.411e-05/0.3071, allocations: 51.25 kB / 430.3 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.608e-05/0.3072, allocations: 34.53 kB / 430.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.3075, allocations: 321.5 kB / 430.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.3075, allocations: 14.84 kB / 430.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.3075, allocations: 19.19 kB / 430.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005172/0.3081, allocations: 297 kB / 431 MB, free: 37.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3081, allocations: 7.156 kB / 431 MB, free: 37.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.3081, allocations: 15.58 kB / 431 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3081, allocations: 6.844 kB / 431 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005405/0.3087, allocations: 233.5 kB / 431.3 MB, free: 37.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.3098, allocations: 0.8514 MB / 432.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008359/0.3106, allocations: 375.5 kB / 432.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.3109, allocations: 157.4 kB / 432.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.3109, allocations: 2.812 kB / 432.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004062/0.3113, allocations: 242.6 kB / 432.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.462e-06/0.3113, allocations: 3.938 kB / 432.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009146/0.3123, allocations: 499.1 kB / 433.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.3123, allocations: 214.6 kB / 433.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.3125, allocations: 278.2 kB / 433.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.3126, allocations: 29.14 kB / 433.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.193e-05/0.3127, allocations: 175 kB / 434.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.3127, allocations: 57.94 kB / 434.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.3127, allocations: 5.312 kB / 434.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.367e-05/0.3128, allocations: 338.1 kB / 434.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.3131, allocations: 121.8 kB / 434.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.3134, allocations: 198.7 kB / 434.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.3137, allocations: 156.4 kB / 434.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3137, allocations: 0 / 434.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007228/0.3144, allocations: 415.8 kB / 435.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/0.3145, allocations: 147.3 kB / 435.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3145, allocations: 4.062 kB / 435.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.3145, allocations: 6 kB / 435.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.3147, allocations: 53.77 kB / 435.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.3147, allocations: 2.938 kB / 435.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.3149, allocations: 51.39 kB / 435.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.315, allocations: 9.625 kB / 435.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-06/0.315, allocations: 5.719 kB / 435.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004053/0.3154, allocations: 278.8 kB / 435.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-06/0.3154, allocations: 0 / 435.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.447e-06/0.3154, allocations: 4 kB / 435.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3155, allocations: 38 kB / 435.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-06/0.3156, allocations: 3.281 kB / 435.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.3157, allocations: 33.86 kB / 435.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.3157, allocations: 5.938 kB / 435.9 MB, free: 35.57 MB / 350.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 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.3159, allocations: 255.7 kB / 436.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.3159, allocations: 33.69 kB / 436.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.488e-05/0.316, allocations: 34.36 kB / 436.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.316, allocations: 2.812 kB / 436.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.316, allocations: 0 / 436.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.316, allocations: 5.406 kB / 436.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.3162, allocations: 338.9 kB / 436.6 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3162, allocations: 3.031 kB / 436.6 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.3164, allocations: 50.12 kB / 436.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3164, allocations: 4 kB / 436.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3165, allocations: 9.062 kB / 436.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3165, allocations: 0.625 kB / 436.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3165, allocations: 3 kB / 436.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009281/0.3174, allocations: 0.5928 MB / 437.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.3175, allocations: 103.3 kB / 437.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.533e-05/0.3175, allocations: 14.91 kB / 437.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.3177, allocations: 31.48 kB / 437.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.3178, allocations: 17.47 kB / 437.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.3178, allocations: 14.8 kB / 437.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.3179, allocations: 190.8 kB / 437.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.12e-07/0.3179, allocations: 7.25 kB / 437.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.3183, allocations: 115.9 kB / 437.7 MB, free: 34.5 MB / 350.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 (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.001126/0.3195, allocations: 1.165 MB / 438.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008119/0.3203, allocations: 0.5579 MB / 439.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3203, allocations: 0 / 439.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002997/0.3206, allocations: 232.6 kB / 439.7 MB, free: 33.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.321, allocations: 65.3 kB / 439.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.3235, allocations: 1.89 MB / 441.7 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001583/0.3236, allocations: 0.7695 MB / 442.4 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000159/0.3238, allocations: 35.06 kB / 442.5 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3239, allocations: 91.64 kB / 442.5 MB, free: 31.58 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3239, allocations: 3.281 kB / 442.5 MB, free: 31.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.3396, allocations: 6.355 MB / 448.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/0.3398, allocations: 198.1 kB / 449.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.597/1.937, allocations: 0 / 449.1 MB, free: 30.81 MB / 350.1 MB (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_dev_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 PowerGrids_dev_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter.fmu > PowerGrids_dev_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter.pipe 2>&1)