Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.0008962/0.0008965, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009542/0.0009542, allocations: 172.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1655/0.1655, allocations: 16.75 MB / 308.8 MB, free: 15.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002574, allocations: 12 kB / 376.2 MB, free: 1.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2109, allocations: 54.56 MB / 430.8 MB, free: 39.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.001371/0.2123, allocations: 1.527 MB / 432.3 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002641/0.2126, allocations: 159.6 kB / 432.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.419e-05/0.2127, allocations: 6.719 kB / 432.5 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.2128, allocations: 17.98 kB / 432.5 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.2129, allocations: 19.92 kB / 432.5 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.272e-05/0.213, allocations: 40.11 kB / 432.6 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.2132, allocations: 115.2 kB / 432.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2133, allocations: 51.8 kB / 432.7 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.163e-05/0.2133, allocations: 36.69 kB / 432.8 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.336e-05/0.2134, allocations: 37.77 kB / 432.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.2134, allocations: 2.906 kB / 432.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.201e-05/0.2135, allocations: 2.969 kB / 432.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.866e-05/0.2135, allocations: 17.88 kB / 432.8 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.2135, allocations: 61.19 kB / 432.9 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.677e-05/0.2136, allocations: 70.23 kB / 433 MB, free: 39.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2136, allocations: 0 / 433 MB, free: 39.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2136, allocations: 0 / 433 MB, free: 39.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2136, allocations: 0 / 433 MB, free: 39.24 MB / 350.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.0003368/0.214, allocations: 405.8 kB / 433.4 MB, free: 38.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.803e-05/0.214, allocations: 8.906 kB / 433.4 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.2141, allocations: 20.81 kB / 433.4 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.2142, allocations: 221.1 kB / 433.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.2142, allocations: 9.219 kB / 433.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.684e-05/0.2143, allocations: 9.656 kB / 433.6 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002186/0.2145, allocations: 143.7 kB / 433.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.2145, allocations: 4 kB / 433.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.2145, allocations: 6.406 kB / 433.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2145, allocations: 3.156 kB / 433.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.2147, allocations: 66.97 kB / 433.8 MB, free: 38.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004695/0.2152, allocations: 0.6069 MB / 434.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.2154, allocations: 110 kB / 434.5 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.953e-05/0.2155, allocations: 50.22 kB / 434.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.2156, allocations: 5.969 kB / 434.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.028e-05/0.2156, allocations: 32.25 kB / 434.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.2156, allocations: 0 / 434.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003245/0.2159, allocations: 128.3 kB / 434.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.2159, allocations: 109.5 kB / 434.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.213e-05/0.216, allocations: 150.2 kB / 435 MB, free: 37.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/0.216, allocations: 28.95 kB / 435 MB, free: 37.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.2161, allocations: 115.3 kB / 435.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.2161, allocations: 29.72 kB / 435.2 MB, free: 37.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.2161, allocations: 16.88 kB / 435.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.419e-05/0.2162, allocations: 324.7 kB / 435.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-05/0.2163, allocations: 24.67 kB / 435.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.504e-05/0.2164, allocations: 70.75 kB / 435.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.2165, allocations: 99.86 kB / 435.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2165, allocations: 4 kB / 435.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002186/0.2168, allocations: 122.6 kB / 435.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.2168, allocations: 9.406 kB / 435.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.2168, allocations: 10.66 kB / 435.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.2168, allocations: 0 / 435.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.2169, allocations: 28.08 kB / 435.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.2169, allocations: 6.625 kB / 435.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.446e-05/0.217, allocations: 9.25 kB / 435.9 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.217, allocations: 2.719 kB / 435.9 MB, free: 36.95 MB / 350.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 5.888e-05/0.2171, allocations: 130.3 kB / 436 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.2171, allocations: 10.91 kB / 436 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.2172, allocations: 17.28 kB / 436 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2172, allocations: 2.75 kB / 436.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.2172, allocations: 4.312 kB / 436.1 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2172, allocations: 2.906 kB / 436.1 MB, free: 36.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.2173, allocations: 213.5 kB / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2173, allocations: 2.844 kB / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.2175, allocations: 14.38 kB / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2175, allocations: 2.906 kB / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.2175, allocations: 0 / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2175, allocations: 6.719 kB / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2175, allocations: 0 / 436.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.2178, allocations: 242.2 kB / 436.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.14e-05/0.2178, allocations: 84.05 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.2178, allocations: 2.969 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.211e-05/0.2179, allocations: 13.52 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.042e-05/0.218, allocations: 2.938 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.218, allocations: 2.875 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.049e-05/0.218, allocations: 116.9 kB / 436.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.218, allocations: 0 / 436.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002423/0.2183, allocations: 18.62 kB / 436.8 MB, free: 36.27 MB / 350.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.152e-05/0.2183, allocations: 100 kB / 436.9 MB, free: 36.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.2186, allocations: 78.88 kB / 436.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2186, allocations: 3.625 kB / 436.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.42e-05/0.2187, allocations: 27.12 kB / 437 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.219, allocations: 27.7 kB / 437 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003755/0.2194, allocations: 328.1 kB / 437.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.193e-05/0.2195, allocations: 0.7027 MB / 438 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.2195, allocations: 13.25 kB / 438 MB, free: 35.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2195, allocations: 0 / 438 MB, free: 35.21 MB / 350.1 MB Notification: Performance of Templates: time 0.002191/0.2217, allocations: 1.391 MB / 439.4 MB, free: 35.09 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches