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.0009998/0.0009998, allocations: 108 kB / 15.6 MB, free: 132 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.0009885/0.0009885, allocations: 198 kB / 16.54 MB, free: 6.672 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.22/1.22, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1669/0.1669, allocations: 16.78 MB / 307.2 MB, free: 14.81 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 67.91 kB / 373.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2826, allocations: 53.56 MB / 427.4 MB, free: 40.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003018/0.2857, allocations: 1.822 MB / 429.2 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003429/0.286, allocations: 169.3 kB / 429.4 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2861, allocations: 7.844 kB / 429.4 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.2863, allocations: 19.05 kB / 429.4 MB, free: 39.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.2864, allocations: 31.98 kB / 429.5 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.366e-05/0.2865, allocations: 38.64 kB / 429.5 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.2867, allocations: 126.4 kB / 429.6 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.2868, allocations: 52.52 kB / 429.7 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.097e-05/0.2869, allocations: 52.52 kB / 429.7 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.706e-05/0.287, allocations: 42.88 kB / 429.8 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.287, allocations: 9.875 kB / 429.8 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.694e-05/0.287, allocations: 7.156 kB / 429.8 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.796e-05/0.287, allocations: 24.88 kB / 429.8 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.867e-05/0.2871, allocations: 47.88 kB / 429.9 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.2872, allocations: 101.6 kB / 430 MB, free: 39.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2872, allocations: 4 kB / 430 MB, free: 39.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2872, allocations: 0 / 430 MB, free: 39.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2872, allocations: 0 / 430 MB, free: 39.49 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.0004411/0.2877, allocations: 427 kB / 430.4 MB, free: 39.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2877, allocations: 8.188 kB / 430.4 MB, free: 39.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.634e-05/0.2878, allocations: 16.94 kB / 430.4 MB, free: 39.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.288, allocations: 216.4 kB / 430.6 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.288, allocations: 10.03 kB / 430.6 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.288, allocations: 13.91 kB / 430.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.2882, allocations: 136.2 kB / 430.8 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2882, allocations: 0 / 430.8 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.2883, allocations: 2.875 kB / 430.8 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.2883, allocations: 2.906 kB / 430.8 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.2884, allocations: 66.33 kB / 430.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005117/0.289, allocations: 0.6078 MB / 431.4 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.2892, allocations: 100.2 kB / 431.5 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.836e-05/0.2893, allocations: 58.38 kB / 431.6 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.2893, allocations: 2.875 kB / 431.6 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.2894, allocations: 42.48 kB / 431.6 MB, free: 37.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.2894, allocations: 0 / 431.6 MB, free: 37.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003351/0.2897, allocations: 119.3 kB / 431.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.2897, allocations: 105.6 kB / 431.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.448e-05/0.2898, allocations: 157.1 kB / 432 MB, free: 37.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.2899, allocations: 28.48 kB / 432 MB, free: 37.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.778e-05/0.2899, allocations: 112.8 kB / 432.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2899, allocations: 25.92 kB / 432.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.29, allocations: 30.06 kB / 432.2 MB, free: 37.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.334e-05/0.29, allocations: 321 kB / 432.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.564e-05/0.2901, allocations: 26.19 kB / 432.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.543e-05/0.2902, allocations: 68 kB / 432.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.2904, allocations: 102.9 kB / 432.7 MB, free: 37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2904, allocations: 0 / 432.7 MB, free: 37 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002085/0.2906, allocations: 126.3 kB / 432.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.2906, allocations: 5.688 kB / 432.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2906, allocations: 0 / 432.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2906, allocations: 2.969 kB / 432.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.2908, allocations: 26.83 kB / 432.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.2908, allocations: 0 / 432.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.996e-05/0.2909, allocations: 12.95 kB / 432.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.2909, allocations: 5.875 kB / 432.9 MB, free: 36.93 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.486e-05/0.2909, allocations: 127.4 kB / 433 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.124e-05/0.291, allocations: 13.41 kB / 433 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.291, allocations: 18.22 kB / 433 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.291, allocations: 0 / 433 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.291, allocations: 2.719 kB / 433 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.291, allocations: 0 / 433 MB, free: 36.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.2912, allocations: 206.5 kB / 433.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2912, allocations: 3.938 kB / 433.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.2913, allocations: 21.14 kB / 433.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2913, allocations: 0 / 433.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2914, allocations: 4 kB / 433.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2914, allocations: 6.812 kB / 433.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2914, allocations: 3.234 kB / 433.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.2917, allocations: 230 kB / 433.5 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.2917, allocations: 88.02 kB / 433.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.2917, allocations: 6.375 kB / 433.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/0.2918, allocations: 2.938 kB / 433.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.2919, allocations: 10.03 kB / 433.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.2919, allocations: 6.938 kB / 433.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.963e-05/0.2919, allocations: 107.3 kB / 433.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2919, allocations: 3.938 kB / 433.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002336/0.2922, allocations: 22.38 kB / 433.8 MB, free: 36.17 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 7.394e-05/0.2922, allocations: 97.81 kB / 433.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002048/0.2924, allocations: 75.53 kB / 433.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2925, allocations: 0 / 433.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.844e-05/0.2925, allocations: 34.8 kB / 434 MB, free: 36.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.2929, allocations: 34.14 kB / 434 MB, free: 36.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004192/0.2934, allocations: 243.4 kB / 434.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.2935, allocations: 0.7084 MB / 434.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.626e-05/0.2935, allocations: 13.83 kB / 435 MB, free: 35.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.967e-05/0.2936, allocations: 13.25 kB / 435 MB, free: 35.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2936, allocations: 0 / 435 MB, free: 35.13 MB / 350.1 MB Notification: Performance of Templates: time 0.003047/0.2966, allocations: 0.9901 MB / 436 MB, free: 35.02 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=50 -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/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) Reference file matches