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.001189/0.001189, allocations: 110.3 kB / 16.37 MB, free: 6.012 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.001217/0.001217, allocations: 194.6 kB / 17.31 MB, free: 5.613 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.373/1.373, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06028/0.06028, allocations: 14.17 MB / 284.7 MB, free: 13.88 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.001546/0.001547, allocations: 67.89 kB / 348.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2171, allocations: 50.11 MB / 398.8 MB, free: 48.71 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002672/0.2198, allocations: 1.829 MB / 400.6 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000319/0.2202, allocations: 175.2 kB / 400.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.064e-05/0.2203, allocations: 6.781 kB / 400.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.2204, allocations: 21.2 kB / 400.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.2205, allocations: 18.55 kB / 400.8 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.502e-05/0.2206, allocations: 53.59 kB / 400.9 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.2208, allocations: 118.2 kB / 401 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.2209, allocations: 50.67 kB / 401 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.211e-05/0.221, allocations: 51.81 kB / 401.1 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.179e-05/0.2211, allocations: 42.34 kB / 401.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.2211, allocations: 8.094 kB / 401.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.604e-05/0.2211, allocations: 8.906 kB / 401.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.132e-05/0.2211, allocations: 26.84 kB / 401.2 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.92e-05/0.2212, allocations: 45.77 kB / 401.2 MB, free: 46.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.2213, allocations: 117.2 kB / 401.3 MB, free: 46.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.2213, allocations: 1.25 kB / 401.3 MB, free: 46.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2213, allocations: 0 / 401.3 MB, free: 46.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.2213, allocations: 0 / 401.3 MB, free: 46.74 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.0004166/0.2218, allocations: 416.5 kB / 401.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2218, allocations: 13.22 kB / 401.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.2219, allocations: 15.72 kB / 401.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.2221, allocations: 229.3 kB / 402 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.2221, allocations: 4.594 kB / 402 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.165e-05/0.2221, allocations: 18.55 kB / 402 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.2223, allocations: 136.7 kB / 402.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.2224, allocations: 1.406 kB / 402.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.2224, allocations: 9.25 kB / 402.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.2224, allocations: 1.906 kB / 402.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.2226, allocations: 62.97 kB / 402.2 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005244/0.2231, allocations: 0.5996 MB / 402.8 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002329/0.2233, allocations: 105.5 kB / 402.9 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.093e-05/0.2234, allocations: 51.62 kB / 403 MB, free: 45.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.2235, allocations: 1.156 kB / 403 MB, free: 45.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.232e-05/0.2235, allocations: 31.91 kB / 403 MB, free: 45.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2235, allocations: 0 / 403 MB, free: 45.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003443/0.2238, allocations: 122.8 kB / 403.1 MB, free: 45.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.2239, allocations: 108 kB / 403.2 MB, free: 44.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.98e-05/0.224, allocations: 154.8 kB / 403.4 MB, free: 44.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.224, allocations: 26.92 kB / 403.4 MB, free: 44.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.555e-05/0.2241, allocations: 118.1 kB / 403.5 MB, free: 44.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.2241, allocations: 23.62 kB / 403.5 MB, free: 44.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.2241, allocations: 29.64 kB / 403.6 MB, free: 44.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.889e-05/0.2242, allocations: 321.4 kB / 403.9 MB, free: 44.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.187e-05/0.2243, allocations: 33.2 kB / 403.9 MB, free: 44.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.613e-05/0.2244, allocations: 63.09 kB / 404 MB, free: 44.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001563/0.2245, allocations: 101.1 kB / 404.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2245, allocations: 1.094 kB / 404.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002237/0.2248, allocations: 122.3 kB / 404.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2248, allocations: 6.219 kB / 404.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2248, allocations: 5.031 kB / 404.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.2248, allocations: 2.062 kB / 404.2 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.2249, allocations: 27.75 kB / 404.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.225, allocations: 2.469 kB / 404.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.745e-05/0.225, allocations: 8.875 kB / 404.2 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.2251, allocations: 4.031 kB / 404.2 MB, free: 44 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.428e-05/0.2251, allocations: 136.3 kB / 404.4 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.268e-05/0.2252, allocations: 8.688 kB / 404.4 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.2252, allocations: 15.55 kB / 404.4 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2252, allocations: 1.406 kB / 404.4 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2252, allocations: 1.094 kB / 404.4 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2252, allocations: 1.281 kB / 404.4 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.2254, allocations: 215.8 kB / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2254, allocations: 1.281 kB / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.2255, allocations: 16.92 kB / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2255, allocations: 1.469 kB / 404.6 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.2255, allocations: 9.234 kB / 404.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2255, allocations: 0 / 404.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.2256, allocations: 5.531 kB / 404.6 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.2258, allocations: 236.4 kB / 404.9 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.755e-05/0.2259, allocations: 92.5 kB / 405 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.2259, allocations: 1.188 kB / 405 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.203e-05/0.226, allocations: 3.406 kB / 405 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.2261, allocations: 7.828 kB / 405 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.2261, allocations: 1.375 kB / 405 MB, free: 43.28 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.117e-05/0.2261, allocations: 118 kB / 405.1 MB, free: 43.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2261, allocations: 1.062 kB / 405.1 MB, free: 43.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002478/0.2264, allocations: 21.53 kB / 405.1 MB, free: 43.18 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.741e-05/0.2265, allocations: 100.6 kB / 405.2 MB, free: 43.08 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002292/0.2267, allocations: 70.88 kB / 405.3 MB, free: 43.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2267, allocations: 0 / 405.3 MB, free: 43.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.608e-05/0.2268, allocations: 35.02 kB / 405.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.2271, allocations: 23 kB / 405.3 MB, free: 43.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004104/0.2275, allocations: 240.9 kB / 405.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.2277, allocations: 0.7015 MB / 406.3 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.643e-05/0.2277, allocations: 15.11 kB / 406.3 MB, free: 42.1 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.053e-05/0.2278, allocations: 12.03 kB / 406.3 MB, free: 42.09 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2278, allocations: 0 / 406.3 MB, free: 42.09 MB / 318.1 MB Notification: Performance of Templates: time 0.003121/0.2309, allocations: 0.99 MB / 407.3 MB, free: 41.59 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 -s gbode -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