Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 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.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_dev_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_dev_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.001803/0.001803, allocations: 112.3 kB / 15.99 MB, free: 5.914 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.001991/0.001991, allocations: 190.2 kB / 16.91 MB, free: 5.758 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.508/1.508, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07624/0.07624, allocations: 16.77 MB / 307.5 MB, free: 14.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 60.53 kB / 374 MB, free: 48.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1641, allocations: 53.57 MB / 427.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003376/0.1675, allocations: 1.861 MB / 429.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004176/0.168, allocations: 167.4 kB / 429.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.1681, allocations: 7.938 kB / 429.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.1683, allocations: 15.86 kB / 429.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.1685, allocations: 19.84 kB / 429.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001076/0.1686, allocations: 43.97 kB / 429.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.1688, allocations: 123.6 kB / 429.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.169, allocations: 53.27 kB / 429.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.428e-05/0.1691, allocations: 47.78 kB / 429.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.1692, allocations: 43.78 kB / 429.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.1693, allocations: 8 kB / 429.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.018e-05/0.1693, allocations: 8 kB / 429.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.044e-05/0.1693, allocations: 27.86 kB / 429.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.063e-05/0.1694, allocations: 51.67 kB / 430 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.1695, allocations: 80.11 kB / 430.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.1695, allocations: 3.984 kB / 430.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1695, allocations: 0 / 430.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.1696, allocations: 0 / 430.1 MB, free: 8.512 MB / 302.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.0005961/0.1702, allocations: 421.6 kB / 430.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1702, allocations: 8.031 kB / 430.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.404e-05/0.1703, allocations: 16.75 kB / 430.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.1705, allocations: 224 kB / 430.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.1705, allocations: 4.562 kB / 430.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.1706, allocations: 12.38 kB / 430.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.1709, allocations: 138.2 kB / 430.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1709, allocations: 0 / 430.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.1709, allocations: 8 kB / 430.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.1709, allocations: 4 kB / 430.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.1711, allocations: 67.83 kB / 431 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006294/0.1717, allocations: 0.6069 MB / 431.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.172, allocations: 107.9 kB / 431.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.572e-05/0.1721, allocations: 50.62 kB / 431.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.1721, allocations: 4 kB / 431.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.1722, allocations: 30.56 kB / 431.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.1722, allocations: 0 / 431.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003821/0.1726, allocations: 121.6 kB / 431.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.1726, allocations: 110.8 kB / 432 MB, free: 6.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.1727, allocations: 152.2 kB / 432.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.1728, allocations: 25.7 kB / 432.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.086e-05/0.1728, allocations: 119.8 kB / 432.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.1729, allocations: 27.64 kB / 432.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.1729, allocations: 29.88 kB / 432.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.767e-05/0.173, allocations: 322.8 kB / 432.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.1731, allocations: 23.98 kB / 432.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.1732, allocations: 69.92 kB / 432.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.1734, allocations: 93.05 kB / 432.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1734, allocations: 0 / 432.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002158/0.1736, allocations: 125.4 kB / 433 MB, free: 5.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1736, allocations: 7.938 kB / 433 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1736, allocations: 0 / 433 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.1736, allocations: 4 kB / 433 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.1738, allocations: 27.97 kB / 433 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.1738, allocations: 3.984 kB / 433 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.585e-05/0.1739, allocations: 12.47 kB / 433 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.1739, allocations: 4 kB / 433 MB, free: 5.246 MB / 302.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 0.0001056/0.174, allocations: 142.5 kB / 433.2 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.174, allocations: 15.75 kB / 433.2 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.76e-05/0.1741, allocations: 12.31 kB / 433.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1741, allocations: 4 kB / 433.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1741, allocations: 0 / 433.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1741, allocations: 0 / 433.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.1743, allocations: 209.5 kB / 433.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1743, allocations: 0 / 433.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.1744, allocations: 19.98 kB / 433.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1744, allocations: 0 / 433.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.1745, allocations: 4 kB / 433.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1745, allocations: 0 / 433.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1745, allocations: 0 / 433.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.1748, allocations: 237 kB / 433.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.428e-05/0.1748, allocations: 85.05 kB / 433.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.1749, allocations: 4 kB / 433.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.175, allocations: 4 kB / 433.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.175, allocations: 7.984 kB / 433.7 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.175, allocations: 4 kB / 433.7 MB, free: 4.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.839e-05/0.1751, allocations: 112.9 kB / 433.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1751, allocations: 4.062 kB / 433.9 MB, free: 4.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002427/0.1754, allocations: 23.84 kB / 433.9 MB, free: 4.273 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0001041/0.1755, allocations: 99.23 kB / 434 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002584/0.1757, allocations: 75.77 kB / 434.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1757, allocations: 0 / 434.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.802e-05/0.1758, allocations: 36.36 kB / 434.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.1763, allocations: 30.59 kB / 434.1 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005452/0.1768, allocations: 303.2 kB / 434.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.177, allocations: 0.7002 MB / 435.1 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.256e-05/0.1771, allocations: 19.42 kB / 435.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1771, allocations: 0 / 435.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of Templates: time 0.003403/0.1805, allocations: 1.408 MB / 436.5 MB, free: 1.539 MB / 302.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches