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.001101/0.001101, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1827/0.1827, allocations: 16.78 MB / 307.2 MB, free: 14.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.91 kB / 373.8 MB, free: 1.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.303, allocations: 53.56 MB / 427.4 MB, free: 40.9 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003259/0.3063, allocations: 1.82 MB / 429.2 MB, free: 40.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003501/0.3067, allocations: 169 kB / 429.4 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3068, allocations: 5.406 kB / 429.4 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.3069, allocations: 22.59 kB / 429.4 MB, free: 40.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001338/0.3071, allocations: 28.27 kB / 429.4 MB, free: 39.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.308e-05/0.3072, allocations: 40.94 kB / 429.5 MB, free: 39.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.3073, allocations: 124.4 kB / 429.6 MB, free: 39.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.3075, allocations: 57.09 kB / 429.7 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.994e-05/0.3075, allocations: 47.66 kB / 429.7 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.984e-05/0.3076, allocations: 39.84 kB / 429.7 MB, free: 39.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.3076, allocations: 5.625 kB / 429.7 MB, free: 39.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.074e-05/0.3077, allocations: 9.125 kB / 429.8 MB, free: 39.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.3077, allocations: 30.81 kB / 429.8 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.287e-05/0.3078, allocations: 54.5 kB / 429.8 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.3079, allocations: 99.5 kB / 429.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3079, allocations: 0 / 429.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3079, allocations: 0 / 429.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.3079, allocations: 0 / 429.9 MB, free: 39.72 MB / 350.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.0004484/0.3084, allocations: 423 kB / 430.3 MB, free: 39.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.3084, allocations: 8.562 kB / 430.4 MB, free: 39.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.588e-05/0.3085, allocations: 21.41 kB / 430.4 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.3087, allocations: 218.9 kB / 430.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.3087, allocations: 6.094 kB / 430.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.3087, allocations: 10.16 kB / 430.6 MB, free: 39.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.3089, allocations: 133.4 kB / 430.7 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.309, allocations: 3.375 kB / 430.7 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.309, allocations: 10.72 kB / 430.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.309, allocations: 2.75 kB / 430.8 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.3092, allocations: 67.91 kB / 430.8 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005255/0.3097, allocations: 0.6021 MB / 431.4 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.3099, allocations: 108.8 kB / 431.5 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.905e-05/0.31, allocations: 54.19 kB / 431.6 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.3101, allocations: 3.938 kB / 431.6 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.258e-05/0.3101, allocations: 33.44 kB / 431.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.3101, allocations: 0 / 431.6 MB, free: 38.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003302/0.3104, allocations: 119.3 kB / 431.7 MB, free: 38.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.3105, allocations: 102.8 kB / 431.8 MB, free: 38.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.343e-05/0.3105, allocations: 154.5 kB / 432 MB, free: 37.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.3106, allocations: 29.03 kB / 432 MB, free: 37.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.3106, allocations: 117.1 kB / 432.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.3106, allocations: 37.12 kB / 432.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.3107, allocations: 23.12 kB / 432.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.828e-05/0.3107, allocations: 324.8 kB / 432.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.124e-05/0.3108, allocations: 24.41 kB / 432.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.652e-05/0.3109, allocations: 65.22 kB / 432.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.3111, allocations: 99.5 kB / 432.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3111, allocations: 2.938 kB / 432.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002108/0.3113, allocations: 118.9 kB / 432.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.3113, allocations: 7.469 kB / 432.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3113, allocations: 6.078 kB / 432.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3114, allocations: 2.969 kB / 432.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.3115, allocations: 24.72 kB / 432.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3115, allocations: 2.969 kB / 432.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.267e-05/0.3116, allocations: 17.22 kB / 432.9 MB, free: 37.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.497e-06/0.3116, allocations: 2.781 kB / 432.9 MB, free: 37.16 MB / 350.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 6.56e-05/0.3117, allocations: 123 kB / 433 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.3117, allocations: 15.75 kB / 433 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.821e-05/0.3117, allocations: 14.61 kB / 433 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3117, allocations: 0 / 433 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3118, allocations: 3.938 kB / 433 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3118, allocations: 6.781 kB / 433 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.3119, allocations: 209.9 kB / 433.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3119, allocations: 4 kB / 433.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.312, allocations: 14.94 kB / 433.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.312, allocations: 2.781 kB / 433.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3121, allocations: 0 / 433.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3121, allocations: 2.938 kB / 433.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3121, allocations: 3.328 kB / 433.3 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.3124, allocations: 239.9 kB / 433.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.506e-05/0.3124, allocations: 86.89 kB / 433.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.3124, allocations: 7.938 kB / 433.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.974e-05/0.3125, allocations: 10.08 kB / 433.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/0.3126, allocations: 6.359 kB / 433.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.3126, allocations: 2.875 kB / 433.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.391e-05/0.3127, allocations: 121.2 kB / 433.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3127, allocations: 0 / 433.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002411/0.3129, allocations: 22.19 kB / 433.8 MB, free: 36.39 MB / 350.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 6.516e-05/0.313, allocations: 93.62 kB / 433.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000221/0.3132, allocations: 76.08 kB / 433.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3132, allocations: 320 / 433.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.139e-05/0.3133, allocations: 35.59 kB / 434 MB, free: 36.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.3137, allocations: 20.16 kB / 434 MB, free: 36.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000413/0.3141, allocations: 245.8 kB / 434.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.3142, allocations: 0.7042 MB / 434.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.823e-05/0.3143, allocations: 13.77 kB / 434.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.3143, allocations: 13.12 kB / 434.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3143, allocations: 0 / 434.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of Templates: time 0.002941/0.3173, allocations: 0.9872 MB / 435.9 MB, free: 35.25 MB / 350.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/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) Reference file matches