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: translateModel(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") translateModel(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 99.86 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.001093/0.001093, allocations: 177.3 kB / 15.94 MB, free: 228 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.351/1.351, allocations: 223.2 MB / 239.9 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1804/0.1804, allocations: 14.22 MB / 305.2 MB, free: 1.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003257, allocations: 8 kB / 371.6 MB, free: 4.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3347, allocations: 53.91 MB / 425.5 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter): time 0.001931/0.3367, allocations: 1.729 MB / 427.3 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.3377, allocations: 0.7641 MB / 428 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.3378, allocations: 6.938 kB / 428 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.338, allocations: 46.36 kB / 428.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002035/0.3382, allocations: 72.59 kB / 428.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.3386, allocations: 168.8 kB / 428.3 MB, free: 38.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.3388, allocations: 182.8 kB / 428.5 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.339, allocations: 79.39 kB / 428.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.751e-05/0.3391, allocations: 97.88 kB / 428.7 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3393, allocations: 108.2 kB / 428.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.3393, allocations: 8.938 kB / 428.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.3394, allocations: 72.53 kB / 428.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.373e-05/0.3395, allocations: 39.84 kB / 428.9 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.164e-05/0.3395, allocations: 75.45 kB / 429 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.3397, allocations: 244.2 kB / 429.2 MB, free: 38.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3397, allocations: 0 / 429.2 MB, free: 38.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3398, allocations: 0.5312 kB / 429.2 MB, free: 38.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.3398, allocations: 1.406 kB / 429.2 MB, free: 38.51 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.0007507/0.3405, allocations: 0.5818 MB / 429.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3406, allocations: 8.875 kB / 429.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.081e-05/0.3406, allocations: 38.16 kB / 429.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.341, allocations: 296 kB / 430.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.341, allocations: 16.47 kB / 430.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.341, allocations: 23.48 kB / 430.2 MB, free: 37.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.3415, allocations: 299.6 kB / 430.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3415, allocations: 2.938 kB / 430.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.3416, allocations: 9 kB / 430.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.3416, allocations: 2.781 kB / 430.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.342, allocations: 211.5 kB / 430.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.3431, allocations: 0.9902 MB / 431.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006546/0.3437, allocations: 285.6 kB / 431.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.3438, allocations: 9.188 kB / 431.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003988/0.3442, allocations: 213.1 kB / 432.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.3442, allocations: 0 / 432.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008811/0.3451, allocations: 0.522 MB / 432.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.3451, allocations: 160.2 kB / 432.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.3453, allocations: 267.1 kB / 433.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.3454, allocations: 31.86 kB / 433.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.874e-05/0.3455, allocations: 174.5 kB / 433.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.149e-05/0.3455, allocations: 65.48 kB / 433.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.3455, allocations: 6.156 kB / 433.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.922e-05/0.3456, allocations: 340 kB / 433.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/0.3458, allocations: 98.06 kB / 433.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.3461, allocations: 200.4 kB / 434 MB, free: 35.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.3464, allocations: 140.9 kB / 434.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.3464, allocations: 6.812 kB / 434.1 MB, free: 35.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00126/0.3476, allocations: 0.5978 MB / 434.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.3478, allocations: 0.5584 MB / 435.3 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3478, allocations: 6.969 kB / 435.3 MB, free: 35.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004804/0.3483, allocations: 146.5 kB / 435.4 MB, free: 35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.3484, allocations: 28.22 kB / 435.5 MB, free: 35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003641/0.3521, allocations: 3.652 MB / 439.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.3523, allocations: 38.36 kB / 439.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3524, allocations: 10.69 kB / 439.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.3524, allocations: 3 kB / 439.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005447/0.3529, allocations: 362.2 kB / 439.5 MB, free: 31.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.3529, allocations: 0 / 439.5 MB, free: 31.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001582/0.3531, allocations: 81.64 kB / 439.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.3533, allocations: 32.8 kB / 439.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.3549, allocations: 3.015 MB / 442.7 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.3551, allocations: 32.12 kB / 442.7 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.3551, allocations: 10.66 kB / 442.7 MB, free: 28.92 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.000221/0.3553, allocations: 267.9 kB / 443 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.3554, allocations: 26.62 kB / 443 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.81e-05/0.3554, allocations: 33.67 kB / 443 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3554, allocations: 1.078 kB / 443 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3554, allocations: 7.281 kB / 443 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3554, allocations: 0 / 443 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.3557, allocations: 340.8 kB / 443.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3557, allocations: 0 / 443.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.356, allocations: 41.73 kB / 443.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.356, allocations: 2.938 kB / 443.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.356, allocations: 7.094 kB / 443.4 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.356, allocations: 2.344 kB / 443.4 MB, free: 28.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.356, allocations: 11.09 kB / 443.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008236/0.3568, allocations: 0.5338 MB / 444 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.3569, allocations: 102.2 kB / 444.1 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.357, allocations: 14.38 kB / 444.1 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.3571, allocations: 26.56 kB / 444.1 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.895e-05/0.3572, allocations: 10.14 kB / 444.1 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.3572, allocations: 10.16 kB / 444.1 MB, free: 27.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001637/0.3574, allocations: 193.7 kB / 444.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3574, allocations: 0 / 444.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005994/0.358, allocations: 127.8 kB / 444.4 MB, free: 27.86 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.0001713/0.3582, allocations: 129.9 kB / 444.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.3598, allocations: 1.138 MB / 445.7 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3598, allocations: 0 / 445.7 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.3601, allocations: 214.2 kB / 445.9 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.3604, allocations: 55.23 kB / 446 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.362, allocations: 0.7714 MB / 446.7 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.3622, allocations: 0.7773 MB / 447.5 MB, free: 25.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.3623, allocations: 29.8 kB / 447.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.3624, allocations: 20.03 kB / 447.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3624, allocations: 0 / 447.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of Templates: time 0.008211/0.3706, allocations: 4.392 MB / 451.9 MB, free: 25.37 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.makefile (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 & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1)