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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 107.6 kB / 18.95 MB, free: 2.805 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002393/0.002393, allocations: 211.6 kB / 22.24 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08766/0.08766, allocations: 16.93 MB / 329.4 MB, free: 2.391 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestDerivativeLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: PowerGrids requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002719/0.002719, allocations: 63.91 kB / 462.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1443, allocations: 57.75 MB / 0.5083 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003169/0.1475, allocations: 1.778 MB / 0.51 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003898/0.1479, allocations: 163.4 kB / 0.5102 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/0.148, allocations: 7.938 kB / 0.5102 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.1481, allocations: 27.73 kB / 0.5102 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1482, allocations: 19.8 kB / 0.5102 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001085/0.1483, allocations: 47.95 kB / 0.5103 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.1485, allocations: 115.7 kB / 0.5104 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1487, allocations: 41.5 kB / 0.5104 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.118e-05/0.1487, allocations: 51.78 kB / 0.5105 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.168e-05/0.1488, allocations: 39.72 kB / 0.5105 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.1489, allocations: 8 kB / 0.5105 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.227e-05/0.1489, allocations: 8 kB / 0.5105 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.873e-05/0.1489, allocations: 23.92 kB / 0.5105 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.535e-05/0.149, allocations: 35.75 kB / 0.5106 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.1491, allocations: 111.4 kB / 0.5107 GB, free: 3.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1491, allocations: 4 kB / 0.5107 GB, free: 3.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1491, allocations: 0 / 0.5107 GB, free: 3.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1491, allocations: 0 / 0.5107 GB, free: 3.148 MB / 382.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.0005573/0.1497, allocations: 346 kB / 0.511 GB, free: 2.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1497, allocations: 8.031 kB / 0.511 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.414e-05/0.1498, allocations: 16.84 kB / 0.511 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.1501, allocations: 166.3 kB / 0.5112 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.1501, allocations: 4.562 kB / 0.5112 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.1501, allocations: 12.38 kB / 0.5112 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.1504, allocations: 138.2 kB / 0.5113 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.1504, allocations: 0 / 0.5113 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.1504, allocations: 11.92 kB / 0.5113 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1504, allocations: 4 kB / 0.5113 GB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.1506, allocations: 67.89 kB / 0.5114 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000674/0.1513, allocations: 0.513 MB / 0.5119 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.1516, allocations: 111.9 kB / 0.512 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.1517, allocations: 42.62 kB / 0.5121 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.1517, allocations: 0 / 0.5121 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.1517, allocations: 38.5 kB / 0.5121 GB, free: 1.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.1517, allocations: 0 / 0.5121 GB, free: 1.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000391/0.1521, allocations: 117.8 kB / 0.5122 GB, free: 1.395 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.1522, allocations: 106.8 kB / 0.5123 GB, free: 1.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.1523, allocations: 154.4 kB / 0.5125 GB, free: 1.102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.1524, allocations: 25.7 kB / 0.5125 GB, free: 1.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.997e-05/0.1524, allocations: 123.9 kB / 0.5126 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.1525, allocations: 31.73 kB / 0.5126 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.1525, allocations: 25.66 kB / 0.5127 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1527, allocations: 318.8 kB / 0.513 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.62e-05/0.1528, allocations: 27.98 kB / 0.513 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.1529, allocations: 91.69 kB / 0.5131 GB, free: 428 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.1531, allocations: 97.39 kB / 0.5132 GB, free: 312 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1531, allocations: 0 / 0.5132 GB, free: 312 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002604/0.1534, allocations: 125.5 kB / 0.5133 GB, free: 180 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1534, allocations: 8 kB / 0.5133 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1534, allocations: 0 / 0.5133 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1534, allocations: 4 kB / 0.5133 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.1535, allocations: 27.91 kB / 0.5133 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1536, allocations: 4 kB / 0.5133 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.058e-05/0.1536, allocations: 15.89 kB / 0.5133 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.1536, allocations: 7.938 kB / 0.5133 GB, free: 112 kB / 382.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.2153/0.3689, allocations: 125.6 kB / 0.5135 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.984e-05/0.369, allocations: 10.67 kB / 0.5135 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.369, allocations: 13.28 kB / 0.5135 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.369, allocations: 2.828 kB / 0.5135 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.369, allocations: 1.094 kB / 0.5135 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.369, allocations: 2.25 kB / 0.5135 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.3692, allocations: 145.4 kB / 0.5136 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3692, allocations: 2.312 kB / 0.5136 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.3694, allocations: 18.14 kB / 0.5137 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3694, allocations: 0.5938 kB / 0.5137 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3694, allocations: 4.844 kB / 0.5137 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3694, allocations: 1.688 kB / 0.5137 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3694, allocations: 4.281 kB / 0.5137 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/0.3698, allocations: 232.3 kB / 0.5139 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.458e-05/0.3698, allocations: 8.797 kB / 0.5139 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.3698, allocations: 4.516 kB / 0.5139 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.3699, allocations: 9.719 kB / 0.5139 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.37, allocations: 12.45 kB / 0.5139 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.37, allocations: 3.156 kB / 0.5139 GB, free: 15.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.463e-05/0.3701, allocations: 113.1 kB / 0.514 GB, free: 15.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3701, allocations: 0 / 0.514 GB, free: 15.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.3703, allocations: 23.55 kB / 0.5141 GB, free: 15.51 MB / 382.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 7.762e-05/0.3704, allocations: 99.27 kB / 0.5142 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002523/0.3707, allocations: 64.81 kB / 0.5142 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3707, allocations: 8.469 kB / 0.5142 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.735e-05/0.3708, allocations: 29.41 kB / 0.5142 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.3711, allocations: 27.28 kB / 0.5143 GB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005212/0.3716, allocations: 243.5 kB / 0.5145 GB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.101e-05/0.3717, allocations: 93.5 kB / 0.5146 GB, free: 15.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.996e-05/0.3718, allocations: 16.67 kB / 0.5146 GB, free: 15.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.3718, allocations: 16.22 kB / 0.5146 GB, free: 15.18 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3718, allocations: 2.75 kB / 0.5146 GB, free: 15.18 MB / 382.1 MB Notification: Performance of Templates: time 0.003881/0.3757, allocations: 1.071 MB / 0.5157 GB, free: 15.14 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile [Timeout 660] (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=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 50] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.061142784077674]