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.005445/0.005445, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001276/0.001276, allocations: 202 kB / 16.68 MB, free: 5.965 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1697/0.1697, allocations: 16.79 MB / 307.3 MB, free: 14.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 70.89 kB / 428.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08175/0.08302, allocations: 53.56 MB / 482.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002286/0.08534, allocations: 1.82 MB / 484.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000321/0.08568, allocations: 170.4 kB / 484.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.464e-05/0.08579, allocations: 7.312 kB / 484.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.08593, allocations: 29.2 kB / 484.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.08607, allocations: 23.39 kB / 484.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.644e-05/0.08617, allocations: 42.2 kB / 484.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001479/0.08632, allocations: 125.4 kB / 484.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.08646, allocations: 51.89 kB / 484.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.362e-05/0.08652, allocations: 51.88 kB / 484.6 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.543e-05/0.08661, allocations: 42.41 kB / 484.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.08664, allocations: 8.781 kB / 484.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.889e-05/0.08666, allocations: 8.469 kB / 484.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.3e-05/0.08669, allocations: 18.95 kB / 484.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.08674, allocations: 53.16 kB / 484.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.08688, allocations: 114.2 kB / 484.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.08689, allocations: 4 kB / 484.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.0869, allocations: 0 / 484.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.08691, allocations: 0 / 484.8 MB, free: 7.039 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.0004258/0.08734, allocations: 421.2 kB / 485.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.08738, allocations: 9.625 kB / 485.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.301e-05/0.08743, allocations: 19.66 kB / 485.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.08764, allocations: 228.2 kB / 485.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.08766, allocations: 4.688 kB / 485.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.724e-05/0.08769, allocations: 11.25 kB / 485.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.08791, allocations: 136.1 kB / 485.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.08793, allocations: 0 / 485.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.08795, allocations: 5.375 kB / 485.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.08796, allocations: 6.75 kB / 485.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.08813, allocations: 66.27 kB / 485.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004946/0.08863, allocations: 0.6036 MB / 486.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.08885, allocations: 114.1 kB / 486.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.338e-05/0.08895, allocations: 43.06 kB / 486.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.08897, allocations: 5.375 kB / 486.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.08899, allocations: 31.94 kB / 486.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.089, allocations: 0 / 486.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003213/0.08932, allocations: 121.6 kB / 486.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.08936, allocations: 112.4 kB / 486.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.093e-05/0.08946, allocations: 148.7 kB / 486.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.08947, allocations: 27.08 kB / 486.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.08952, allocations: 117.4 kB / 487 MB, free: 4.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.08954, allocations: 31.89 kB / 487 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.08958, allocations: 24.59 kB / 487.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.987e-05/0.08963, allocations: 321.6 kB / 487.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.92e-05/0.08971, allocations: 25.73 kB / 487.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.602e-05/0.08981, allocations: 67.86 kB / 487.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.08997, allocations: 104.5 kB / 487.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.08998, allocations: 1.375 kB / 487.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00022/0.0902, allocations: 119.1 kB / 487.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.09022, allocations: 13.53 kB / 487.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.09023, allocations: 1.594 kB / 487.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.09025, allocations: 1.75 kB / 487.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.09038, allocations: 27.28 kB / 487.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.09039, allocations: 2.25 kB / 487.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.225e-05/0.09047, allocations: 8.562 kB / 487.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.09049, allocations: 4.062 kB / 487.7 MB, free: 4.285 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.315e-05/0.09055, allocations: 136.7 kB / 487.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.09059, allocations: 13.17 kB / 487.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.09062, allocations: 11.41 kB / 487.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.09063, allocations: 1.688 kB / 487.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.09064, allocations: 1.281 kB / 487.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.09064, allocations: 0 / 487.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.0908, allocations: 217.3 kB / 488.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.09081, allocations: 0 / 488.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.09092, allocations: 17.02 kB / 488.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.09093, allocations: 1.344 kB / 488.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.09094, allocations: 1.281 kB / 488.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.09095, allocations: 5.219 kB / 488.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.09095, allocations: 1.312 kB / 488.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.09123, allocations: 228.1 kB / 488.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.68e-05/0.09127, allocations: 88.16 kB / 488.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.09129, allocations: 5.531 kB / 488.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-05/0.09139, allocations: 3.062 kB / 488.5 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.09143, allocations: 7.766 kB / 488.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.09144, allocations: 6.594 kB / 488.5 MB, free: 3.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.401e-05/0.0915, allocations: 114.6 kB / 488.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0915, allocations: 0 / 488.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.09175, allocations: 25.55 kB / 488.6 MB, free: 3.473 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.303e-05/0.09181, allocations: 101.6 kB / 488.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.09203, allocations: 70.8 kB / 488.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.09204, allocations: 0 / 488.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.304e-05/0.09213, allocations: 37.97 kB / 488.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.09244, allocations: 26.42 kB / 488.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003974/0.09284, allocations: 247.8 kB / 489.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.09297, allocations: 0.7021 MB / 489.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.287e-05/0.09302, allocations: 17.52 kB / 489.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.09306, allocations: 13.34 kB / 489.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09307, allocations: 0 / 489.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of Templates: time 0.00277/0.09584, allocations: 1.012 MB / 490.8 MB, free: 1.613 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