Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_symb_jac_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_symb_jac_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.001567/0.001567, allocations: 104.1 kB / 15.88 MB, free: 4 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.001754/0.001754, allocations: 198.8 kB / 16.8 MB, free: 6.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.212/1.212, allocations: 205.1 MB / 222.6 MB, free: 4.828 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0587/0.0587, allocations: 14.18 MB / 284.2 MB, free: 7.359 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 347.1 MB, free: 17.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07958/0.08106, allocations: 50.13 MB / 397.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.002907/0.08402, allocations: 1.883 MB / 399.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004584/0.0845, allocations: 155.5 kB / 399.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.08468, allocations: 4 kB / 399.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.08485, allocations: 23.8 kB / 399.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.08501, allocations: 11.91 kB / 399.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000111/0.08513, allocations: 47.91 kB / 399.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.08531, allocations: 107.7 kB / 399.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.08548, allocations: 61.19 kB / 399.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.473e-05/0.08555, allocations: 43.72 kB / 399.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.08565, allocations: 43.78 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.08569, allocations: 4 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.807e-05/0.08571, allocations: 4 kB / 399.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.08574, allocations: 19.86 kB / 399.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.119e-05/0.0858, allocations: 43.73 kB / 399.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.08594, allocations: 107.6 kB / 399.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.08595, allocations: 0 / 399.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08596, allocations: 3.938 kB / 399.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.08597, allocations: 0 / 399.8 MB, free: 13.07 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.0005384/0.08652, allocations: 423.2 kB / 400.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.08656, allocations: 8.031 kB / 400.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.08661, allocations: 16.75 kB / 400.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.08691, allocations: 212 kB / 400.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.08694, allocations: 12.56 kB / 400.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.08697, allocations: 12.38 kB / 400.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.08724, allocations: 130.2 kB / 400.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.08726, allocations: 3.938 kB / 400.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.08728, allocations: 0 / 400.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.08729, allocations: 4 kB / 400.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.0875, allocations: 71.89 kB / 400.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007694/0.08827, allocations: 0.603 MB / 401.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.08856, allocations: 99.89 kB / 401.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.08868, allocations: 50.69 kB / 401.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.08871, allocations: 7.969 kB / 401.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.08874, allocations: 38.5 kB / 401.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.08875, allocations: 0 / 401.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003743/0.08913, allocations: 121.7 kB / 401.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.0892, allocations: 106.8 kB / 401.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.08937, allocations: 151 kB / 401.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.08939, allocations: 29.64 kB / 401.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.931e-05/0.08948, allocations: 115.9 kB / 402 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.08951, allocations: 31.55 kB / 402 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.08957, allocations: 25.72 kB / 402 MB, free: 10.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.08971, allocations: 323 kB / 402.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.109e-05/0.08981, allocations: 23.98 kB / 402.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.08992, allocations: 69.92 kB / 402.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.09012, allocations: 105 kB / 402.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.09013, allocations: 0 / 402.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002554/0.09039, allocations: 125.4 kB / 402.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.09042, allocations: 4 kB / 402.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.09043, allocations: 4 kB / 402.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.09045, allocations: 0 / 402.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.09059, allocations: 27.92 kB / 402.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.09061, allocations: 0 / 402.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.911e-05/0.0907, allocations: 11.94 kB / 402.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.09072, allocations: 7.984 kB / 402.7 MB, free: 9.809 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 0.000104/0.09084, allocations: 129.9 kB / 402.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/0.09088, allocations: 15.81 kB / 402.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.09091, allocations: 12.31 kB / 402.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.09092, allocations: 7.938 kB / 402.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.09093, allocations: 0 / 402.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.09094, allocations: 3.984 kB / 402.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.09114, allocations: 205.5 kB / 403.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.09115, allocations: 0 / 403.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.09127, allocations: 24.23 kB / 403.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.09128, allocations: 8 kB / 403.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.0913, allocations: 0 / 403.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.0913, allocations: 4 kB / 403.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.09131, allocations: 7.938 kB / 403.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.09257, allocations: 1.197 MB / 404.3 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.09262, allocations: 85.05 kB / 404.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.09265, allocations: 7.984 kB / 404.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-05/0.09274, allocations: 4.094 kB / 404.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.166e-05/0.09279, allocations: 15.92 kB / 404.4 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.0928, allocations: 4 kB / 404.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.359e-05/0.09288, allocations: 107.3 kB / 404.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.09289, allocations: 0 / 404.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000323/0.09321, allocations: 27.84 kB / 404.6 MB, free: 7.734 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 9.052e-05/0.09331, allocations: 107.2 kB / 404.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.09354, allocations: 63.91 kB / 404.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.09355, allocations: 0 / 404.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.826e-05/0.09364, allocations: 35.92 kB / 404.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.09401, allocations: 27.95 kB / 404.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005518/0.09457, allocations: 402.5 kB / 405.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.09483, allocations: 0.7043 MB / 405.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.427e-05/0.0949, allocations: 12.55 kB / 405.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.071e-05/0.09494, allocations: 15.44 kB / 405.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of SimCode: time 1.413e-06/0.09494, allocations: 0 / 405.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of Templates: time 0.003026/0.09797, allocations: 0.9324 MB / 406.8 MB, free: 5.371 MB / 302.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches