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.001637/0.001637, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001812/0.001812, allocations: 192 kB / 17.31 MB, free: 5.18 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.366/1.366, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07542/0.07542, allocations: 16.74 MB / 307.9 MB, free: 14.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 62.02 kB / 375.2 MB, free: 48.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.08401, allocations: 53.57 MB / 428.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002321/0.08637, allocations: 1.818 MB / 430.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003123/0.08669, allocations: 171.5 kB / 430.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.496e-05/0.0868, allocations: 0 / 430.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.08694, allocations: 23.73 kB / 430.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.08708, allocations: 27.78 kB / 430.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.242e-05/0.08717, allocations: 39.95 kB / 430.9 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.08731, allocations: 127.6 kB / 431 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.08745, allocations: 57.27 kB / 431.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.545e-05/0.0875, allocations: 51.72 kB / 431.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.288e-05/0.08759, allocations: 43.78 kB / 431.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.08762, allocations: 8 kB / 431.2 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.53e-05/0.08764, allocations: 11.94 kB / 431.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.467e-05/0.08767, allocations: 19.92 kB / 431.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.797e-05/0.08771, allocations: 47.67 kB / 431.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.08784, allocations: 115.5 kB / 431.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.08785, allocations: 4 kB / 431.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08785, allocations: 0 / 431.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.08786, allocations: 0 / 431.4 MB, free: 7.34 MB / 302.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.0004503/0.08832, allocations: 419.1 kB / 431.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.08836, allocations: 12.03 kB / 431.8 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.0884, allocations: 20.75 kB / 431.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.0886, allocations: 216.1 kB / 432 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.08862, allocations: 4.562 kB / 432 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.08866, allocations: 12.38 kB / 432 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.08887, allocations: 135.9 kB / 432.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.08889, allocations: 0 / 432.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.0889, allocations: 4 kB / 432.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.08891, allocations: 11.98 kB / 432.2 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.08908, allocations: 67.89 kB / 432.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.08959, allocations: 0.6068 MB / 432.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.08982, allocations: 103.9 kB / 433 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.292e-05/0.08991, allocations: 46.69 kB / 433 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.08994, allocations: 4 kB / 433 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.109e-05/0.08995, allocations: 30.56 kB / 433 MB, free: 5.445 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.08996, allocations: 0 / 433 MB, free: 5.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003178/0.09028, allocations: 121.8 kB / 433.2 MB, free: 5.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.09032, allocations: 110.8 kB / 433.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.073e-05/0.09041, allocations: 148.2 kB / 433.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.09043, allocations: 25.7 kB / 433.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.09048, allocations: 119.9 kB / 433.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.0905, allocations: 23.66 kB / 433.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.09054, allocations: 33.61 kB / 433.6 MB, free: 4.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.858e-05/0.09059, allocations: 322.8 kB / 433.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.767e-05/0.09067, allocations: 31.92 kB / 434 MB, free: 4.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.296e-05/0.09076, allocations: 62 kB / 434 MB, free: 4.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.09091, allocations: 101 kB / 434.1 MB, free: 4.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.09092, allocations: 0 / 434.1 MB, free: 4.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002016/0.09113, allocations: 121.6 kB / 434.2 MB, free: 4.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.09115, allocations: 10.03 kB / 434.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.09116, allocations: 0 / 434.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.09118, allocations: 7.938 kB / 434.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.0913, allocations: 24.3 kB / 434.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.09131, allocations: 3.984 kB / 434.3 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.24e-05/0.09139, allocations: 15.94 kB / 434.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.09141, allocations: 8 kB / 434.3 MB, free: 4.074 MB / 302.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.866e-05/0.09147, allocations: 126.6 kB / 434.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.09151, allocations: 15.81 kB / 434.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.556e-05/0.09154, allocations: 16.3 kB / 434.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.09154, allocations: 4 kB / 434.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.09155, allocations: 0 / 434.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.09156, allocations: 0 / 434.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.09171, allocations: 209.5 kB / 434.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.09172, allocations: 0 / 434.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.09182, allocations: 15.98 kB / 434.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.09183, allocations: 4 kB / 434.7 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.447e-06/0.09185, allocations: 0 / 434.7 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.09185, allocations: 4 kB / 434.7 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.09186, allocations: 3.938 kB / 434.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002662/0.09213, allocations: 225.1 kB / 434.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.485e-05/0.09216, allocations: 85.11 kB / 435 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.09219, allocations: 11.98 kB / 435 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.755e-05/0.09228, allocations: 4 kB / 435 MB, free: 3.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.09233, allocations: 7.984 kB / 435 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.09234, allocations: 7.938 kB / 435 MB, free: 3.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.09239, allocations: 108.9 kB / 435.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0924, allocations: 0 / 435.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.09264, allocations: 27.84 kB / 435.2 MB, free: 3.113 MB / 302.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.448e-05/0.09271, allocations: 103.2 kB / 435.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001947/0.09291, allocations: 67.84 kB / 435.3 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.09292, allocations: 0 / 435.3 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.705e-05/0.093, allocations: 31.92 kB / 435.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.09335, allocations: 36.44 kB / 435.4 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00039/0.09375, allocations: 242 kB / 435.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.09388, allocations: 0.7002 MB / 436.3 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.503e-05/0.09394, allocations: 16.8 kB / 436.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.09398, allocations: 19.38 kB / 436.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09398, allocations: 0 / 436.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of Templates: time 0.08942/0.1834, allocations: 0.9835 MB / 437.3 MB, free: 0.8633 MB / 302.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 -s cvode -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