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.001394/0.001394, allocations: 108.4 kB / 16.53 MB, free: 6.668 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.001563/0.001563, allocations: 198.5 kB / 17.45 MB, free: 6.039 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.348/1.348, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06293/0.06293, allocations: 14.18 MB / 284.8 MB, free: 14.14 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.001471/0.001471, allocations: 67.91 kB / 347.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2078, allocations: 50.12 MB / 397.9 MB, free: 48.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002352/0.2102, allocations: 1.872 MB / 399.7 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002522/0.2105, allocations: 171.1 kB / 399.9 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.934e-05/0.2106, allocations: 7.406 kB / 399.9 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.2107, allocations: 17.08 kB / 399.9 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.2108, allocations: 23.14 kB / 400 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.36e-05/0.2109, allocations: 37.11 kB / 400 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.2111, allocations: 110 kB / 400.1 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2112, allocations: 53.3 kB / 400.2 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.718e-05/0.2112, allocations: 44.59 kB / 400.2 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.434e-05/0.2113, allocations: 41.66 kB / 400.2 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.2113, allocations: 4.406 kB / 400.2 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.686e-05/0.2114, allocations: 9.25 kB / 400.3 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.269e-05/0.2114, allocations: 19.28 kB / 400.3 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.956e-05/0.2114, allocations: 49.86 kB / 400.3 MB, free: 46.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.526e-05/0.2115, allocations: 70.45 kB / 400.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2115, allocations: 0 / 400.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2115, allocations: 0 / 400.4 MB, free: 46.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.2116, allocations: 0 / 400.4 MB, free: 46.61 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.000426/0.212, allocations: 423.6 kB / 400.8 MB, free: 46.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.212, allocations: 13.25 kB / 400.8 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.2121, allocations: 14.97 kB / 400.8 MB, free: 46.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.2122, allocations: 208.6 kB / 401 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.2123, allocations: 8.719 kB / 401 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.741e-05/0.2123, allocations: 14.81 kB / 401.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.2125, allocations: 139 kB / 401.2 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2125, allocations: 4 kB / 401.2 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.2126, allocations: 9.406 kB / 401.2 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.2126, allocations: 2.719 kB / 401.2 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.2128, allocations: 67.14 kB / 401.3 MB, free: 45.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005367/0.2133, allocations: 0.6036 MB / 401.9 MB, free: 45.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.2136, allocations: 110.6 kB / 402 MB, free: 45.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.53e-05/0.2137, allocations: 42.59 kB / 402 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2137, allocations: 5.094 kB / 402 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.2137, allocations: 31.72 kB / 402.1 MB, free: 44.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2137, allocations: 5.125 kB / 402.1 MB, free: 44.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003419/0.2141, allocations: 113.7 kB / 402.2 MB, free: 44.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.2141, allocations: 103.8 kB / 402.3 MB, free: 44.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.672e-05/0.2142, allocations: 151.1 kB / 402.4 MB, free: 44.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.2142, allocations: 30.89 kB / 402.5 MB, free: 44.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.2143, allocations: 123.3 kB / 402.6 MB, free: 44.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.2143, allocations: 34.02 kB / 402.6 MB, free: 44.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.2143, allocations: 26.02 kB / 402.6 MB, free: 44.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.265e-05/0.2144, allocations: 321.2 kB / 402.9 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.435e-05/0.2145, allocations: 25.58 kB / 403 MB, free: 44.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.194e-05/0.2146, allocations: 67.34 kB / 403 MB, free: 44.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.2148, allocations: 92.84 kB / 403.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2148, allocations: 5.406 kB / 403.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002319/0.215, allocations: 127.1 kB / 403.3 MB, free: 43.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.215, allocations: 5.188 kB / 403.3 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.215, allocations: 1.156 kB / 403.3 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.215, allocations: 2.344 kB / 403.3 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.2152, allocations: 27.27 kB / 403.3 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.2152, allocations: 6.797 kB / 403.3 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.805e-05/0.2153, allocations: 9.312 kB / 403.3 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.2153, allocations: 11.72 kB / 403.3 MB, free: 43.86 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.585e-05/0.2154, allocations: 128.4 kB / 403.4 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.2154, allocations: 13.22 kB / 403.5 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/0.2154, allocations: 14.92 kB / 403.5 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.2155, allocations: 1.281 kB / 403.5 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2155, allocations: 5.344 kB / 403.5 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.2155, allocations: 0 / 403.5 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.2156, allocations: 216.6 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2156, allocations: 1.312 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.2158, allocations: 16.52 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2158, allocations: 5.109 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.2158, allocations: 1.344 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2158, allocations: 1.156 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2158, allocations: 1.25 kB / 403.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.2168, allocations: 1.223 MB / 404.9 MB, free: 42.24 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.39e-05/0.2168, allocations: 84.3 kB / 405 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.2169, allocations: 2.188 kB / 405 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.217, allocations: 7.25 kB / 405 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/0.217, allocations: 11.23 kB / 405 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.217, allocations: 2.344 kB / 405 MB, free: 42.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.566e-05/0.2171, allocations: 113.3 kB / 405.2 MB, free: 42.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2171, allocations: 0 / 405.2 MB, free: 42.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003308/0.2174, allocations: 26.41 kB / 405.2 MB, free: 42.03 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.663e-05/0.2175, allocations: 96.88 kB / 405.3 MB, free: 41.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002122/0.2177, allocations: 70.89 kB / 405.3 MB, free: 41.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.2177, allocations: 0 / 405.3 MB, free: 41.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.446e-05/0.2178, allocations: 29.8 kB / 405.4 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.2182, allocations: 34.69 kB / 405.4 MB, free: 41.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004669/0.2187, allocations: 428.3 kB / 405.8 MB, free: 41.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.2188, allocations: 0.7064 MB / 406.5 MB, free: 40.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.593e-05/0.2188, allocations: 13.81 kB / 406.5 MB, free: 40.76 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2189, allocations: 0 / 406.5 MB, free: 40.76 MB / 318.1 MB Notification: Performance of Templates: time 0.002571/0.2214, allocations: 1.409 MB / 408 MB, free: 40.03 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","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches