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.004466/0.004466, allocations: 103.1 kB / 15.73 MB, free: 6.039 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.001154/0.001154, allocations: 190.2 kB / 16.67 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1804/0.1804, allocations: 16.78 MB / 307.3 MB, free: 14.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 65.08 kB / 428.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08542/0.08663, allocations: 53.56 MB / 482.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002544/0.08923, allocations: 1.828 MB / 484.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003247/0.08957, allocations: 170.1 kB / 484.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.976e-05/0.08968, allocations: 8.125 kB / 484.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.08982, allocations: 21.11 kB / 484.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.08997, allocations: 26.55 kB / 484.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.529e-05/0.09007, allocations: 46.62 kB / 484.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.09022, allocations: 122.4 kB / 484.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.09036, allocations: 45.95 kB / 484.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.087e-05/0.09041, allocations: 53.59 kB / 484.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.761e-05/0.09051, allocations: 53.33 kB / 484.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.09053, allocations: 8.25 kB / 484.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.782e-05/0.09056, allocations: 9.625 kB / 484.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.09058, allocations: 18.67 kB / 484.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.093e-05/0.09063, allocations: 53.3 kB / 484.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.09076, allocations: 109.7 kB / 484.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09077, allocations: 0 / 484.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09077, allocations: 1.375 kB / 484.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.09079, allocations: 0 / 484.8 MB, free: 7.137 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.0004215/0.09121, allocations: 420.3 kB / 485.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.09126, allocations: 9.625 kB / 485.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.09131, allocations: 15.66 kB / 485.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.09152, allocations: 228.4 kB / 485.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.09154, allocations: 8.688 kB / 485.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.09157, allocations: 11.25 kB / 485.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.09179, allocations: 138 kB / 485.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.09181, allocations: 3.938 kB / 485.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.09182, allocations: 5.375 kB / 485.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.09184, allocations: 2.75 kB / 485.6 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.09201, allocations: 67.55 kB / 485.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000493/0.09251, allocations: 0.5944 MB / 486.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002243/0.09274, allocations: 110 kB / 486.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.502e-05/0.09284, allocations: 43.19 kB / 486.4 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.09286, allocations: 5.359 kB / 486.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.241e-05/0.09288, allocations: 39.88 kB / 486.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.09289, allocations: 4 kB / 486.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003239/0.09322, allocations: 122.6 kB / 486.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.09325, allocations: 104.3 kB / 486.7 MB, free: 5.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.841e-05/0.09335, allocations: 146 kB / 486.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.09337, allocations: 29.7 kB / 486.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/0.09342, allocations: 127.5 kB / 487 MB, free: 5.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.09344, allocations: 18.38 kB / 487 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.09349, allocations: 29.86 kB / 487 MB, free: 4.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.09353, allocations: 325.9 kB / 487.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.906e-05/0.09362, allocations: 23.8 kB / 487.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.585e-05/0.09371, allocations: 68.41 kB / 487.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.09387, allocations: 93.22 kB / 487.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.09388, allocations: 4.031 kB / 487.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002161/0.0941, allocations: 123.8 kB / 487.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.09412, allocations: 9.469 kB / 487.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.09413, allocations: 1.406 kB / 487.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.09415, allocations: 5.688 kB / 487.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.09428, allocations: 26.83 kB / 487.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.09429, allocations: 6.969 kB / 487.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.306e-05/0.09437, allocations: 13.77 kB / 487.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.09439, allocations: 2.562 kB / 487.7 MB, free: 4.383 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.971e-05/0.09445, allocations: 124.6 kB / 487.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.09449, allocations: 10.12 kB / 487.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.915e-05/0.09452, allocations: 19.39 kB / 487.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.09453, allocations: 1.812 kB / 487.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.09454, allocations: 0 / 487.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.09454, allocations: 1.75 kB / 487.9 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.0947, allocations: 211.8 kB / 488.1 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.09471, allocations: 5.188 kB / 488.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.09482, allocations: 15.39 kB / 488.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.09483, allocations: 1.438 kB / 488.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.09484, allocations: 1.406 kB / 488.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09485, allocations: 1.406 kB / 488.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.09486, allocations: 5.312 kB / 488.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.09515, allocations: 236 kB / 488.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.476e-05/0.09518, allocations: 88.11 kB / 488.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.0952, allocations: 6.422 kB / 488.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.277e-05/0.0953, allocations: 3 kB / 488.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.09535, allocations: 10.64 kB / 488.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.09536, allocations: 6.75 kB / 488.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.427e-05/0.09542, allocations: 114.4 kB / 488.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09543, allocations: 0 / 488.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.09567, allocations: 17.78 kB / 488.6 MB, free: 3.574 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.929e-05/0.09573, allocations: 97.42 kB / 488.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002081/0.09595, allocations: 73.94 kB / 488.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.09596, allocations: 5.875 kB / 488.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.083e-05/0.09604, allocations: 25.92 kB / 488.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.09635, allocations: 26.38 kB / 488.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004013/0.09676, allocations: 249 kB / 489.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.09689, allocations: 0.7056 MB / 489.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.236e-05/0.09695, allocations: 13.73 kB / 489.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.048e-05/0.09698, allocations: 17.03 kB / 489.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.09699, allocations: 5.094 kB / 489.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of Templates: time 0.002731/0.09972, allocations: 1.002 MB / 490.8 MB, free: 1.539 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