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.005005/0.005005, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.001185/0.001185, allocations: 194 kB / 16.68 MB, free: 5.973 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.256/1.256, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1954/0.1954, allocations: 16.78 MB / 307.3 MB, free: 14.76 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 59.3 kB / 428.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08769/0.08884, allocations: 53.57 MB / 482.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.00233/0.0912, allocations: 1.826 MB / 484.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000322/0.09154, allocations: 164 kB / 484.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.397e-05/0.09164, allocations: 3.094 kB / 484.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.09178, allocations: 25.23 kB / 484.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.09193, allocations: 30.53 kB / 484.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.378e-05/0.09203, allocations: 42.7 kB / 484.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.09217, allocations: 122.2 kB / 484.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.09232, allocations: 53.88 kB / 484.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.11e-05/0.09237, allocations: 49.66 kB / 484.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.432e-05/0.09246, allocations: 41.41 kB / 484.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.09249, allocations: 12.25 kB / 484.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.579e-05/0.09251, allocations: 9.625 kB / 484.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.09254, allocations: 22.67 kB / 484.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.045e-05/0.09258, allocations: 53.23 kB / 484.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.09272, allocations: 105.6 kB / 484.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.09274, allocations: 0 / 484.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09274, allocations: 0 / 484.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.09275, allocations: 1.375 kB / 484.8 MB, free: 7.172 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.0003979/0.09316, allocations: 440 kB / 485.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.855e-05/0.09319, allocations: 9.625 kB / 485.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/0.09323, allocations: 15.72 kB / 485.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.09342, allocations: 214.1 kB / 485.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.09345, allocations: 4.688 kB / 485.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.09348, allocations: 11.25 kB / 485.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/0.0937, allocations: 141 kB / 485.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.09372, allocations: 3.984 kB / 485.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.09374, allocations: 5.375 kB / 485.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.09375, allocations: 2.75 kB / 485.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.09392, allocations: 62.28 kB / 485.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.09444, allocations: 0.6035 MB / 486.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.09468, allocations: 114.1 kB / 486.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.738e-05/0.09477, allocations: 43.06 kB / 486.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.0948, allocations: 1.375 kB / 486.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.319e-05/0.09481, allocations: 31.94 kB / 486.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.09482, allocations: 0 / 486.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003365/0.09516, allocations: 125.5 kB / 486.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.0952, allocations: 108.3 kB / 486.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.322e-05/0.0953, allocations: 150.4 kB / 486.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.09531, allocations: 26.73 kB / 486.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.735e-05/0.09537, allocations: 122 kB / 487 MB, free: 5.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.09539, allocations: 28.17 kB / 487 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.09543, allocations: 24.73 kB / 487.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/0.09548, allocations: 325.3 kB / 487.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.152e-05/0.09557, allocations: 22.08 kB / 487.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.144e-05/0.09567, allocations: 66.75 kB / 487.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.09585, allocations: 101.2 kB / 487.6 MB, free: 4.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.09586, allocations: 5.094 kB / 487.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002244/0.09609, allocations: 127.8 kB / 487.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.09611, allocations: 5.469 kB / 487.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.09612, allocations: 5.438 kB / 487.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.09614, allocations: 1.469 kB / 487.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.09627, allocations: 27.34 kB / 487.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.09629, allocations: 1.875 kB / 487.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.51e-05/0.09637, allocations: 13.88 kB / 487.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.09638, allocations: 3.375 kB / 487.7 MB, free: 4.41 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.437e-05/0.09645, allocations: 132.1 kB / 487.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.278e-05/0.09649, allocations: 10.23 kB / 487.9 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.72e-05/0.09652, allocations: 18.88 kB / 487.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.09653, allocations: 1.781 kB / 487.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.09654, allocations: 0 / 487.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.09655, allocations: 2 kB / 487.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.0967, allocations: 212 kB / 488.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.09671, allocations: 4 kB / 488.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.09682, allocations: 16.58 kB / 488.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.09683, allocations: 1.5 kB / 488.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.09685, allocations: 1.438 kB / 488.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.09685, allocations: 5.297 kB / 488.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.09686, allocations: 5.281 kB / 488.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.09716, allocations: 228.1 kB / 488.4 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/0.0972, allocations: 88.14 kB / 488.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.09722, allocations: 5.438 kB / 488.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.041e-05/0.09732, allocations: 3.938 kB / 488.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.09737, allocations: 6.891 kB / 488.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.09738, allocations: 2.219 kB / 488.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.09744, allocations: 122.8 kB / 488.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09744, allocations: 0 / 488.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.09769, allocations: 20.83 kB / 488.6 MB, free: 3.594 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.908e-05/0.09776, allocations: 102.3 kB / 488.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.09798, allocations: 66.88 kB / 488.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.098, allocations: 320 / 488.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.629e-05/0.09809, allocations: 34.02 kB / 488.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.0984, allocations: 31.22 kB / 488.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003993/0.09881, allocations: 243.2 kB / 489.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.09893, allocations: 0.7069 MB / 489.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.543e-05/0.09899, allocations: 12.64 kB / 489.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.09903, allocations: 13.75 kB / 489.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09903, allocations: 0 / 489.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of Templates: time 0.002891/0.1019, allocations: 1.019 MB / 490.8 MB, free: 1.531 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