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.001471/0.00147, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001766/0.001766, allocations: 193.9 kB / 16.25 MB, free: 6.629 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.439/1.439, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1793/0.1793, allocations: 16.78 MB / 306.9 MB, free: 14.88 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 63.91 kB / 373.3 MB, free: 1.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2996, allocations: 53.55 MB / 426.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002885/0.3026, allocations: 1.881 MB / 428.7 MB, free: 40.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003639/0.303, allocations: 162.8 kB / 428.9 MB, free: 40.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.3031, allocations: 6.938 kB / 428.9 MB, free: 40.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.3033, allocations: 11.2 kB / 428.9 MB, free: 40.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.3034, allocations: 18.02 kB / 428.9 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.445e-05/0.3035, allocations: 38.8 kB / 429 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001587/0.3037, allocations: 130.3 kB / 429.1 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.3038, allocations: 54.25 kB / 429.2 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.481e-05/0.3039, allocations: 50.75 kB / 429.2 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.16e-05/0.304, allocations: 37.8 kB / 429.2 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.304, allocations: 10.06 kB / 429.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.751e-05/0.3041, allocations: 8.594 kB / 429.3 MB, free: 39.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.3041, allocations: 29.95 kB / 429.3 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.3041, allocations: 44.59 kB / 429.3 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001317/0.3043, allocations: 101.3 kB / 429.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3043, allocations: 4 kB / 429.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3043, allocations: 3.781 kB / 429.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3043, allocations: 0 / 429.4 MB, free: 39.77 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.0005182/0.3048, allocations: 423.3 kB / 429.9 MB, free: 39.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3049, allocations: 8.844 kB / 429.9 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.186e-05/0.3049, allocations: 18.5 kB / 429.9 MB, free: 39.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.3052, allocations: 218 kB / 430.1 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.3052, allocations: 7.5 kB / 430.1 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.3053, allocations: 13 kB / 430.1 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.3055, allocations: 134.7 kB / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3055, allocations: 0 / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.3055, allocations: 6.812 kB / 430.3 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-06/0.3056, allocations: 3.156 kB / 430.3 MB, free: 39.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3057, allocations: 66.98 kB / 430.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.3063, allocations: 0.6129 MB / 430.9 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.3066, allocations: 105.9 kB / 431 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.043e-05/0.3067, allocations: 48.64 kB / 431.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.3067, allocations: 2.875 kB / 431.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.675e-05/0.3067, allocations: 36.64 kB / 431.1 MB, free: 38.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3068, allocations: 0 / 431.1 MB, free: 38.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003596/0.3071, allocations: 119.2 kB / 431.2 MB, free: 38.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.3072, allocations: 106.8 kB / 431.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3073, allocations: 154.3 kB / 431.5 MB, free: 37.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.3073, allocations: 25.7 kB / 431.5 MB, free: 37.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.805e-05/0.3074, allocations: 119.9 kB / 431.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.3074, allocations: 29.33 kB / 431.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.3074, allocations: 26.56 kB / 431.7 MB, free: 37.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.456e-05/0.3075, allocations: 329.1 kB / 432 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.76e-05/0.3076, allocations: 21.81 kB / 432 MB, free: 37.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.719e-05/0.3077, allocations: 65.92 kB / 432.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.3078, allocations: 100.9 kB / 432.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3078, allocations: 0 / 432.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002078/0.308, allocations: 124.2 kB / 432.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3081, allocations: 5.781 kB / 432.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3081, allocations: 2.906 kB / 432.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3081, allocations: 2.906 kB / 432.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.3082, allocations: 25.09 kB / 432.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3082, allocations: 2.438 kB / 432.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.41e-05/0.3083, allocations: 13.23 kB / 432.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.3083, allocations: 2.719 kB / 432.4 MB, free: 37.21 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 7.377e-05/0.3084, allocations: 134.9 kB / 432.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.3085, allocations: 10.62 kB / 432.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.091e-05/0.3085, allocations: 15.05 kB / 432.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3085, allocations: 2.906 kB / 432.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3085, allocations: 0 / 432.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3085, allocations: 6.625 kB / 432.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.3087, allocations: 209 kB / 432.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3087, allocations: 3.938 kB / 432.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.3088, allocations: 15.41 kB / 432.8 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3088, allocations: 4 kB / 432.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.3088, allocations: 2.844 kB / 432.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.3088, allocations: 3.328 kB / 432.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3088, allocations: 6.688 kB / 432.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.3091, allocations: 229.7 kB / 433 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.634e-05/0.3092, allocations: 83.8 kB / 433.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.3092, allocations: 4 kB / 433.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.836e-05/0.3093, allocations: 8.906 kB / 433.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.3093, allocations: 5.875 kB / 433.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.3093, allocations: 2.875 kB / 433.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.879e-05/0.3094, allocations: 113.2 kB / 433.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3094, allocations: 0 / 433.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002327/0.3096, allocations: 18.28 kB / 433.2 MB, free: 36.45 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 8.486e-05/0.3097, allocations: 109.5 kB / 433.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002217/0.31, allocations: 73.84 kB / 433.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.31, allocations: 0 / 433.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.094e-05/0.3101, allocations: 32.2 kB / 433.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.3104, allocations: 35 kB / 433.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004976/0.3109, allocations: 286.9 kB / 433.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.3111, allocations: 0.7078 MB / 434.5 MB, free: 35.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.35e-05/0.3112, allocations: 13.55 kB / 434.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.3112, allocations: 13.16 kB / 434.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3112, allocations: 0 / 434.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of Templates: time 0.003035/0.3143, allocations: 0.9417 MB / 435.4 MB, free: 35.26 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