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.001529/0.001535, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001843/0.001843, allocations: 190 kB / 16.14 MB, free: 6.719 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.504/1.504, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.235/0.235, allocations: 16.78 MB / 306.7 MB, free: 14.94 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002511/0.002512, allocations: 71.88 kB / 373.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3186, allocations: 53.55 MB / 426.7 MB, free: 41.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.003187/0.3218, allocations: 1.874 MB / 428.6 MB, free: 40.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004299/0.3223, allocations: 162.4 kB / 428.7 MB, free: 40.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.3225, allocations: 6.875 kB / 428.7 MB, free: 40.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.3227, allocations: 21.67 kB / 428.8 MB, free: 40.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.3228, allocations: 11.86 kB / 428.8 MB, free: 40.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001072/0.323, allocations: 43.48 kB / 428.8 MB, free: 40.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.3231, allocations: 119.2 kB / 428.9 MB, free: 40.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.3233, allocations: 51.69 kB / 429 MB, free: 40.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.212e-05/0.3233, allocations: 43.42 kB / 429 MB, free: 40.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.3235, allocations: 48.45 kB / 429.1 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.3235, allocations: 3.844 kB / 429.1 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.118e-05/0.3235, allocations: 5.281 kB / 429.1 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.05e-05/0.3236, allocations: 17.77 kB / 429.1 MB, free: 40.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.099e-05/0.3236, allocations: 44.53 kB / 429.1 MB, free: 39.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.3238, allocations: 96.42 kB / 429.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3238, allocations: 0 / 429.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3238, allocations: 0 / 429.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.3238, allocations: 4 kB / 429.2 MB, free: 39.95 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.0006566/0.3245, allocations: 423.1 kB / 429.6 MB, free: 39.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.3245, allocations: 7.469 kB / 429.7 MB, free: 39.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.014e-05/0.3246, allocations: 16.44 kB / 429.7 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.3249, allocations: 218.9 kB / 429.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.3249, allocations: 7.438 kB / 429.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.215e-05/0.325, allocations: 12.81 kB / 429.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.3254, allocations: 141.5 kB / 430 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.3254, allocations: 0 / 430 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.3254, allocations: 0 / 430 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.3254, allocations: 4.688 kB / 430 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.3256, allocations: 69.34 kB / 430.1 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009133/0.3266, allocations: 0.6076 MB / 430.7 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.3269, allocations: 104.8 kB / 430.8 MB, free: 38.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.327, allocations: 43.53 kB / 430.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.327, allocations: 4 kB / 430.9 MB, free: 38.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.327, allocations: 41.28 kB / 430.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.464e-06/0.327, allocations: 3.984 kB / 430.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003913/0.3274, allocations: 118.4 kB / 431 MB, free: 38.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3275, allocations: 110.1 kB / 431.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3276, allocations: 152 kB / 431.3 MB, free: 38.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.3277, allocations: 25.7 kB / 431.3 MB, free: 38.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.956e-05/0.3278, allocations: 118.8 kB / 431.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.3278, allocations: 26.45 kB / 431.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.395e-05/0.3279, allocations: 33.48 kB / 431.5 MB, free: 37.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.328, allocations: 321.1 kB / 431.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.043e-05/0.328, allocations: 22.8 kB / 431.8 MB, free: 37.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.3282, allocations: 68.41 kB / 431.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.3284, allocations: 103.4 kB / 432 MB, free: 37.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3284, allocations: 0 / 432 MB, free: 37.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002669/0.3287, allocations: 119.6 kB / 432.1 MB, free: 37.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.3287, allocations: 5.844 kB / 432.1 MB, free: 37.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3287, allocations: 6.938 kB / 432.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.3287, allocations: 2.906 kB / 432.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.3289, allocations: 24.06 kB / 432.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.3289, allocations: 2.938 kB / 432.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.416e-05/0.329, allocations: 8.938 kB / 432.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.329, allocations: 6.75 kB / 432.2 MB, free: 37.39 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 0.0001112/0.3292, allocations: 126.2 kB / 432.3 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/0.3292, allocations: 18.66 kB / 432.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.178e-05/0.3293, allocations: 18.56 kB / 432.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3293, allocations: 2.875 kB / 432.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3293, allocations: 0 / 432.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3293, allocations: 2.812 kB / 432.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.3295, allocations: 205.5 kB / 432.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3295, allocations: 0 / 432.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.3296, allocations: 21.77 kB / 432.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.3296, allocations: 0 / 432.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3297, allocations: 2.906 kB / 432.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3297, allocations: 11.94 kB / 432.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3297, allocations: 0 / 432.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003367/0.33, allocations: 233.1 kB / 432.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.3301, allocations: 83.95 kB / 432.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.3301, allocations: 10.41 kB / 432.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.3302, allocations: 2.844 kB / 432.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.3303, allocations: 10.42 kB / 432.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.3303, allocations: 2.875 kB / 432.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.645e-05/0.3304, allocations: 111.3 kB / 433 MB, free: 36.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.3304, allocations: 0 / 433 MB, free: 36.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.3306, allocations: 25 kB / 433 MB, free: 36.62 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 9.665e-05/0.3307, allocations: 97.52 kB / 433.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002456/0.331, allocations: 73.08 kB / 433.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.331, allocations: 0 / 433.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.881e-05/0.3311, allocations: 36.67 kB / 433.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.3315, allocations: 20.2 kB / 433.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005348/0.3321, allocations: 284.5 kB / 433.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.3322, allocations: 0.7063 MB / 434.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.273e-05/0.3323, allocations: 9.688 kB / 434.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.3323, allocations: 17.25 kB / 434.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3324, allocations: 0 / 434.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of Templates: time 0.003313/0.3357, allocations: 0.9074 MB / 435.2 MB, free: 35.44 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