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.0009173/0.0009173, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001224/0.001224, allocations: 172.7 kB / 15.95 MB, free: 208 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.409/1.409, allocations: 223.3 MB / 240 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.2222/0.2222, allocations: 14.17 MB / 305.3 MB, free: 1.078 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005415/0.0005417, allocations: 8 kB / 371.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3062, allocations: 53.92 MB / 425.7 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.001826/0.3081, allocations: 1.724 MB / 427.4 MB, free: 38.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3092, allocations: 0.7812 MB / 428.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.3093, allocations: 5.594 kB / 428.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.3095, allocations: 53.42 kB / 428.3 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.3097, allocations: 59.67 kB / 428.3 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.3101, allocations: 172.5 kB / 428.5 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.3104, allocations: 263.3 kB / 428.8 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.3106, allocations: 85.17 kB / 428.8 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.554e-05/0.3107, allocations: 94.03 kB / 428.9 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.3108, allocations: 116.6 kB / 429 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.3109, allocations: 6.781 kB / 429.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.311, allocations: 75.22 kB / 429.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.599e-05/0.3111, allocations: 49.08 kB / 429.2 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.3111, allocations: 64.92 kB / 429.2 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.3114, allocations: 244.2 kB / 429.5 MB, free: 38.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3114, allocations: 0 / 429.5 MB, free: 38.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3114, allocations: 1.25 kB / 429.5 MB, free: 38.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.3114, allocations: 0 / 429.5 MB, free: 38.62 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.0006886/0.3121, allocations: 0.5839 MB / 430.1 MB, free: 38.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3121, allocations: 8.938 kB / 430.1 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.617e-05/0.3122, allocations: 54.66 kB / 430.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.424e-05/0.3122, allocations: 33.25 kB / 430.2 MB, free: 38.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.3126, allocations: 302.9 kB / 430.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.3126, allocations: 14.75 kB / 430.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.3126, allocations: 26.19 kB / 430.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004358/0.3131, allocations: 296.3 kB / 430.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3131, allocations: 3.938 kB / 430.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.3131, allocations: 9.219 kB / 430.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3131, allocations: 9.797 kB / 430.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004052/0.3135, allocations: 201.3 kB / 431 MB, free: 37.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.3146, allocations: 0.9867 MB / 432 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005917/0.3152, allocations: 286.7 kB / 432.3 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.3154, allocations: 147.5 kB / 432.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.3154, allocations: 9.547 kB / 432.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.3158, allocations: 216 kB / 432.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.3158, allocations: 3.062 kB / 432.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008355/0.3167, allocations: 451.1 kB / 433.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3167, allocations: 164.5 kB / 433.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.3169, allocations: 264.9 kB / 433.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.317, allocations: 31.61 kB / 433.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.89e-05/0.3171, allocations: 166.5 kB / 433.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.179e-05/0.3171, allocations: 68.27 kB / 433.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/0.3171, allocations: 6.219 kB / 433.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.874e-05/0.3172, allocations: 336.6 kB / 434.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3174, allocations: 102.9 kB / 434.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.3177, allocations: 197.4 kB / 434.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.3179, allocations: 145.1 kB / 434.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3179, allocations: 0 / 434.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001101/0.319, allocations: 0.5992 MB / 435.1 MB, free: 35.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.997e-05/0.3191, allocations: 162.9 kB / 435.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3191, allocations: 0 / 435.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004299/0.3195, allocations: 150.2 kB / 435.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.3197, allocations: 28 kB / 435.5 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003275/0.323, allocations: 3.608 MB / 439.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.3232, allocations: 35.08 kB / 439.1 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.3232, allocations: 15.47 kB / 439.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.3232, allocations: 6.5 kB / 439.1 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005052/0.3238, allocations: 354.2 kB / 439.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3238, allocations: 7.422 kB / 439.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.3239, allocations: 80.12 kB / 439.6 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.3241, allocations: 25.95 kB / 439.6 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.3256, allocations: 3.007 MB / 442.6 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.3258, allocations: 31.94 kB / 442.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.3258, allocations: 13.98 kB / 442.6 MB, free: 29.41 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.0001959/0.326, allocations: 266.6 kB / 442.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.3261, allocations: 28.03 kB / 442.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.3262, allocations: 27.86 kB / 442.9 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3262, allocations: 3.188 kB / 442.9 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3262, allocations: 3.953 kB / 443 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3262, allocations: 6.453 kB / 443 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.3264, allocations: 334 kB / 443.3 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3265, allocations: 7.25 kB / 443.3 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.3267, allocations: 46.56 kB / 443.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3267, allocations: 0 / 443.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.3267, allocations: 7.281 kB / 443.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3267, allocations: 3.281 kB / 443.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3267, allocations: 0 / 443.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000759/0.3275, allocations: 0.5246 MB / 443.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.3275, allocations: 110.8 kB / 444 MB, free: 28.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.3276, allocations: 10.31 kB / 444 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.3277, allocations: 23.59 kB / 444 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.3278, allocations: 18.11 kB / 444 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.3278, allocations: 6.562 kB / 444 MB, free: 28.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.328, allocations: 198.5 kB / 444.2 MB, free: 28.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.328, allocations: 3.406 kB / 444.2 MB, free: 28.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005858/0.3286, allocations: 121.2 kB / 444.4 MB, free: 28.36 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.001021/0.3296, allocations: 1.102 MB / 445.5 MB, free: 27.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.331, allocations: 1.133 MB / 446.6 MB, free: 26.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.331, allocations: 0 / 446.6 MB, free: 26.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.3313, allocations: 214.6 kB / 446.8 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3316, allocations: 57.62 kB / 446.9 MB, free: 26.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.3352, allocations: 2.122 MB / 449 MB, free: 25.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.3354, allocations: 0.7642 MB / 449.7 MB, free: 24.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001374/0.3355, allocations: 31.67 kB / 449.8 MB, free: 24.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3356, allocations: 83.42 kB / 449.9 MB, free: 24.92 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3357, allocations: 0 / 449.9 MB, free: 24.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.3557, allocations: 7.061 MB / 456.9 MB, free: 24.3 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.3559, allocations: 228 kB / 457.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.003, allocations: 3.984 kB / 457.1 MB, free: 24.06 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)