Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_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_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.001562/0.001562, allocations: 116.4 kB / 16.42 MB, free: 6.488 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.001802/0.001802, allocations: 186.5 kB / 17.34 MB, free: 5.75 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.314/1.314, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06103/0.06103, allocations: 14.18 MB / 284.8 MB, free: 13.86 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.001425/0.001425, allocations: 74.06 kB / 397.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07006/0.0715, allocations: 50.14 MB / 447.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.002674/0.07421, allocations: 1.771 MB / 449.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009243/0.07516, allocations: 0.5581 MB / 449.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.426e-05/0.07524, allocations: 7.938 kB / 449.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.936e-05/0.07536, allocations: 11.86 kB / 449.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.07553, allocations: 35.7 kB / 449.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.07573, allocations: 67.84 kB / 449.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.07598, allocations: 199.5 kB / 449.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.0761, allocations: 36.98 kB / 450 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.07622, allocations: 83.69 kB / 450.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.07638, allocations: 91.7 kB / 450.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/0.07644, allocations: 16 kB / 450.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.523e-05/0.07648, allocations: 20 kB / 450.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.736e-05/0.07655, allocations: 35.83 kB / 450.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.373e-05/0.07665, allocations: 79.64 kB / 450.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.07687, allocations: 167.4 kB / 450.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.07689, allocations: 4 kB / 450.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.07689, allocations: 0 / 450.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.0769, allocations: 0 / 450.5 MB, free: 10.49 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.001148/0.07806, allocations: 0.5739 MB / 451 MB, free: 9.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.0781, allocations: 8.031 kB / 451 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.146e-05/0.07817, allocations: 16.84 kB / 451.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002358/0.07842, allocations: 224 kB / 451.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.07844, allocations: 8.312 kB / 451.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.07848, allocations: 16.38 kB / 451.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005817/0.07907, allocations: 177.8 kB / 451.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.07909, allocations: 3.984 kB / 451.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.07911, allocations: 4 kB / 451.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.07913, allocations: 4 kB / 451.5 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008076/0.07994, allocations: 195.7 kB / 451.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009522/0.0809, allocations: 476.4 kB / 452.1 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008475/0.08176, allocations: 242.3 kB / 452.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/0.08221, allocations: 124.8 kB / 452.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.08224, allocations: 4 kB / 452.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007015/0.08295, allocations: 401.3 kB / 452.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 2.344e-06/0.08296, allocations: 0 / 452.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001585/0.08455, allocations: 498.9 kB / 453.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.08468, allocations: 251.3 kB / 453.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.08486, allocations: 178.3 kB / 453.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.0849, allocations: 33.7 kB / 453.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.08497, allocations: 108.4 kB / 453.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.08503, allocations: 47.44 kB / 454 MB, free: 6.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-05/0.08513, allocations: 45.7 kB / 454 MB, free: 6.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.08525, allocations: 330.8 kB / 454.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.08572, allocations: 132.7 kB / 454.5 MB, free: 6.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.08616, allocations: 123.8 kB / 454.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.08705, allocations: 339.5 kB / 454.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.08707, allocations: 7.938 kB / 454.9 MB, free: 5.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00113/0.08821, allocations: 434.5 kB / 455.4 MB, free: 5.195 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.453e-05/0.08828, allocations: 89.09 kB / 455.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.0883, allocations: 0 / 455.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.08832, allocations: 4 kB / 455.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.08861, allocations: 43.94 kB / 455.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.08863, allocations: 4 kB / 455.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.08902, allocations: 59.83 kB / 455.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.08905, allocations: 4 kB / 455.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005138/0.08957, allocations: 220 kB / 455.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004181/0.09, allocations: 120.8 kB / 455.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008453/0.09085, allocations: 343.3 kB / 456.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/0.09087, allocations: 0 / 456.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.001072/0.09195, allocations: 434.5 kB / 456.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.225e-05/0.09201, allocations: 97.03 kB / 456.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.09202, allocations: 4 kB / 456.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.887e-06/0.09203, allocations: 0 / 456.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.09227, allocations: 43.89 kB / 456.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-06/0.09228, allocations: 0 / 456.8 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003647/0.09266, allocations: 67.77 kB / 456.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.09269, allocations: 11.98 kB / 456.9 MB, free: 3.59 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.0001877/0.09288, allocations: 244 kB / 457.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.09293, allocations: 19.81 kB / 457.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.763e-05/0.09298, allocations: 13.88 kB / 457.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.09299, allocations: 7.984 kB / 457.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.093, allocations: 4 kB / 457.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.09306, allocations: 88.92 kB / 457.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.029e-05/0.09312, allocations: 4 kB / 457.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003644/0.09349, allocations: 59.86 kB / 457.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.09363, allocations: 39.95 kB / 457.4 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001338/0.09497, allocations: 0.5676 MB / 457.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001167/0.09616, allocations: 0.5743 MB / 458.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005637/0.09673, allocations: 291.8 kB / 458.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001053/0.09685, allocations: 127.2 kB / 458.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of Backend: time 6.22e-07/0.09686, allocations: 0 / 458.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001644/0.09851, allocations: 0.8178 MB / 459.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of SimCode: time 0.0008614/0.09938, allocations: 0.7647 MB / 460.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of Templates: time 0.008187/0.1076, allocations: 5.002 MB / 465.5 MB, free: 10.78 MB / 350.1 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 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestLimiterWithLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches