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.0009062/0.0009063, allocations: 88.86 kB / 16.67 MB, free: 6.602 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.001075/0.001075, allocations: 180.5 kB / 17.58 MB, free: 6.188 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.222/1.222, allocations: 205.4 MB / 223.8 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06188/0.06188, allocations: 14.16 MB / 286.2 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.0004566/0.0004567, allocations: 15.98 kB / 350.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2121, allocations: 51.1 MB / 401.2 MB, free: 48.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.001989/0.2141, allocations: 1.529 MB / 402.8 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003607/0.2145, allocations: 171.4 kB / 402.9 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2146, allocations: 7.188 kB / 402.9 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.2147, allocations: 19.86 kB / 403 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.2149, allocations: 18.55 kB / 403 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001035/0.215, allocations: 39.05 kB / 403 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.2152, allocations: 109.7 kB / 403.1 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.2154, allocations: 44.64 kB / 403.2 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.257e-05/0.2154, allocations: 38.48 kB / 403.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.365e-05/0.2155, allocations: 40.73 kB / 403.2 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.2156, allocations: 2.281 kB / 403.2 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.619e-05/0.2156, allocations: 2.594 kB / 403.2 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.401e-05/0.2156, allocations: 14.61 kB / 403.3 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.062e-05/0.2157, allocations: 66.08 kB / 403.3 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.2158, allocations: 69.67 kB / 403.4 MB, free: 46.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.2158, allocations: 1.375 kB / 403.4 MB, free: 46.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2158, allocations: 0 / 403.4 MB, free: 46.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.2158, allocations: 0 / 403.4 MB, free: 46.98 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.000484/0.2163, allocations: 399.5 kB / 403.8 MB, free: 46.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2164, allocations: 9.594 kB / 403.8 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.094e-05/0.2164, allocations: 16 kB / 403.8 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.2167, allocations: 223.6 kB / 404 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.2167, allocations: 4.469 kB / 404 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.2167, allocations: 11.06 kB / 404 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.2171, allocations: 140.6 kB / 404.2 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2171, allocations: 1.031 kB / 404.2 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.2171, allocations: 5.094 kB / 404.2 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.2172, allocations: 2.75 kB / 404.2 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.2174, allocations: 74.83 kB / 404.3 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000648/0.2181, allocations: 0.6044 MB / 404.9 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.2184, allocations: 108.1 kB / 405 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.2186, allocations: 60.77 kB / 405 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.2186, allocations: 1.156 kB / 405 MB, free: 45.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2187, allocations: 31.72 kB / 405.1 MB, free: 45.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.2187, allocations: 1.094 kB / 405.1 MB, free: 45.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005643/0.2193, allocations: 130.9 kB / 405.2 MB, free: 45.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.2193, allocations: 108.8 kB / 405.3 MB, free: 45.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.2195, allocations: 150.7 kB / 405.4 MB, free: 45.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.2195, allocations: 26.95 kB / 405.5 MB, free: 44.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.037e-05/0.2196, allocations: 122.7 kB / 405.6 MB, free: 44.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.2196, allocations: 25.94 kB / 405.6 MB, free: 44.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.2197, allocations: 21.61 kB / 405.6 MB, free: 44.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.107e-05/0.2197, allocations: 321.1 kB / 406 MB, free: 44.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.2199, allocations: 26.72 kB / 406 MB, free: 44.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.22, allocations: 65.59 kB / 406 MB, free: 44.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.2203, allocations: 105.5 kB / 406.1 MB, free: 44.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2203, allocations: 4 kB / 406.2 MB, free: 44.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003556/0.2206, allocations: 118.9 kB / 406.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.2207, allocations: 6.375 kB / 406.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2207, allocations: 1.469 kB / 406.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.2207, allocations: 2.188 kB / 406.3 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.2209, allocations: 32.11 kB / 406.3 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.2209, allocations: 2.094 kB / 406.3 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.2211, allocations: 13.8 kB / 406.3 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.2211, allocations: 3.594 kB / 406.3 MB, free: 44.25 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 8.624e-05/0.2212, allocations: 136.4 kB / 406.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/0.2213, allocations: 13.22 kB / 406.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.185e-05/0.2213, allocations: 19.3 kB / 406.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2213, allocations: 1.031 kB / 406.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2213, allocations: 5.031 kB / 406.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2214, allocations: 1.094 kB / 406.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.2216, allocations: 208.9 kB / 406.7 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2217, allocations: 1.094 kB / 406.7 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.2218, allocations: 16.83 kB / 406.7 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.2219, allocations: 1.219 kB / 406.7 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.2219, allocations: 5.5 kB / 406.7 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.2219, allocations: 5.188 kB / 406.7 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2219, allocations: 1.031 kB / 406.7 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.2231, allocations: 1.221 MB / 408 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.085e-05/0.2232, allocations: 83.86 kB / 408 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.2232, allocations: 6.344 kB / 408 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.671e-05/0.2233, allocations: 7.656 kB / 408.1 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.505e-05/0.2233, allocations: 11.92 kB / 408.1 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.2234, allocations: 2.188 kB / 408.1 MB, free: 42.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.786e-05/0.2234, allocations: 119.6 kB / 408.2 MB, free: 42.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2234, allocations: 0 / 408.2 MB, free: 42.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003464/0.2238, allocations: 25.81 kB / 408.2 MB, free: 42.43 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 5.693e-05/0.2238, allocations: 96.38 kB / 408.3 MB, free: 42.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002185/0.2241, allocations: 69.78 kB / 408.4 MB, free: 42.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2241, allocations: 5.375 kB / 408.4 MB, free: 42.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.302e-05/0.2242, allocations: 34.97 kB / 408.4 MB, free: 42.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.2245, allocations: 26.2 kB / 408.4 MB, free: 42.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004459/0.225, allocations: 448.4 kB / 408.9 MB, free: 41.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.2251, allocations: 0.7069 MB / 409.6 MB, free: 41.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.594e-05/0.2251, allocations: 14.5 kB / 409.6 MB, free: 41.14 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2251, allocations: 3.938 kB / 409.6 MB, free: 41.13 MB / 318.1 MB Notification: Performance of Templates: time 0.002465/0.2276, allocations: 1.405 MB / 411 MB, free: 40.41 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