Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_symb_jac_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_symb_jac_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.001353/0.001353, allocations: 121.3 kB / 17.1 MB, free: 5.977 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.001346/0.001346, allocations: 196.3 kB / 18.03 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06368/0.06368, allocations: 14.17 MB / 285.4 MB, free: 13.85 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 62.39 kB / 397.8 MB, free: 43.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0704/0.07182, allocations: 50.13 MB / 448 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.002615/0.07446, allocations: 1.767 MB / 449.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009035/0.07538, allocations: 0.5698 MB / 450.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.143e-05/0.07545, allocations: 0 / 450.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.07558, allocations: 15.8 kB / 450.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.07575, allocations: 35.7 kB / 450.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001791/0.07594, allocations: 63.86 kB / 450.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002411/0.07619, allocations: 211.4 kB / 450.6 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.07631, allocations: 29 kB / 450.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.07643, allocations: 83.67 kB / 450.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.07659, allocations: 87.72 kB / 450.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.07664, allocations: 20 kB / 450.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.592e-05/0.07669, allocations: 20 kB / 450.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.658e-05/0.07676, allocations: 43.81 kB / 450.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.254e-05/0.07686, allocations: 75.64 kB / 451 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.07705, allocations: 159.5 kB / 451.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.07706, allocations: 0 / 451.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.07707, allocations: 0 / 451.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.07708, allocations: 3.938 kB / 451.1 MB, free: 10.48 MB / 334.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.001129/0.07822, allocations: 0.5779 MB / 451.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.07826, allocations: 8.031 kB / 451.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/0.07832, allocations: 16.84 kB / 451.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.07856, allocations: 228 kB / 452 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.07858, allocations: 8.312 kB / 452 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.07862, allocations: 8.375 kB / 452 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005873/0.07921, allocations: 177.8 kB / 452.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.07923, allocations: 3.984 kB / 452.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.07926, allocations: 11.94 kB / 452.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.07927, allocations: 0 / 452.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000828/0.08011, allocations: 199.7 kB / 452.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009351/0.08105, allocations: 476.4 kB / 452.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008707/0.08193, allocations: 226.3 kB / 453 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.0824, allocations: 136.8 kB / 453.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.08244, allocations: 3.984 kB / 453.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007103/0.08315, allocations: 401.4 kB / 453.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 2.064e-06/0.08317, allocations: 0 / 453.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001585/0.08476, allocations: 0.4911 MB / 454.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.08488, allocations: 247.3 kB / 454.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.08504, allocations: 174.4 kB / 454.5 MB, free: 6.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.08508, allocations: 33.69 kB / 454.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.08515, allocations: 112.4 kB / 454.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.08522, allocations: 47.45 kB / 454.7 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.7e-05/0.08531, allocations: 45.69 kB / 454.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.08543, allocations: 330.8 kB / 455 MB, free: 6.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.08592, allocations: 128.7 kB / 455.2 MB, free: 6.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/0.08639, allocations: 127.8 kB / 455.3 MB, free: 6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008879/0.08728, allocations: 335.5 kB / 455.6 MB, free: 5.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.08729, allocations: 3.938 kB / 455.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001109/0.08841, allocations: 442.5 kB / 456 MB, free: 5.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.044e-05/0.08848, allocations: 93.09 kB / 456.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.08849, allocations: 0 / 456.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.08851, allocations: 3.984 kB / 456.1 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.0888, allocations: 35.95 kB / 456.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.08882, allocations: 4 kB / 456.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.0892, allocations: 59.83 kB / 456.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.08924, allocations: 15.98 kB / 456.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005132/0.08976, allocations: 212 kB / 456.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004355/0.0902, allocations: 131.9 kB / 456.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008823/0.09109, allocations: 335.3 kB / 456.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.253e-06/0.09111, allocations: 0 / 456.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.001085/0.0922, allocations: 431.4 kB / 457.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.449e-05/0.09227, allocations: 105 kB / 457.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-06/0.09227, allocations: 0 / 457.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-06/0.09228, allocations: 4 kB / 457.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.09253, allocations: 35.95 kB / 457.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-06/0.09254, allocations: 3.938 kB / 457.5 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.09292, allocations: 63.77 kB / 457.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.09295, allocations: 8 kB / 457.6 MB, free: 3.582 MB / 334.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.0001707/0.09312, allocations: 248 kB / 457.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.09317, allocations: 15.81 kB / 457.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.409e-05/0.09322, allocations: 21.86 kB / 457.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.09323, allocations: 0 / 457.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.09323, allocations: 0 / 457.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.06e-05/0.0933, allocations: 96.91 kB / 457.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.09336, allocations: 8 kB / 457.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.09373, allocations: 63.86 kB / 458 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.09387, allocations: 35.95 kB / 458 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001374/0.09525, allocations: 0.5637 MB / 458.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002007/0.09732, allocations: 1.656 MB / 460.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005793/0.09792, allocations: 283.8 kB / 460.5 MB, free: 500 kB / 334.1 MB Notification: Performance of sorting global known variables: time 9.854e-05/0.09803, allocations: 131.2 kB / 460.7 MB, free: 368 kB / 334.1 MB Notification: Performance of Backend: time 4.31e-07/0.09803, allocations: 0 / 460.7 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.09974, allocations: 0.8214 MB / 461.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of SimCode: time 0.001073/0.1008, allocations: 1.059 MB / 462.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of Templates: time 0.008397/0.1092, allocations: 4.994 MB / 467.5 MB, free: 9.34 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches