Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag") translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 179.8 kB / 15.43 MB, free: 5.777 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.7 MB / 241.9 MB, free: 408 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007647/0.0007647, allocations: 95.77 kB / 293.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06021/0.06021, allocations: 14.38 MB / 358.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002882, allocations: 9.062 kB / 423.2 MB, free: 85.91 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07646/0.07676, allocations: 53.95 MB / 477.2 MB, free: 32.86 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.001458/0.07828, allocations: 1.463 MB / 478.6 MB, free: 31.38 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.000689/0.07899, allocations: 0.7405 MB / 479.4 MB, free: 30.58 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.025e-05/0.07905, allocations: 8 kB / 479.4 MB, free: 30.57 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 8.618e-05/0.07915, allocations: 7.922 kB / 479.4 MB, free: 30.56 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.07928, allocations: 31.78 kB / 479.4 MB, free: 30.53 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.07943, allocations: 51.88 kB / 479.5 MB, free: 30.48 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.07958, allocations: 187.4 kB / 479.7 MB, free: 30.3 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.912e-05/0.07968, allocations: 21.12 kB / 479.7 MB, free: 30.28 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.783e-05/0.07977, allocations: 67.75 kB / 479.7 MB, free: 30.21 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.07989, allocations: 91.64 kB / 479.8 MB, free: 30.12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/0.07994, allocations: 8 kB / 479.8 MB, free: 30.11 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.402e-05/0.07997, allocations: 8 kB / 479.8 MB, free: 30.11 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.094e-05/0.08003, allocations: 31.89 kB / 479.9 MB, free: 30.07 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.08012, allocations: 97.28 kB / 480 MB, free: 29.97 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.08028, allocations: 151.8 kB / 480.1 MB, free: 29.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.08029, allocations: 0 / 480.1 MB, free: 29.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.0803, allocations: 0 / 480.1 MB, free: 29.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.08031, allocations: 0 / 480.1 MB, free: 29.82 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009349/0.08125, allocations: 0.578 MB / 480.7 MB, free: 29.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.08129, allocations: 8.031 kB / 480.7 MB, free: 29.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.08135, allocations: 20.75 kB / 480.7 MB, free: 29.15 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.08156, allocations: 220 kB / 480.9 MB, free: 28.9 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.08159, allocations: 8.375 kB / 481 MB, free: 28.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.08162, allocations: 8.375 kB / 481 MB, free: 28.88 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005213/0.08215, allocations: 201.8 kB / 481.2 MB, free: 28.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.08217, allocations: 4 kB / 481.2 MB, free: 28.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.08219, allocations: 4 kB / 481.2 MB, free: 28.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.0822, allocations: 0 / 481.2 MB, free: 28.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000732/0.08294, allocations: 247.7 kB / 481.4 MB, free: 28.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008063/0.08376, allocations: 0.5043 MB / 481.9 MB, free: 27.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000784/0.08455, allocations: 278.4 kB / 482.2 MB, free: 27.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003896/0.08495, allocations: 156.8 kB / 482.3 MB, free: 27.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.08499, allocations: 0 / 482.3 MB, free: 27.44 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005933/0.08558, allocations: 447.3 kB / 482.8 MB, free: 26.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.673e-06/0.0856, allocations: 0 / 482.8 MB, free: 26.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001388/0.08699, allocations: 0.5598 MB / 483.3 MB, free: 26.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.08707, allocations: 243.3 kB / 483.6 MB, free: 26.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.0872, allocations: 177.3 kB / 483.7 MB, free: 25.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.08724, allocations: 33.7 kB / 483.8 MB, free: 25.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.08729, allocations: 108.5 kB / 483.9 MB, free: 25.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.07e-05/0.08733, allocations: 55.34 kB / 483.9 MB, free: 25.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.469e-05/0.08735, allocations: 4 kB / 483.9 MB, free: 25.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.08741, allocations: 334.8 kB / 484.3 MB, free: 25.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/0.08782, allocations: 151.8 kB / 484.4 MB, free: 25.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/0.08823, allocations: 149.8 kB / 484.6 MB, free: 25.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007311/0.08897, allocations: 385.7 kB / 484.9 MB, free: 24.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.08898, allocations: 0 / 484.9 MB, free: 24.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000916/0.08991, allocations: 478.3 kB / 485.4 MB, free: 24.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.529e-05/0.08998, allocations: 186.8 kB / 485.6 MB, free: 23.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.09, allocations: 0 / 485.6 MB, free: 23.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.09002, allocations: 3.984 kB / 485.6 MB, free: 23.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.09028, allocations: 59.89 kB / 485.7 MB, free: 23.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.0903, allocations: 3.938 kB / 485.7 MB, free: 23.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.09063, allocations: 87.77 kB / 485.7 MB, free: 23.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.09066, allocations: 4 kB / 485.7 MB, free: 23.81 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.999e-06/0.09067, allocations: 4 kB / 485.7 MB, free: 23.81 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009228/0.0916, allocations: 483 kB / 486.2 MB, free: 23.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-06/0.09161, allocations: 4 kB / 486.2 MB, free: 23.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-06/0.09162, allocations: 0 / 486.2 MB, free: 23.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.09184, allocations: 59.88 kB / 486.3 MB, free: 23.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-06/0.09185, allocations: 4 kB / 486.3 MB, free: 23.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.09219, allocations: 75.83 kB / 486.4 MB, free: 23.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.09222, allocations: 15.94 kB / 486.4 MB, free: 23.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.limiterWithLag.state,limiterWithLag.state,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.satON,limiterWithLag.satON,$PRE.LfSignal.T_start,LfSignal.T_start,$PRE.LfSignal.count,LfSignal.count,$PRE.HfSignal.T_start,HfSignal.T_start,$PRE.HfSignal.count,HfSignal.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 3 * 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.000131/0.09236, allocations: 245 kB / 486.6 MB, free: 22.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.0924, allocations: 19.81 kB / 486.6 MB, free: 22.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.209e-05/0.09245, allocations: 17.86 kB / 486.7 MB, free: 22.87 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.09246, allocations: 7.938 kB / 486.7 MB, free: 22.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.09247, allocations: 4 kB / 486.7 MB, free: 22.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.09248, allocations: 0 / 486.7 MB, free: 22.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.09265, allocations: 273.4 kB / 486.9 MB, free: 22.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.09266, allocations: 0 / 486.9 MB, free: 22.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.09287, allocations: 47.89 kB / 487 MB, free: 22.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.09288, allocations: 4 kB / 487 MB, free: 22.49 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.09291, allocations: 8 kB / 487 MB, free: 22.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.09292, allocations: 4 kB / 487 MB, free: 22.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.09293, allocations: 0 / 487 MB, free: 22.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009332/0.09386, allocations: 486.3 kB / 487.5 MB, free: 21.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.09391, allocations: 88.92 kB / 487.6 MB, free: 21.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.09396, allocations: 15.98 kB / 487.6 MB, free: 21.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.09427, allocations: 71.92 kB / 487.6 MB, free: 21.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.0944, allocations: 39.95 kB / 487.7 MB, free: 21.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.09443, allocations: 12 kB / 487.7 MB, free: 21.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.467e-05/0.09451, allocations: 135 kB / 487.8 MB, free: 21.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09452, allocations: 0 / 487.8 MB, free: 21.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002927/0.09481, allocations: 80 kB / 487.9 MB, free: 21.53 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,limiterWithLag.state,limiterWithLag.saturationLimitReached,limiterWithLag.satON,LfSignal.T_start,LfSignal.count,HfSignal.T_start,HfSignal.count) * Number of discrete states: 11 (LfSignal.count,HfSignal.count,limiterWithLag.satON,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,limiterWithLag.saturationLimitReached,limiterWithLag.state,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0001063/0.09493, allocations: 117.1 kB / 488 MB, free: 21.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.09639, allocations: 0.949 MB / 489 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.09641, allocations: 4 kB / 489 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005067/0.09692, allocations: 371.2 kB / 489.3 MB, free: 20 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.09723, allocations: 35.92 kB / 489.4 MB, free: 19.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006788/0.09792, allocations: 359.2 kB / 489.7 MB, free: 19.59 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.09806, allocations: 0.7246 MB / 490.4 MB, free: 18.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000116/0.09818, allocations: 21.06 kB / 490.5 MB, free: 18.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.555e-05/0.09825, allocations: 11.44 kB / 490.5 MB, free: 18.8 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.09826, allocations: 0 / 490.5 MB, free: 18.8 MB / 330.7 MB Notification: Performance of Templates: time 0.005782/0.104, allocations: 3.502 MB / 494 MB, free: 15.32 MB / 330.7 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1)