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.005842/0.005842, allocations: 99.14 kB / 15.73 MB, free: 6.062 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.001338/0.001338, allocations: 188.7 kB / 16.67 MB, free: 5.969 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07074/0.07074, allocations: 16.78 MB / 307.3 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 67.91 kB / 428.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.08986, allocations: 53.56 MB / 482.2 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003025/0.09294, allocations: 1.822 MB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004045/0.09337, allocations: 163.5 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.0935, allocations: 4 kB / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.09364, allocations: 23.73 kB / 484.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.09382, allocations: 31.78 kB / 484.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001015/0.09393, allocations: 39.95 kB / 484.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.09411, allocations: 123.6 kB / 484.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.09426, allocations: 57.31 kB / 484.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.163e-05/0.09434, allocations: 51.78 kB / 484.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.105e-05/0.09443, allocations: 39.78 kB / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.174e-05/0.09446, allocations: 12 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.876e-05/0.09449, allocations: 12 kB / 484.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.09452, allocations: 19.86 kB / 484.6 MB, free: 468 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.09457, allocations: 51.67 kB / 484.7 MB, free: 416 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.09474, allocations: 107.5 kB / 484.8 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09475, allocations: 0 / 484.8 MB, free: 308 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09476, allocations: 7.938 kB / 484.8 MB, free: 300 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.09476, allocations: 0 / 484.8 MB, free: 300 kB / 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.0005296/0.0953, allocations: 431 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.09534, allocations: 11.97 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.09539, allocations: 16.84 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.09565, allocations: 216.2 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.09567, allocations: 4.562 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.09571, allocations: 12.36 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.09596, allocations: 142.2 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.09598, allocations: 0 / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.096, allocations: 4 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.09601, allocations: 4 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001826/0.0962, allocations: 63.89 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006598/0.09686, allocations: 0.603 MB / 486.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.09713, allocations: 116 kB / 486.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.09724, allocations: 42.62 kB / 486.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.09726, allocations: 0 / 486.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.09729, allocations: 34.56 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.0973, allocations: 0 / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003683/0.09767, allocations: 129.4 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.09773, allocations: 102.8 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.09786, allocations: 148.1 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.09788, allocations: 25.7 kB / 486.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.567e-05/0.09795, allocations: 127.9 kB / 487 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.09797, allocations: 20.05 kB / 487 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.09803, allocations: 33.7 kB / 487 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.09813, allocations: 322.8 kB / 487.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.235e-05/0.09822, allocations: 19.98 kB / 487.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.09833, allocations: 69.94 kB / 487.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.09852, allocations: 105 kB / 487.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.09853, allocations: 0 / 487.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002451/0.09878, allocations: 125.7 kB / 487.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.09881, allocations: 8 kB / 487.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.09882, allocations: 0 / 487.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.09883, allocations: 4 kB / 487.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.09897, allocations: 19.98 kB / 487.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.609e-06/0.09898, allocations: 7.984 kB / 487.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.73e-05/0.09907, allocations: 20.03 kB / 487.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.09909, allocations: 4 kB / 487.7 MB, free: 13.01 MB / 366.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 8.411e-05/0.09917, allocations: 125.8 kB / 487.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.09921, allocations: 11.91 kB / 487.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.744e-05/0.09926, allocations: 16.3 kB / 487.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.09926, allocations: 0 / 487.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.09927, allocations: 4 kB / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.09928, allocations: 0 / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.09949, allocations: 213.5 kB / 488.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.0995, allocations: 4 kB / 488.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.09961, allocations: 15.98 kB / 488.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.09962, allocations: 0 / 488.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.09964, allocations: 4 kB / 488.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.09965, allocations: 3.938 kB / 488.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.09965, allocations: 0 / 488.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003325/0.09999, allocations: 229.1 kB / 488.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.365e-05/0.1, allocations: 93.05 kB / 488.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.1001, allocations: 7.969 kB / 488.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.104e-05/0.1002, allocations: 4 kB / 488.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.1002, allocations: 7.984 kB / 488.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.1002, allocations: 4 kB / 488.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.698e-05/0.1003, allocations: 114.2 kB / 488.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1003, allocations: 3.938 kB / 488.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1005, allocations: 19.94 kB / 488.6 MB, free: 12.05 MB / 366.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.632e-05/0.1006, allocations: 99.23 kB / 488.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002387/0.1009, allocations: 67.84 kB / 488.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1009, allocations: 0 / 488.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.817e-05/0.101, allocations: 40.36 kB / 488.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.1013, allocations: 28.09 kB / 488.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004544/0.1018, allocations: 241.1 kB / 489.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.102, allocations: 0.7042 MB / 489.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.724e-05/0.1021, allocations: 12.55 kB / 489.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.122e-05/0.1021, allocations: 15.38 kB / 489.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1021, allocations: 0 / 489.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of Templates: time 0.003184/0.1053, allocations: 1.023 MB / 490.8 MB, free: 9.77 MB / 366.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