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.001211/0.001211, allocations: 106 kB / 16.41 MB, free: 6.379 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.001227/0.001228, allocations: 194.4 kB / 17.34 MB, free: 5.844 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.536/1.536, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06424/0.06424, allocations: 14.17 MB / 284.7 MB, free: 13.86 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.001464/0.001464, allocations: 67.75 kB / 399.3 MB, free: 42.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.08493, allocations: 50.13 MB / 449.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002888/0.08786, allocations: 1.831 MB / 451.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003736/0.08826, allocations: 167.5 kB / 451.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.08837, allocations: 4 kB / 451.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.08852, allocations: 23.73 kB / 451.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.08868, allocations: 23.8 kB / 451.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.684e-05/0.08879, allocations: 39.95 kB / 451.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.08895, allocations: 127.6 kB / 451.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.0891, allocations: 65.28 kB / 451.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.431e-05/0.08916, allocations: 39.86 kB / 451.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.43e-05/0.08927, allocations: 47.7 kB / 451.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.0893, allocations: 8 kB / 451.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.478e-05/0.08932, allocations: 12 kB / 451.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.08935, allocations: 23.86 kB / 451.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.794e-05/0.08941, allocations: 51.67 kB / 451.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.08957, allocations: 103.5 kB / 451.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.08958, allocations: 8 kB / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.08959, allocations: 3.984 kB / 452 MB, free: 9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.0896, allocations: 0 / 452 MB, free: 9 MB / 334.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.0005245/0.09013, allocations: 423 kB / 452.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.09017, allocations: 12.03 kB / 452.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.222e-05/0.09022, allocations: 12.84 kB / 452.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.09051, allocations: 216.1 kB / 452.6 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.09054, allocations: 12.56 kB / 452.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.09057, allocations: 8.375 kB / 452.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.09085, allocations: 136.3 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.09087, allocations: 0 / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.09089, allocations: 4 kB / 452.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.0909, allocations: 4 kB / 452.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001971/0.0911, allocations: 67.83 kB / 452.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.09179, allocations: 0.6031 MB / 453.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.09207, allocations: 107.8 kB / 453.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.09219, allocations: 50.67 kB / 453.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.09221, allocations: 4 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.09224, allocations: 46.5 kB / 453.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.09225, allocations: 0 / 453.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003834/0.09264, allocations: 109.5 kB / 453.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.0927, allocations: 111 kB / 453.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.09287, allocations: 151.1 kB / 454 MB, free: 6.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.09289, allocations: 29.7 kB / 454 MB, free: 6.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.09297, allocations: 119.9 kB / 454.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.093, allocations: 27.73 kB / 454.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.09305, allocations: 21.72 kB / 454.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.74e-05/0.09315, allocations: 322.8 kB / 454.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.368e-05/0.09325, allocations: 27.98 kB / 454.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.09338, allocations: 77.91 kB / 454.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.09358, allocations: 97.03 kB / 454.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.09359, allocations: 0 / 454.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002594/0.09385, allocations: 117.5 kB / 454.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.09388, allocations: 8.156 kB / 454.8 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.09389, allocations: 4 kB / 454.8 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.09391, allocations: 4 kB / 454.8 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.09406, allocations: 19.98 kB / 454.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.09408, allocations: 7.938 kB / 454.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.552e-05/0.09417, allocations: 15.88 kB / 454.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.09419, allocations: 4 kB / 454.9 MB, free: 5.734 MB / 334.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 9.265e-05/0.09429, allocations: 129.7 kB / 455 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/0.09433, allocations: 11.95 kB / 455 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.09437, allocations: 16.31 kB / 455 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.09438, allocations: 0 / 455 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.09439, allocations: 7.984 kB / 455 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.0944, allocations: 7.922 kB / 455.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.09461, allocations: 205.6 kB / 455.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.09462, allocations: 320 / 455.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.09474, allocations: 23.92 kB / 455.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.09475, allocations: 0 / 455.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.09477, allocations: 4 kB / 455.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.09478, allocations: 4 kB / 455.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.09478, allocations: 0 / 455.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.09618, allocations: 1.364 MB / 456.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.09625, allocations: 89.08 kB / 456.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.09627, allocations: 7.938 kB / 456.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-05/0.09637, allocations: 8.094 kB / 456.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.09643, allocations: 7.984 kB / 456.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-06/0.09644, allocations: 4 kB / 456.8 MB, free: 3.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.775e-05/0.09652, allocations: 115.9 kB / 456.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09653, allocations: 0 / 456.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003416/0.09687, allocations: 27.95 kB / 456.9 MB, free: 3.484 MB / 334.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 0.0001092/0.09699, allocations: 91.25 kB / 457 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.09725, allocations: 75.78 kB / 457.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.09726, allocations: 0 / 457.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.563e-05/0.09736, allocations: 35.91 kB / 457.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.09769, allocations: 22.33 kB / 457.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006145/0.09831, allocations: 372.2 kB / 457.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.09861, allocations: 0.708 MB / 458.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.669e-05/0.09868, allocations: 16.81 kB / 458.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.72e-05/0.09873, allocations: 11.44 kB / 458.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09873, allocations: 0 / 458.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of Templates: time 0.003603/0.1023, allocations: 1.033 MB / 459.3 MB, free: 1.059 MB / 334.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=50 -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