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.001279/0.001279, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001579/0.001579, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.598/1.598, allocations: 230.6 MB / 256 MB, free: 7.812 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.08509/0.08509, allocations: 16.92 MB / 329.3 MB, free: 2.422 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.003138/0.003138, allocations: 64.14 kB / 462.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.135, allocations: 57.74 MB / 0.5082 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003671/0.1386, allocations: 1.778 MB / 0.51 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000473/0.1391, allocations: 159.5 kB / 0.5101 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.1392, allocations: 7.938 kB / 0.5101 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.1394, allocations: 23.73 kB / 0.5102 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.1396, allocations: 27.78 kB / 0.5102 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001236/0.1397, allocations: 43.95 kB / 0.5102 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002336/0.1399, allocations: 123.6 kB / 0.5104 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.1401, allocations: 37.52 kB / 0.5104 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.344e-05/0.1402, allocations: 43.84 kB / 0.5104 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1403, allocations: 51.64 kB / 0.5105 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.1403, allocations: 8 kB / 0.5105 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.171e-05/0.1404, allocations: 12 kB / 0.5105 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.795e-05/0.1404, allocations: 19.92 kB / 0.5105 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.841e-05/0.1404, allocations: 35.8 kB / 0.5106 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002353/0.1407, allocations: 115.4 kB / 0.5107 GB, free: 3.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1407, allocations: 0 / 0.5107 GB, free: 3.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1407, allocations: 0 / 0.5107 GB, free: 3.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1407, allocations: 0 / 0.5107 GB, free: 3.172 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.0006056/0.1413, allocations: 350 kB / 0.511 GB, free: 2.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1413, allocations: 8.031 kB / 0.511 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.1414, allocations: 20.84 kB / 0.511 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.1417, allocations: 150.3 kB / 0.5112 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.1417, allocations: 12.5 kB / 0.5112 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.1418, allocations: 16.36 kB / 0.5112 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000312/0.1421, allocations: 136.9 kB / 0.5113 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1421, allocations: 3.938 kB / 0.5113 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.1421, allocations: 0 / 0.5113 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1421, allocations: 4 kB / 0.5113 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.1424, allocations: 67.89 kB / 0.5114 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007945/0.1432, allocations: 0.5208 MB / 0.5119 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.1435, allocations: 107.8 kB / 0.512 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.1436, allocations: 38.75 kB / 0.512 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.1436, allocations: 4 kB / 0.512 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.1436, allocations: 46.48 kB / 0.5121 GB, free: 1.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.1436, allocations: 4 kB / 0.5121 GB, free: 1.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003862/0.144, allocations: 109.5 kB / 0.5122 GB, free: 1.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/0.1442, allocations: 102.8 kB / 0.5123 GB, free: 1.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.1444, allocations: 150.5 kB / 0.5124 GB, free: 1.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.1444, allocations: 25.7 kB / 0.5125 GB, free: 1.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.1445, allocations: 119.9 kB / 0.5126 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.1446, allocations: 27.73 kB / 0.5126 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.156e-05/0.1446, allocations: 29.91 kB / 0.5126 GB, free: 0.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1448, allocations: 330.8 kB / 0.513 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.78e-05/0.1449, allocations: 19.98 kB / 0.513 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.145, allocations: 95.69 kB / 0.5131 GB, free: 456 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.1452, allocations: 97.34 kB / 0.5132 GB, free: 340 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1452, allocations: 8 kB / 0.5132 GB, free: 332 kB / 382.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002782/0.1455, allocations: 113.4 kB / 0.5133 GB, free: 212 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1455, allocations: 7.984 kB / 0.5133 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1455, allocations: 4 kB / 0.5133 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1455, allocations: 0 / 0.5133 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1457, allocations: 32.08 kB / 0.5133 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1457, allocations: 8 kB / 0.5133 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.356e-05/0.1458, allocations: 11.89 kB / 0.5133 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.1458, allocations: 4 kB / 0.5133 GB, free: 144 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.0001211/0.1459, allocations: 133.7 kB / 0.5135 GB, free: 0 / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2327/0.3786, allocations: 4.391 kB / 0.5135 GB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.834e-05/0.3787, allocations: 14.47 kB / 0.5135 GB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3787, allocations: 1.375 kB / 0.5135 GB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3787, allocations: 0.9062 kB / 0.5135 GB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3787, allocations: 1 kB / 0.5135 GB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.3789, allocations: 143.7 kB / 0.5136 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3789, allocations: 7.156 kB / 0.5136 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.3791, allocations: 16.19 kB / 0.5136 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3791, allocations: 3.312 kB / 0.5136 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3791, allocations: 3.219 kB / 0.5136 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.3791, allocations: 0.6094 kB / 0.5137 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3791, allocations: 4.188 kB / 0.5137 GB, free: 16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003866/0.3795, allocations: 234.1 kB / 0.5139 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.3795, allocations: 10.36 kB / 0.5139 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.3796, allocations: 2.609 kB / 0.5139 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.597e-05/0.3796, allocations: 5.766 kB / 0.5139 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.3797, allocations: 9.953 kB / 0.5139 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.3797, allocations: 3.062 kB / 0.5139 GB, free: 15.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.3798, allocations: 113.6 kB / 0.514 GB, free: 15.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3798, allocations: 1.906 kB / 0.514 GB, free: 15.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.3801, allocations: 22.22 kB / 0.514 GB, free: 15.78 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 8.313e-05/0.3802, allocations: 100.5 kB / 0.5141 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.3804, allocations: 67.88 kB / 0.5142 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3804, allocations: 0.5 kB / 0.5142 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.46e-05/0.3805, allocations: 34.78 kB / 0.5142 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.3809, allocations: 25.66 kB / 0.5143 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005963/0.3815, allocations: 244.7 kB / 0.5145 GB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.809e-05/0.3815, allocations: 98.08 kB / 0.5146 GB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.722e-05/0.3816, allocations: 12.52 kB / 0.5146 GB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.823e-05/0.3817, allocations: 12.97 kB / 0.5146 GB, free: 15.45 MB / 382.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3817, allocations: 0.5 kB / 0.5146 GB, free: 15.45 MB / 382.1 MB Notification: Performance of Templates: time 0.004056/0.3857, allocations: 1.074 MB / 0.5157 GB, free: 15.39 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=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins/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.202040459960699]