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.002214/0.002214, allocations: 88.05 kB / 19.44 MB, free: 316 kB / 13.93 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.002722/0.002722, allocations: 173.3 kB / 22.77 MB, free: 1.637 MB / 18.57 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.537/1.537, allocations: 177.1 MB / 203.1 MB, free: 5.633 MB / 186.7 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.08629/0.08629, allocations: 12.72 MB / 272.3 MB, free: 0.7773 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 348.4 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.173e-05/3.353e-05, allocations: 2.312 kB / 348.4 MB, free: 15.9 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.005355/0.005389, allocations: 1.795 MB / 350.2 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007092/0.006098, allocations: 163.4 kB / 350.3 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.006242, allocations: 7.938 kB / 350.3 MB, free: 13.92 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.006471, allocations: 27.72 kB / 350.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002259/0.006697, allocations: 23.84 kB / 350.4 MB, free: 13.87 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.006883, allocations: 51.84 kB / 350.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.007169, allocations: 115.7 kB / 350.6 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.007405, allocations: 45.48 kB / 350.6 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.007587, allocations: 59.83 kB / 350.7 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.007729, allocations: 35.89 kB / 350.7 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.007771, allocations: 11.94 kB / 350.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.073e-05/0.007802, allocations: 8 kB / 350.7 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.465e-05/0.007846, allocations: 19.92 kB / 350.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.181e-05/0.007918, allocations: 23.92 kB / 350.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.008229, allocations: 111.5 kB / 350.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.008232, allocations: 0 / 350.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.008234, allocations: 4 kB / 350.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.008239, allocations: 0 / 350.9 MB, free: 13.39 MB / 282.7 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.0009679/0.009207, allocations: 455.9 kB / 351.3 MB, free: 12.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.009261, allocations: 12.03 kB / 351.3 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.961e-05/0.009351, allocations: 16.84 kB / 351.3 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.00977, allocations: 164.4 kB / 351.5 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.009803, allocations: 8.562 kB / 351.5 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.009854, allocations: 12.38 kB / 351.5 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004703/0.01032, allocations: 161 kB / 351.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.01034, allocations: 0 / 351.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.01036, allocations: 8 kB / 351.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.01037, allocations: 0 / 351.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003417/0.01071, allocations: 61.41 kB / 351.8 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.01217, allocations: 0.6951 MB / 352.4 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004688/0.01264, allocations: 125.2 kB / 352.6 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.01283, allocations: 55.3 kB / 352.6 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.01286, allocations: 0 / 352.6 MB, free: 11.44 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.247e-05/0.01291, allocations: 45.27 kB / 352.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.903e-06/0.01292, allocations: 0 / 352.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.000594/0.01351, allocations: 117.5 kB / 352.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.01363, allocations: 102.8 kB / 352.9 MB, free: 11.14 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003667/0.014, allocations: 231.3 kB / 353.1 MB, free: 10.9 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.01404, allocations: 25.7 kB / 353.1 MB, free: 10.87 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.01424, allocations: 174.7 kB / 353.3 MB, free: 10.69 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.0143, allocations: 35.98 kB / 353.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.0144, allocations: 31.38 kB / 353.4 MB, free: 10.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003992/0.0148, allocations: 0.4962 MB / 353.9 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.01494, allocations: 19.98 kB / 353.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.01518, allocations: 111.5 kB / 354 MB, free: 9.945 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.01549, allocations: 106 kB / 354.1 MB, free: 9.816 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01549, allocations: 4.031 kB / 354.1 MB, free: 9.812 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003883/0.01588, allocations: 113.5 kB / 354.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.01591, allocations: 11.94 kB / 354.2 MB, free: 9.684 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01591, allocations: 3.938 kB / 354.2 MB, free: 9.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.01593, allocations: 0 / 354.2 MB, free: 9.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.01611, allocations: 23.98 kB / 354.3 MB, free: 9.656 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.01613, allocations: 4 kB / 354.3 MB, free: 9.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.01625, allocations: 16.05 kB / 354.3 MB, free: 9.637 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.01627, allocations: 11.98 kB / 354.3 MB, free: 9.625 MB / 282.7 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.0001883/0.01645, allocations: 172.5 kB / 354.5 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.021e-05/0.01652, allocations: 15.89 kB / 354.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.14e-05/0.01658, allocations: 16.47 kB / 354.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01658, allocations: 0 / 354.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.01658, allocations: 0 / 354.5 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.0166, allocations: 7.984 kB / 354.5 MB, free: 9.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.01697, allocations: 160.6 kB / 354.6 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01697, allocations: 0 / 354.6 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.01715, allocations: 16.3 kB / 354.7 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.01715, allocations: 8 kB / 354.7 MB, free: 9.195 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.01718, allocations: 7.938 kB / 354.7 MB, free: 9.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.01718, allocations: 0 / 354.7 MB, free: 9.188 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.01718, allocations: 4 kB / 354.7 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006861/0.01787, allocations: 279.1 kB / 355 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.01791, allocations: 7.953 kB / 355 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.01795, allocations: 7.938 kB / 355 MB, free: 8.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.01811, allocations: 3.984 kB / 355 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.01819, allocations: 11.98 kB / 355 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.01821, allocations: 8.031 kB / 355 MB, free: 8.844 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002062/0.01842, allocations: 163.2 kB / 355.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.01842, allocations: 0 / 355.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.01888, allocations: 19.94 kB / 355.2 MB, free: 8.668 MB / 282.7 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.0001687/0.01905, allocations: 99.19 kB / 355.3 MB, free: 8.559 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004151/0.01947, allocations: 75.64 kB / 355.3 MB, free: 8.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.01947, allocations: 0 / 355.3 MB, free: 8.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.01967, allocations: 43.91 kB / 355.4 MB, free: 8.434 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.02023, allocations: 29.62 kB / 355.4 MB, free: 8.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009906/0.02122, allocations: 257.9 kB / 355.7 MB, free: 8.121 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.02141, allocations: 89.31 kB / 355.8 MB, free: 8.012 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.02153, allocations: 12.48 kB / 355.8 MB, free: 8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.373e-05/0.0216, allocations: 16.5 kB / 355.8 MB, free: 7.984 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.0216, allocations: 0 / 355.8 MB, free: 7.984 MB / 282.7 MB Notification: Performance of Templates: time 0.00695/0.02855, allocations: 1.024 MB / 356.8 MB, free: 6.973 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) [Timeout 240] 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: 4.685292744077742]