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.001504/0.001504, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001971/0.001971, allocations: 192.9 kB / 16.14 MB, free: 6.703 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2067/0.2067, allocations: 16.8 MB / 306.8 MB, free: 14.99 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.91 kB / 373.1 MB, free: 2.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2586, allocations: 53.55 MB / 426.7 MB, free: 40.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00251/0.2612, allocations: 1.876 MB / 428.6 MB, free: 40 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003059/0.2615, allocations: 162.7 kB / 428.7 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.2616, allocations: 2.906 kB / 428.7 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2618, allocations: 18.11 kB / 428.7 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.2619, allocations: 25.88 kB / 428.8 MB, free: 39.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.068e-05/0.262, allocations: 38.31 kB / 428.8 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.2621, allocations: 117.8 kB / 428.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.2623, allocations: 49.62 kB / 429 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.623e-05/0.2623, allocations: 45.86 kB / 429 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.256e-05/0.2624, allocations: 40.67 kB / 429.1 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.2624, allocations: 5.812 kB / 429.1 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.634e-05/0.2625, allocations: 2.938 kB / 429.1 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.2625, allocations: 26.08 kB / 429.1 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.951e-05/0.2625, allocations: 41.28 kB / 429.1 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.2626, allocations: 97.09 kB / 429.2 MB, free: 39.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.2627, allocations: 0 / 429.2 MB, free: 39.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2627, allocations: 0 / 429.2 MB, free: 39.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.2627, allocations: 0 / 429.2 MB, free: 39.65 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.0004558/0.2631, allocations: 427 kB / 429.6 MB, free: 39.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.2632, allocations: 8.656 kB / 429.7 MB, free: 39.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.2632, allocations: 21.5 kB / 429.7 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.2634, allocations: 219.2 kB / 429.9 MB, free: 39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2634, allocations: 5.875 kB / 429.9 MB, free: 39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.2634, allocations: 13.59 kB / 429.9 MB, free: 38.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.2637, allocations: 135 kB / 430 MB, free: 38.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.2637, allocations: 0 / 430 MB, free: 38.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.2637, allocations: 10.91 kB / 430 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2637, allocations: 0 / 430 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.2639, allocations: 65.83 kB / 430.1 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005537/0.2645, allocations: 0.6061 MB / 430.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.2647, allocations: 109.4 kB / 430.8 MB, free: 38.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.83e-05/0.2649, allocations: 50.28 kB / 430.9 MB, free: 38.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.2649, allocations: 0 / 430.9 MB, free: 38.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.2649, allocations: 33.22 kB / 430.9 MB, free: 38.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.274e-06/0.2649, allocations: 0 / 430.9 MB, free: 38.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003733/0.2653, allocations: 127 kB / 431 MB, free: 38.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.2653, allocations: 110.1 kB / 431.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.2655, allocations: 156.4 kB / 431.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.2655, allocations: 25.7 kB / 431.3 MB, free: 37.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.915e-05/0.2655, allocations: 115.8 kB / 431.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.2656, allocations: 26.03 kB / 431.5 MB, free: 37.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.2656, allocations: 30.22 kB / 431.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.2657, allocations: 322.1 kB / 431.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.395e-05/0.2658, allocations: 25.23 kB / 431.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.233e-05/0.2659, allocations: 70.42 kB / 431.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.266, allocations: 99.03 kB / 432 MB, free: 37.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.266, allocations: 0 / 432 MB, free: 37.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002239/0.2663, allocations: 121.4 kB / 432.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2663, allocations: 5.375 kB / 432.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2663, allocations: 6.266 kB / 432.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.2663, allocations: 2.875 kB / 432.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.2665, allocations: 20.7 kB / 432.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.2665, allocations: 6.812 kB / 432.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.958e-05/0.2666, allocations: 17.16 kB / 432.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.2666, allocations: 2.719 kB / 432.2 MB, free: 37.08 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.618e-05/0.2667, allocations: 123.8 kB / 432.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.2667, allocations: 13.88 kB / 432.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.2667, allocations: 14.28 kB / 432.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2667, allocations: 2.719 kB / 432.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2667, allocations: 0 / 432.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2667, allocations: 0 / 432.3 MB, free: 36.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.2669, allocations: 209.9 kB / 432.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2669, allocations: 6.75 kB / 432.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.2671, allocations: 14.92 kB / 432.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2671, allocations: 2.906 kB / 432.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.2671, allocations: 7.875 kB / 432.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2671, allocations: 0 / 432.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2671, allocations: 2.906 kB / 432.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.2674, allocations: 240.7 kB / 432.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.2674, allocations: 88.02 kB / 432.9 MB, free: 36.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.2675, allocations: 6.969 kB / 432.9 MB, free: 36.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.233e-05/0.2676, allocations: 6.359 kB / 432.9 MB, free: 36.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.2676, allocations: 6.094 kB / 432.9 MB, free: 36.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.2676, allocations: 6.812 kB / 432.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.545e-05/0.2677, allocations: 115.8 kB / 433 MB, free: 36.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2677, allocations: 0 / 433 MB, free: 36.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.2679, allocations: 18.41 kB / 433 MB, free: 36.32 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.767e-05/0.268, allocations: 108.2 kB / 433.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002202/0.2682, allocations: 70.25 kB / 433.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2683, allocations: 0 / 433.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.327e-05/0.2683, allocations: 35.48 kB / 433.2 MB, free: 36.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.2687, allocations: 23.19 kB / 433.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.2692, allocations: 280.8 kB / 433.5 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2693, allocations: 0.7043 MB / 434.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.342e-05/0.2694, allocations: 10.67 kB / 434.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.982e-05/0.2694, allocations: 21.03 kB / 434.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2694, allocations: 0 / 434.3 MB, free: 35.24 MB / 350.1 MB Notification: Performance of Templates: time 0.002912/0.2723, allocations: 0.9023 MB / 435.2 MB, free: 35.13 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