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.001775/0.001775, 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.001983/0.001983, allocations: 192 kB / 16.53 MB, free: 6.391 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.41/1.41, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1912/0.1912, allocations: 16.7 MB / 307.1 MB, free: 14.87 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.89 kB / 373.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2895, allocations: 53.55 MB / 427.3 MB, free: 41.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002645/0.2922, allocations: 1.823 MB / 429.1 MB, free: 40.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000326/0.2926, allocations: 169.4 kB / 429.3 MB, free: 40.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.2927, allocations: 7.875 kB / 429.3 MB, free: 40.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.2929, allocations: 19.05 kB / 429.3 MB, free: 40.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.293, allocations: 24.53 kB / 429.3 MB, free: 40.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.283e-05/0.2931, allocations: 42.84 kB / 429.4 MB, free: 40.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.2932, allocations: 125.2 kB / 429.5 MB, free: 40.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.2934, allocations: 55.81 kB / 429.5 MB, free: 40.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.702e-05/0.2934, allocations: 47.98 kB / 429.6 MB, free: 40.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.691e-05/0.2935, allocations: 45.03 kB / 429.6 MB, free: 40.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.2935, allocations: 8.812 kB / 429.6 MB, free: 40.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.734e-05/0.2936, allocations: 8.906 kB / 429.7 MB, free: 40.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.575e-05/0.2936, allocations: 26.09 kB / 429.7 MB, free: 40.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.932e-05/0.2936, allocations: 43.83 kB / 429.7 MB, free: 40.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.2938, allocations: 108.6 kB / 429.8 MB, free: 40.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2938, allocations: 0 / 429.8 MB, free: 40.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2938, allocations: 2.938 kB / 429.8 MB, free: 40.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2938, allocations: 0 / 429.8 MB, free: 40.13 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.0004556/0.2943, allocations: 423 kB / 430.2 MB, free: 39.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2943, allocations: 8.562 kB / 430.2 MB, free: 39.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.2943, allocations: 14.66 kB / 430.3 MB, free: 39.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.2946, allocations: 216.3 kB / 430.5 MB, free: 39.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.2946, allocations: 14.09 kB / 430.5 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.2946, allocations: 14.72 kB / 430.5 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.2948, allocations: 132.4 kB / 430.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2949, allocations: 0 / 430.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.2949, allocations: 10.72 kB / 430.6 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.2949, allocations: 2.781 kB / 430.6 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.2951, allocations: 67.98 kB / 430.7 MB, free: 39.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005223/0.2956, allocations: 0.6045 MB / 431.3 MB, free: 38.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.2958, allocations: 105.7 kB / 431.4 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.736e-05/0.2959, allocations: 45.59 kB / 431.5 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.296, allocations: 7.938 kB / 431.5 MB, free: 38.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.296, allocations: 33.22 kB / 431.5 MB, free: 38.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.296, allocations: 0 / 431.5 MB, free: 38.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003392/0.2963, allocations: 122.3 kB / 431.6 MB, free: 38.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.2964, allocations: 102.8 kB / 431.7 MB, free: 38.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.695e-05/0.2965, allocations: 156.9 kB / 431.9 MB, free: 38.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.2965, allocations: 29.7 kB / 431.9 MB, free: 38.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.565e-05/0.2966, allocations: 112.7 kB / 432 MB, free: 38.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.2966, allocations: 26.06 kB / 432 MB, free: 38.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.2966, allocations: 26.25 kB / 432.1 MB, free: 38.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.2967, allocations: 328.3 kB / 432.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.843e-05/0.2968, allocations: 22.81 kB / 432.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.019e-05/0.2969, allocations: 71.95 kB / 432.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.297, allocations: 95.81 kB / 432.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.297, allocations: 0 / 432.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002129/0.2972, allocations: 125.2 kB / 432.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2973, allocations: 7.188 kB / 432.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2973, allocations: 0 / 432.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.2973, allocations: 3.062 kB / 432.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.2974, allocations: 24.5 kB / 432.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2974, allocations: 9.703 kB / 432.7 MB, free: 37.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.242e-05/0.2975, allocations: 5.625 kB / 432.7 MB, free: 37.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.2975, allocations: 7.031 kB / 432.8 MB, free: 37.58 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.828e-05/0.2976, allocations: 126.6 kB / 432.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.2976, allocations: 18.5 kB / 432.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.2977, allocations: 15.86 kB / 432.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.2977, allocations: 2.75 kB / 432.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2977, allocations: 0 / 432.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2977, allocations: 0 / 432.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.2979, allocations: 221.7 kB / 433.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2979, allocations: 0 / 433.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.298, allocations: 17.61 kB / 433.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.298, allocations: 4 kB / 433.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.298, allocations: 0 / 433.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.298, allocations: 6.719 kB / 433.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.298, allocations: 0 / 433.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.2983, allocations: 236 kB / 433.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.2984, allocations: 86.83 kB / 433.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.2984, allocations: 0 / 433.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-05/0.2985, allocations: 10.19 kB / 433.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.2986, allocations: 2.906 kB / 433.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.2986, allocations: 6.312 kB / 433.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.345e-05/0.2986, allocations: 117.7 kB / 433.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2986, allocations: 0 / 433.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.2989, allocations: 20.83 kB / 433.6 MB, free: 36.82 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.622e-05/0.299, allocations: 101.5 kB / 433.7 MB, free: 36.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002219/0.2992, allocations: 73.47 kB / 433.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2992, allocations: 0 / 433.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.076e-05/0.2993, allocations: 28.06 kB / 433.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.2996, allocations: 31.17 kB / 433.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004326/0.3001, allocations: 257.2 kB / 434.1 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.3002, allocations: 0.7043 MB / 434.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.939e-05/0.3003, allocations: 10.34 kB / 434.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.3003, allocations: 16.33 kB / 434.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3003, allocations: 0 / 434.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of Templates: time 0.00347/0.3038, allocations: 0.9888 MB / 435.8 MB, free: 35.66 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