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.005077/0.005077, allocations: 104.1 kB / 15.73 MB, free: 5.992 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.001213/0.001213, allocations: 187 kB / 16.67 MB, free: 5.93 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1931/0.1931, allocations: 16.78 MB / 307.3 MB, free: 14.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 62.31 kB / 428.7 MB, free: 35.99 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07705/0.07823, allocations: 53.57 MB / 482.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002215/0.08047, allocations: 1.83 MB / 484.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003052/0.0808, allocations: 170.9 kB / 484.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.0809, allocations: 6.688 kB / 484.2 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.08104, allocations: 26.48 kB / 484.3 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.08119, allocations: 30.53 kB / 484.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.18e-05/0.08128, allocations: 37.45 kB / 484.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.08142, allocations: 122.4 kB / 484.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.08158, allocations: 43.34 kB / 484.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.114e-05/0.08164, allocations: 52.22 kB / 484.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.982e-05/0.08172, allocations: 46.77 kB / 484.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.08175, allocations: 8.25 kB / 484.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.405e-05/0.08177, allocations: 12.25 kB / 484.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.229e-05/0.08179, allocations: 22.67 kB / 484.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.672e-05/0.08183, allocations: 50.67 kB / 484.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.08196, allocations: 109.7 kB / 484.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.08197, allocations: 0 / 484.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08197, allocations: 3.938 kB / 484.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.08198, allocations: 0 / 484.8 MB, free: 7.031 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.0003811/0.08237, allocations: 419.8 kB / 485.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.0824, allocations: 17.56 kB / 485.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.08245, allocations: 15.7 kB / 485.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.08265, allocations: 225.8 kB / 485.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.08267, allocations: 8.688 kB / 485.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.0827, allocations: 11.25 kB / 485.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.08291, allocations: 140 kB / 485.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.08292, allocations: 1.375 kB / 485.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.08294, allocations: 5.375 kB / 485.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.08295, allocations: 2.75 kB / 485.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.08312, allocations: 70.48 kB / 485.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.08362, allocations: 0.599 MB / 486.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.08386, allocations: 118.4 kB / 486.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.394e-05/0.08395, allocations: 38.5 kB / 486.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.08398, allocations: 4.656 kB / 486.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.221e-05/0.084, allocations: 33.22 kB / 486.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.084, allocations: 0 / 486.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003201/0.08433, allocations: 117.8 kB / 486.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.08436, allocations: 108.3 kB / 486.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.237e-05/0.08446, allocations: 144.7 kB / 486.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.08447, allocations: 31.17 kB / 486.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.08452, allocations: 130.6 kB / 487 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.08454, allocations: 18.41 kB / 487 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.08459, allocations: 30.98 kB / 487.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.598e-05/0.08463, allocations: 320.7 kB / 487.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.757e-05/0.08471, allocations: 24.98 kB / 487.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.342e-05/0.0848, allocations: 63.47 kB / 487.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.08496, allocations: 96.78 kB / 487.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.08497, allocations: 5.281 kB / 487.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002322/0.08521, allocations: 130.4 kB / 487.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.08523, allocations: 6.938 kB / 487.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.08524, allocations: 1.406 kB / 487.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.08525, allocations: 1.406 kB / 487.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.08538, allocations: 23.55 kB / 487.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.08539, allocations: 5.266 kB / 487.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.207e-05/0.08547, allocations: 14.12 kB / 487.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.08549, allocations: 8.188 kB / 487.7 MB, free: 4.273 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 6.135e-05/0.08555, allocations: 124.2 kB / 487.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.08559, allocations: 12.78 kB / 487.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.744e-05/0.08562, allocations: 14.73 kB / 487.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.08563, allocations: 7.25 kB / 487.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.08564, allocations: 0 / 487.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.08564, allocations: 5.156 kB / 487.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.0858, allocations: 208 kB / 488.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.08581, allocations: 5.312 kB / 488.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.08591, allocations: 15.7 kB / 488.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.08592, allocations: 1.562 kB / 488.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.08594, allocations: 5.391 kB / 488.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.08594, allocations: 1.281 kB / 488.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.08595, allocations: 1.375 kB / 488.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.08623, allocations: 235.8 kB / 488.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.08626, allocations: 87.7 kB / 488.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.08628, allocations: 6.734 kB / 488.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.08638, allocations: 6.75 kB / 488.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.08643, allocations: 6.734 kB / 488.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.08644, allocations: 2.75 kB / 488.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.33e-05/0.0865, allocations: 117.8 kB / 488.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0865, allocations: 0 / 488.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.08675, allocations: 17.66 kB / 488.6 MB, free: 3.461 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 6.711e-05/0.08682, allocations: 104.9 kB / 488.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.08704, allocations: 67.62 kB / 488.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.08705, allocations: 0 / 488.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.181e-05/0.08713, allocations: 34.33 kB / 488.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.08744, allocations: 23.55 kB / 488.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003937/0.08784, allocations: 240 kB / 489.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.08795, allocations: 0.7112 MB / 489.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.08801, allocations: 9.891 kB / 489.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.014e-05/0.08805, allocations: 13 kB / 489.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.08805, allocations: 0 / 489.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of Templates: time 0.002885/0.09094, allocations: 1.009 MB / 490.8 MB, free: 1.629 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=50 -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