Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.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.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",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.000931/0.000931, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009272/0.0009273, allocations: 177.3 kB / 15.95 MB, free: 216 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.353/1.353, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1799/0.1799, allocations: 14.17 MB / 305.1 MB, free: 1.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004895/0.0004896, allocations: 8 kB / 371.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3189, allocations: 53.91 MB / 425.6 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.001909/0.3208, allocations: 1.734 MB / 427.3 MB, free: 39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.3219, allocations: 0.7588 MB / 428.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.322, allocations: 9.062 kB / 428.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.3222, allocations: 42.53 kB / 428.1 MB, free: 38.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.3224, allocations: 72.98 kB / 428.2 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.3228, allocations: 177.9 kB / 428.4 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000233/0.3231, allocations: 178 kB / 428.6 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.3232, allocations: 77.11 kB / 428.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.476e-05/0.3233, allocations: 97.06 kB / 428.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.3235, allocations: 106 kB / 428.8 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.3235, allocations: 8.875 kB / 428.8 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.3236, allocations: 77.23 kB / 428.9 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.649e-05/0.3237, allocations: 46.45 kB / 429 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.3237, allocations: 71.44 kB / 429 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.3239, allocations: 240.7 kB / 429.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.3239, allocations: 0.75 kB / 429.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3239, allocations: 0 / 429.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.324, allocations: 0.8438 kB / 429.3 MB, free: 38.75 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0006604/0.3246, allocations: 0.5813 MB / 429.9 MB, free: 38.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.3247, allocations: 11.47 kB / 429.9 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.518e-05/0.3247, allocations: 54.12 kB / 429.9 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.525e-05/0.3248, allocations: 35.75 kB / 429.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.3251, allocations: 305.7 kB / 430.2 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.3251, allocations: 18.25 kB / 430.3 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.3251, allocations: 20.75 kB / 430.3 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.3256, allocations: 297.5 kB / 430.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3256, allocations: 0 / 430.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.3257, allocations: 9.688 kB / 430.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3257, allocations: 10.34 kB / 430.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000415/0.3261, allocations: 206.5 kB / 430.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.3271, allocations: 0.9817 MB / 431.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.3278, allocations: 293.5 kB / 432.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3278, allocations: 9.578 kB / 432.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003752/0.3282, allocations: 222 kB / 432.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/0.3282, allocations: 0 / 432.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00086/0.3291, allocations: 0.514 MB / 432.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.3291, allocations: 166.9 kB / 433 MB, free: 36.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.3293, allocations: 269.1 kB / 433.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.3294, allocations: 31.98 kB / 433.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.656e-05/0.3295, allocations: 164.9 kB / 433.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.3295, allocations: 70.28 kB / 433.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.3295, allocations: 6.062 kB / 433.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.419e-05/0.3296, allocations: 337.5 kB / 433.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.3298, allocations: 102.9 kB / 433.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.3301, allocations: 193.6 kB / 434.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.3303, allocations: 145.8 kB / 434.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3304, allocations: 2.969 kB / 434.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00126/0.3316, allocations: 0.5972 MB / 434.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.3318, allocations: 0.556 MB / 435.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3318, allocations: 6.719 kB / 435.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004545/0.3322, allocations: 151.3 kB / 435.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.3324, allocations: 33.34 kB / 435.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.3361, allocations: 3.651 MB / 439.3 MB, free: 32.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.3363, allocations: 41.86 kB / 439.3 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.3364, allocations: 12 kB / 439.3 MB, free: 32.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.106e-06/0.3364, allocations: 3.312 kB / 439.3 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005166/0.3369, allocations: 354.5 kB / 439.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-06/0.3369, allocations: 4.156 kB / 439.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.3371, allocations: 74.95 kB / 439.7 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3372, allocations: 34.08 kB / 439.8 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.3388, allocations: 3.022 MB / 442.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.339, allocations: 24.98 kB / 442.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.339, allocations: 13.97 kB / 442.8 MB, free: 29.11 MB / 350.1 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.000199/0.3392, allocations: 269.2 kB / 443.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.3392, allocations: 25.19 kB / 443.1 MB, free: 28.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.264e-05/0.3393, allocations: 30.67 kB / 443.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3393, allocations: 3.219 kB / 443.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3393, allocations: 0 / 443.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3393, allocations: 0 / 443.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3396, allocations: 343.4 kB / 443.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3396, allocations: 0 / 443.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.3398, allocations: 46.28 kB / 443.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3398, allocations: 3.25 kB / 443.5 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.3398, allocations: 7.094 kB / 443.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3398, allocations: 0 / 443.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3398, allocations: 0 / 443.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008004/0.3407, allocations: 0.542 MB / 444.1 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.601e-05/0.3407, allocations: 102.9 kB / 444.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.011e-05/0.3408, allocations: 10.38 kB / 444.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.3409, allocations: 26.73 kB / 444.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.465e-05/0.341, allocations: 21 kB / 444.2 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.341, allocations: 6.594 kB / 444.2 MB, free: 28.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.3412, allocations: 195.2 kB / 444.4 MB, free: 28.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3412, allocations: 0 / 444.4 MB, free: 28.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000582/0.3418, allocations: 121.7 kB / 444.6 MB, free: 28.04 MB / 350.1 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.001073/0.3428, allocations: 1.182 MB / 445.7 MB, free: 27.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.3443, allocations: 1.136 MB / 446.9 MB, free: 26.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3443, allocations: 384 / 446.9 MB, free: 26.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.3446, allocations: 213.3 kB / 447.1 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3449, allocations: 56.08 kB / 447.1 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003449/0.3483, allocations: 2.845 MB / 450 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.3486, allocations: 0.7828 MB / 450.8 MB, free: 23.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.3487, allocations: 25.86 kB / 450.8 MB, free: 23.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.3488, allocations: 86.72 kB / 450.9 MB, free: 23.77 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3488, allocations: 0 / 450.9 MB, free: 23.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.3682, allocations: 7.045 MB / 457.9 MB, free: 23.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.3684, allocations: 215.8 kB / 458.1 MB, free: 22.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.021, allocations: 0 / 458.1 MB, free: 22.91 MB / 350.1 MB (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_dev_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter.fmu > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1)