Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.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.TestLimiterWithLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="HfSignal.amplitude|HfSignal.falling|HfSignal.nperiod|HfSignal.offset|HfSignal.period|HfSignal.rising|HfSignal.startTime|HfSignal.width|HfSignal.y|LfSignal.amplitude|LfSignal.falling|LfSignal.nperiod|LfSignal.offset|LfSignal.period|LfSignal.rising|LfSignal.startTime|LfSignal.width|LfSignal.y|limiterWithLag.LagMax|limiterWithLag.LagMin|limiterWithLag.stateStart|limiterWithLag.u|limiterWithLag.uMax|limiterWithLag.uMin|limiterWithLag.useLag|limiterWithLag.y|sum.k.1.|sum.k.2.|sum.nin|sum.u.1.|sum.u.2.|sum.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag") translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="HfSignal.amplitude|HfSignal.falling|HfSignal.nperiod|HfSignal.offset|HfSignal.period|HfSignal.rising|HfSignal.startTime|HfSignal.width|HfSignal.y|LfSignal.amplitude|LfSignal.falling|LfSignal.nperiod|LfSignal.offset|LfSignal.period|LfSignal.rising|LfSignal.startTime|LfSignal.width|LfSignal.y|limiterWithLag.LagMax|limiterWithLag.LagMin|limiterWithLag.stateStart|limiterWithLag.u|limiterWithLag.uMax|limiterWithLag.uMin|limiterWithLag.useLag|limiterWithLag.y|sum.k.1.|sum.k.2.|sum.nin|sum.u.1.|sum.u.2.|sum.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 111.7 kB / 16.42 MB, free: 6.426 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.001357/0.001357, allocations: 190.7 kB / 17.35 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07621/0.07621, allocations: 16.79 MB / 308 MB, free: 14.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.91 kB / 427.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08737/0.08851, allocations: 53.56 MB / 480.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.002728/0.09127, allocations: 1.764 MB / 482.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008521/0.09215, allocations: 0.5221 MB / 483.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.1e-05/0.09225, allocations: 0 / 483.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.09236, allocations: 15.81 kB / 483.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.09252, allocations: 35.7 kB / 483.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.09272, allocations: 63.84 kB / 483.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.09297, allocations: 207.4 kB / 483.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.09309, allocations: 25.05 kB / 483.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.09322, allocations: 79.75 kB / 483.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.09338, allocations: 95.62 kB / 483.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.09343, allocations: 20 kB / 483.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.934e-05/0.09347, allocations: 20 kB / 483.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.129e-05/0.09355, allocations: 31.91 kB / 483.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.616e-05/0.09365, allocations: 79.64 kB / 483.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.09386, allocations: 175.3 kB / 483.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.09387, allocations: 0 / 483.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.09388, allocations: 0 / 483.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.09389, allocations: 3.938 kB / 483.9 MB, free: 1.801 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001087/0.09498, allocations: 0.5778 MB / 484.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.09503, allocations: 12.03 kB / 484.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.413e-05/0.0951, allocations: 16.84 kB / 484.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002365/0.09534, allocations: 220.1 kB / 484.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.09537, allocations: 12.31 kB / 484.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.0954, allocations: 8.375 kB / 484.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005707/0.09598, allocations: 177.8 kB / 485 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.096, allocations: 0 / 485 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.09603, allocations: 11.88 kB / 485 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.09604, allocations: 0 / 485 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007973/0.09684, allocations: 199.7 kB / 485.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009007/0.09775, allocations: 468.5 kB / 485.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008615/0.09862, allocations: 238.3 kB / 485.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.0991, allocations: 136.7 kB / 486 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.09914, allocations: 0 / 486 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007432/0.09989, allocations: 413.3 kB / 486.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 2.254e-06/0.0999, allocations: 0 / 486.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001646/0.1016, allocations: 0.4976 MB / 486.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.1017, allocations: 243.3 kB / 487.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.1019, allocations: 174.9 kB / 487.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.102, allocations: 33.7 kB / 487.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.102, allocations: 116.5 kB / 487.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/0.1021, allocations: 51.62 kB / 487.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.916e-05/0.1022, allocations: 41.7 kB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1024, allocations: 334.8 kB / 487.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.1028, allocations: 124.8 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.1033, allocations: 127.9 kB / 488.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009305/0.1043, allocations: 339.6 kB / 488.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1043, allocations: 0 / 488.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001172/0.1055, allocations: 438.3 kB / 488.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.725e-05/0.1055, allocations: 93.09 kB / 489 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1056, allocations: 0 / 489 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.1056, allocations: 4 kB / 489 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.1059, allocations: 39.95 kB / 489 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.1059, allocations: 0 / 489 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004284/0.1063, allocations: 67.81 kB / 489.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.021e-05/0.1064, allocations: 4 kB / 489.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005342/0.1069, allocations: 212 kB / 489.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004599/0.1074, allocations: 123.9 kB / 489.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008518/0.1083, allocations: 351.4 kB / 489.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.365e-06/0.1083, allocations: 0 / 489.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.001036/0.1093, allocations: 430.4 kB / 490.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.1094, allocations: 93.09 kB / 490.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-06/0.1094, allocations: 0 / 490.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.586e-06/0.1094, allocations: 0 / 490.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.1096, allocations: 43.94 kB / 490.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/0.1097, allocations: 7.875 kB / 490.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.11, allocations: 59.88 kB / 490.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.1101, allocations: 8 kB / 490.4 MB, free: 10.89 MB / 366.1 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 (HfSignal.count,$PRE.HfSignal.count,HfSignal.T_start,$PRE.HfSignal.T_start,LfSignal.count,$PRE.LfSignal.count,LfSignal.T_start,$PRE.LfSignal.T_start,limiterWithLag.satON,$PRE.limiterWithLag.satON,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.state,$PRE.limiterWithLag.state,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2) * 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.0001766/0.1102, allocations: 240.1 kB / 490.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.1103, allocations: 19.91 kB / 490.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.476e-05/0.1103, allocations: 25.8 kB / 490.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1103, allocations: 0 / 490.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1104, allocations: 0 / 490.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.744e-05/0.1104, allocations: 89.02 kB / 490.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.1105, allocations: 8 kB / 490.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.1108, allocations: 59.86 kB / 490.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.111, allocations: 43.95 kB / 490.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001321/0.1123, allocations: 0.5602 MB / 491.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001129/0.1135, allocations: 0.5705 MB / 492 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005525/0.114, allocations: 279.9 kB / 492.3 MB, free: 8.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001019/0.1141, allocations: 135.2 kB / 492.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of Backend: time 6.11e-07/0.1142, allocations: 0 / 492.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.1158, allocations: 0.8317 MB / 493.2 MB, free: 7.895 MB / 366.1 MB Notification: Performance of SimCode: time 0.0008519/0.1166, allocations: 0.7645 MB / 494 MB, free: 7.07 MB / 366.1 MB Notification: Performance of Templates: time 0.009307/0.126, allocations: 5.003 MB / 499 MB, free: 2.102 MB / 366.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLimiterWithLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestLimiterWithLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches