Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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_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_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.00151/0.00151, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001552/0.001552, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.511/1.511, allocations: 205.1 MB / 223.1 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.06473/0.06473, allocations: 14.17 MB / 284.6 MB, free: 13.92 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.001537/0.001537, allocations: 71.91 kB / 347.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1914, allocations: 50.13 MB / 398 MB, free: 48.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002487/0.1939, allocations: 1.818 MB / 399.8 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003284/0.1943, allocations: 171.2 kB / 400 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/0.1944, allocations: 6.812 kB / 400 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.1945, allocations: 25.14 kB / 400 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.1946, allocations: 22.52 kB / 400 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.592e-05/0.1947, allocations: 42.7 kB / 400.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.1949, allocations: 122.6 kB / 400.2 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.195, allocations: 50.84 kB / 400.2 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.949e-05/0.1951, allocations: 53.16 kB / 400.3 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.257e-05/0.1952, allocations: 42.34 kB / 400.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.1952, allocations: 8.438 kB / 400.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.914e-05/0.1952, allocations: 12.88 kB / 400.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.473e-05/0.1953, allocations: 26.55 kB / 400.4 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.1953, allocations: 46.08 kB / 400.4 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.1954, allocations: 99.53 kB / 400.5 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1954, allocations: 5.188 kB / 400.5 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1954, allocations: 0 / 400.5 MB, free: 46.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1955, allocations: 0 / 400.5 MB, free: 46.54 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.000422/0.1959, allocations: 429.5 kB / 400.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.1959, allocations: 13.44 kB / 400.9 MB, free: 46.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.196, allocations: 15.19 kB / 401 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1961, allocations: 204.2 kB / 401.2 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.1962, allocations: 13.31 kB / 401.2 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.1962, allocations: 14.03 kB / 401.2 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.1964, allocations: 133.1 kB / 401.3 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1965, allocations: 5.125 kB / 401.3 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.1965, allocations: 5.062 kB / 401.3 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.1965, allocations: 2.219 kB / 401.3 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.1967, allocations: 71.34 kB / 401.4 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.1972, allocations: 0.604 MB / 402 MB, free: 45.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.1974, allocations: 106.7 kB / 402.1 MB, free: 44.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.365e-05/0.1975, allocations: 46.2 kB / 402.1 MB, free: 44.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1976, allocations: 5.344 kB / 402.2 MB, free: 44.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.162e-05/0.1976, allocations: 31.91 kB / 402.2 MB, free: 44.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.1976, allocations: 8.719 kB / 402.2 MB, free: 44.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003486/0.198, allocations: 109.9 kB / 402.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.198, allocations: 104.1 kB / 402.4 MB, free: 44.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.373e-05/0.1981, allocations: 159.2 kB / 402.6 MB, free: 44.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.1981, allocations: 31.11 kB / 402.6 MB, free: 44.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.1982, allocations: 118.5 kB / 402.7 MB, free: 44.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.1982, allocations: 27.02 kB / 402.7 MB, free: 44.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.1982, allocations: 21.5 kB / 402.8 MB, free: 44.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.763e-05/0.1983, allocations: 321.2 kB / 403.1 MB, free: 44.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.939e-05/0.1984, allocations: 25.08 kB / 403.1 MB, free: 44.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.363e-05/0.1985, allocations: 76.2 kB / 403.2 MB, free: 43.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.1987, allocations: 96.5 kB / 403.3 MB, free: 43.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1987, allocations: 5.438 kB / 403.3 MB, free: 43.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002355/0.1989, allocations: 122.5 kB / 403.4 MB, free: 43.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.1989, allocations: 6.438 kB / 403.4 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1989, allocations: 1.281 kB / 403.4 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.199, allocations: 1.375 kB / 403.4 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.1991, allocations: 23.17 kB / 403.4 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1991, allocations: 10.34 kB / 403.4 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.02e-05/0.1992, allocations: 9.078 kB / 403.4 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.1992, allocations: 7.906 kB / 403.4 MB, free: 43.79 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.363e-05/0.1993, allocations: 124.2 kB / 403.6 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.1993, allocations: 8.781 kB / 403.6 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.1994, allocations: 19.56 kB / 403.6 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1994, allocations: 2.094 kB / 403.6 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1994, allocations: 5.172 kB / 403.6 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1994, allocations: 1.062 kB / 403.6 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.1996, allocations: 220.4 kB / 403.8 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1996, allocations: 0 / 403.8 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1997, allocations: 17.02 kB / 403.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1997, allocations: 5.344 kB / 403.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.1997, allocations: 1.531 kB / 403.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1997, allocations: 5 kB / 403.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1997, allocations: 1.406 kB / 403.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.2, allocations: 227.5 kB / 404.1 MB, free: 43.19 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.568e-05/0.2001, allocations: 88.55 kB / 404.2 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.2001, allocations: 1.219 kB / 404.2 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.843e-05/0.2002, allocations: 11.64 kB / 404.2 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.2003, allocations: 11.48 kB / 404.2 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.2003, allocations: 6.688 kB / 404.2 MB, free: 43.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.599e-05/0.2003, allocations: 113.2 kB / 404.3 MB, free: 42.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2003, allocations: 1.25 kB / 404.3 MB, free: 42.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.2006, allocations: 17.38 kB / 404.3 MB, free: 42.97 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 7.027e-05/0.2007, allocations: 100.4 kB / 404.4 MB, free: 42.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.2009, allocations: 74.72 kB / 404.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2009, allocations: 5.406 kB / 404.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.916e-05/0.201, allocations: 30.08 kB / 404.5 MB, free: 42.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.2014, allocations: 26.73 kB / 404.5 MB, free: 42.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004331/0.2018, allocations: 279.9 kB / 404.8 MB, free: 42.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.202, allocations: 0.7016 MB / 405.5 MB, free: 41.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.617e-05/0.202, allocations: 17.94 kB / 405.5 MB, free: 41.85 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.202, allocations: 0 / 405.5 MB, free: 41.85 MB / 318.1 MB Notification: Performance of Templates: time 0.002609/0.2046, allocations: 1.403 MB / 406.9 MB, free: 41.12 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches