Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_symb_jac_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_symb_jac_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.001459/0.001459, allocations: 107.2 kB / 16.95 MB, free: 6.18 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.001692/0.001692, allocations: 192.2 kB / 17.87 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06401/0.06401, allocations: 14.17 MB / 285.3 MB, free: 13.93 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 76.22 kB / 348.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1985, allocations: 50.13 MB / 398.6 MB, free: 48.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002531/0.2011, allocations: 1.812 MB / 400.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003331/0.2014, allocations: 179 kB / 400.6 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.62e-05/0.2015, allocations: 2.562 kB / 400.6 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.2017, allocations: 26.48 kB / 400.7 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.2018, allocations: 26.44 kB / 400.7 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.587e-05/0.2019, allocations: 41.36 kB / 400.7 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.2021, allocations: 119.1 kB / 400.8 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.2022, allocations: 59 kB / 400.9 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.068e-05/0.2023, allocations: 44.89 kB / 400.9 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.549e-05/0.2023, allocations: 50.58 kB / 401 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.2024, allocations: 8.5 kB / 401 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.967e-05/0.2024, allocations: 8.906 kB / 401 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.461e-05/0.2024, allocations: 18.17 kB / 401 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.2025, allocations: 50.23 kB / 401.1 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.2026, allocations: 108.5 kB / 401.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2026, allocations: 3.938 kB / 401.2 MB, free: 46.81 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2026, allocations: 0 / 401.2 MB, free: 46.81 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2026, allocations: 0 / 401.2 MB, free: 46.81 MB / 318.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.0004235/0.2031, allocations: 417.8 kB / 401.6 MB, free: 46.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2031, allocations: 9.688 kB / 401.6 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.2031, allocations: 15.5 kB / 401.6 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.2033, allocations: 220.1 kB / 401.8 MB, free: 46.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.2033, allocations: 3.969 kB / 401.8 MB, free: 46.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.2034, allocations: 15.16 kB / 401.9 MB, free: 46.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.2036, allocations: 137.3 kB / 402 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.2036, allocations: 3.938 kB / 402 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.2037, allocations: 6.375 kB / 402 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2037, allocations: 2.281 kB / 402 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/0.2039, allocations: 71.19 kB / 402.1 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005063/0.2044, allocations: 0.5995 MB / 402.7 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.2046, allocations: 110.6 kB / 402.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.424e-05/0.2047, allocations: 46.95 kB / 402.8 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.2048, allocations: 1.219 kB / 402.8 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.239e-05/0.2048, allocations: 39.84 kB / 402.9 MB, free: 45.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.2048, allocations: 0 / 402.9 MB, free: 45.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000351/0.2051, allocations: 114.3 kB / 403 MB, free: 45.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.2052, allocations: 104.2 kB / 403.1 MB, free: 44.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.966e-05/0.2053, allocations: 155.7 kB / 403.2 MB, free: 44.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.2053, allocations: 25.95 kB / 403.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.2054, allocations: 118.3 kB / 403.4 MB, free: 44.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.2054, allocations: 27.48 kB / 403.4 MB, free: 44.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/0.2054, allocations: 29.28 kB / 403.4 MB, free: 44.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.215e-05/0.2055, allocations: 321.5 kB / 403.7 MB, free: 44.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.752e-05/0.2056, allocations: 24.52 kB / 403.8 MB, free: 44.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.441e-05/0.2057, allocations: 72.67 kB / 403.8 MB, free: 44.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.2058, allocations: 105.2 kB / 403.9 MB, free: 44.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2059, allocations: 0 / 403.9 MB, free: 44.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002425/0.2061, allocations: 119.5 kB / 404.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.2061, allocations: 5.031 kB / 404.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2061, allocations: 2.562 kB / 404.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2062, allocations: 1.188 kB / 404.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.2063, allocations: 31.52 kB / 404.1 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2063, allocations: 2.188 kB / 404.1 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.084e-05/0.2064, allocations: 13.42 kB / 404.1 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.2064, allocations: 3.594 kB / 404.1 MB, free: 44.07 MB / 318.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.242e-05/0.2065, allocations: 128.1 kB / 404.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.2065, allocations: 8.906 kB / 404.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.801e-05/0.2066, allocations: 16.12 kB / 404.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2066, allocations: 1.469 kB / 404.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2066, allocations: 9.484 kB / 404.3 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2066, allocations: 0 / 404.3 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.2067, allocations: 212.3 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2068, allocations: 1.188 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.2069, allocations: 20.52 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2069, allocations: 1.25 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.2069, allocations: 1.031 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2069, allocations: 1.438 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2069, allocations: 1.25 kB / 404.5 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.208, allocations: 1.379 MB / 405.9 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.519e-05/0.208, allocations: 88.53 kB / 406 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.208, allocations: 6.031 kB / 406 MB, free: 42.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.803e-05/0.2081, allocations: 7.281 kB / 406 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.2082, allocations: 11.39 kB / 406 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.2082, allocations: 6.719 kB / 406 MB, free: 42.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.934e-05/0.2083, allocations: 110.3 kB / 406.1 MB, free: 42.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2083, allocations: 1.188 kB / 406.1 MB, free: 42.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003561/0.2086, allocations: 24.66 kB / 406.1 MB, free: 42.08 MB / 318.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.533e-05/0.2087, allocations: 97.91 kB / 406.2 MB, free: 41.99 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.2089, allocations: 67.25 kB / 406.3 MB, free: 41.96 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2089, allocations: 4.062 kB / 406.3 MB, free: 41.96 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.284e-05/0.209, allocations: 33.88 kB / 406.3 MB, free: 41.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.2094, allocations: 26.8 kB / 406.4 MB, free: 41.93 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.2099, allocations: 393.3 kB / 406.7 MB, free: 41.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.21, allocations: 0.7149 MB / 407.5 MB, free: 40.85 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.2101, allocations: 13.22 kB / 407.5 MB, free: 40.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2101, allocations: 3.938 kB / 407.5 MB, free: 40.84 MB / 318.1 MB Notification: Performance of Templates: time 0.002594/0.2127, allocations: 1.411 MB / 408.9 MB, free: 40.11 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches