Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.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.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag") translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="derivativeLag.T1|derivativeLag.Td|derivativeLag.feedback.y|derivativeLag.gain.k|derivativeLag.gain.u|derivativeLag.gain.y|derivativeLag.initType|derivativeLag.integrator.initType|derivativeLag.integrator.k|derivativeLag.integrator.u|derivativeLag.integrator.y|derivativeLag.integrator.y_start|derivativeLag.noDynamics|derivativeLag.u|derivativeLag.y|derivativeLag.yStart|derivativeLagAnalyticSolution.y|derivativeLagNoDynamics.T1|derivativeLagNoDynamics.Td|derivativeLagNoDynamics.feedback.y|derivativeLagNoDynamics.gain.k|derivativeLagNoDynamics.gain.u|derivativeLagNoDynamics.gain.y|derivativeLagNoDynamics.initType|derivativeLagNoDynamics.noDynamics|derivativeLagNoDynamics.u|derivativeLagNoDynamics.y|derivativeLagNoDynamics.yStart|derivativeLagNoDynamics.zero.y|derivativeLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 118.5 kB / 16.42 MB, free: 6.5 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.001316/0.001316, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.368/1.368, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06824/0.06824, allocations: 14.18 MB / 284.8 MB, free: 13.87 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.001622/0.001622, allocations: 73.98 kB / 399.3 MB, free: 42.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06954/0.07117, allocations: 50.13 MB / 449.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002803/0.07401, allocations: 1.833 MB / 451.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003821/0.0744, allocations: 163.4 kB / 451.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.07452, allocations: 11.94 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.07469, allocations: 19.8 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.07486, allocations: 23.8 kB / 451.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001122/0.07498, allocations: 43.89 kB / 451.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.07517, allocations: 127.6 kB / 451.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.07533, allocations: 57.3 kB / 451.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.98e-05/0.0754, allocations: 47.84 kB / 451.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.07552, allocations: 51.66 kB / 451.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.07555, allocations: 8 kB / 451.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.076e-05/0.07558, allocations: 8 kB / 451.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.07561, allocations: 19.92 kB / 451.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.08e-05/0.07566, allocations: 51.67 kB / 451.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.07583, allocations: 111.5 kB / 452 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.07584, allocations: 0 / 452 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.07585, allocations: 0 / 452 MB, free: 9.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.07586, allocations: 0 / 452 MB, free: 9.02 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005559/0.07642, allocations: 423.2 kB / 452.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.07646, allocations: 8.031 kB / 452.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.07651, allocations: 12.84 kB / 452.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.07674, allocations: 216 kB / 452.6 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.07678, allocations: 8.562 kB / 452.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.07681, allocations: 12.38 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002393/0.07706, allocations: 136.3 kB / 452.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.07707, allocations: 3.938 kB / 452.8 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.07709, allocations: 4 kB / 452.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.0771, allocations: 4 kB / 452.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.07729, allocations: 63.89 kB / 452.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006013/0.0779, allocations: 0.603 MB / 453.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.07815, allocations: 107.8 kB / 453.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.07827, allocations: 42.81 kB / 453.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.07829, allocations: 4 kB / 453.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.07833, allocations: 46.44 kB / 453.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.07833, allocations: 0 / 453.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003604/0.0787, allocations: 109.7 kB / 453.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.07876, allocations: 110.7 kB / 453.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.07888, allocations: 151 kB / 454 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.07891, allocations: 33.95 kB / 454 MB, free: 6.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.394e-05/0.07899, allocations: 123.8 kB / 454.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.07902, allocations: 19.66 kB / 454.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.07907, allocations: 29.7 kB / 454.2 MB, free: 6.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.07918, allocations: 314.8 kB / 454.5 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.609e-05/0.07927, allocations: 27.97 kB / 454.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.07938, allocations: 74.19 kB / 454.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.07958, allocations: 97.09 kB / 454.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.07959, allocations: 3.938 kB / 454.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002411/0.07984, allocations: 121.4 kB / 454.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.07986, allocations: 4 kB / 454.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.07987, allocations: 0 / 454.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.07989, allocations: 4 kB / 454.8 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.08002, allocations: 32.08 kB / 454.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.08004, allocations: 0 / 454.9 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.98e-05/0.08012, allocations: 15.89 kB / 454.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.08014, allocations: 0 / 454.9 MB, free: 5.77 MB / 334.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: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 8.387e-05/0.08023, allocations: 129.7 kB / 455 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.08027, allocations: 7.906 kB / 455 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.0803, allocations: 20.3 kB / 455 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.08031, allocations: 0 / 455 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.08032, allocations: 11.98 kB / 455 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.08037, allocations: 84.95 kB / 455.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.08039, allocations: 4 kB / 455.1 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.08051, allocations: 11.92 kB / 455.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.886e-05/0.08055, allocations: 15.88 kB / 455.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003522/0.08091, allocations: 331.4 kB / 455.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000383/0.08131, allocations: 441.2 kB / 455.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.447e-05/0.08141, allocations: 40.19 kB / 455.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.973e-05/0.08149, allocations: 119.9 kB / 456.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of Backend: time 3.5e-07/0.0815, allocations: 0 / 456.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.08203, allocations: 119.2 kB / 456.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of SimCode: time 0.0005832/0.08262, allocations: 0.6884 MB / 456.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of Templates: time 0.003414/0.08604, allocations: 1.161 MB / 458 MB, free: 2.508 MB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches