Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_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_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.0009441/0.0009441, allocations: 98.88 kB / 16.02 MB, free: 76 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.001322/0.001322, allocations: 187.7 kB / 16.92 MB, free: 6.773 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.306/1.306, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06036/0.06036, allocations: 14.16 MB / 285.6 MB, free: 7.039 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.0004838/0.0004839, allocations: 19.94 kB / 349.5 MB, free: 17.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07849/0.07898, allocations: 51.12 MB / 400.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDerivativeLag): time 0.001811/0.08083, allocations: 1.533 MB / 402.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003173/0.08116, allocations: 159.5 kB / 402.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.081e-05/0.08127, allocations: 7.938 kB / 402.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.08139, allocations: 11.86 kB / 402.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.08153, allocations: 27.84 kB / 402.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.81e-05/0.08163, allocations: 35.97 kB / 402.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.08178, allocations: 115.6 kB / 402.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.08193, allocations: 45.28 kB / 402.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.908e-05/0.08198, allocations: 39.77 kB / 402.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.852e-05/0.08207, allocations: 31.8 kB / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.08209, allocations: 0 / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.08212, allocations: 8 kB / 402.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.08214, allocations: 23.8 kB / 402.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.889e-05/0.08221, allocations: 57.45 kB / 402.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.917e-05/0.08232, allocations: 75.84 kB / 402.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.08233, allocations: 0 / 402.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08233, allocations: 0 / 402.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.08234, allocations: 0 / 402.8 MB, free: 12.16 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.0004758/0.08282, allocations: 403.3 kB / 403.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.08287, allocations: 12.02 kB / 403.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.08291, allocations: 16.75 kB / 403.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.08313, allocations: 220 kB / 403.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.08316, allocations: 8.562 kB / 403.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.08319, allocations: 16.31 kB / 403.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.08345, allocations: 138.2 kB / 403.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.08347, allocations: 0 / 403.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.08349, allocations: 4 kB / 403.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.0835, allocations: 0 / 403.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.0837, allocations: 67.91 kB / 403.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006447/0.08436, allocations: 0.6109 MB / 404.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.08463, allocations: 111.8 kB / 404.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.08475, allocations: 46.69 kB / 404.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.08478, allocations: 4 kB / 404.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.0848, allocations: 38.56 kB / 404.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.08481, allocations: 0 / 404.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003675/0.08518, allocations: 117.9 kB / 404.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.08524, allocations: 114.8 kB / 404.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.08536, allocations: 150.3 kB / 404.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.08538, allocations: 25.7 kB / 404.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.08545, allocations: 115.9 kB / 404.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.08548, allocations: 31.55 kB / 405 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.08552, allocations: 17.72 kB / 405 MB, free: 9.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.08561, allocations: 318.8 kB / 405.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.242e-05/0.08571, allocations: 31.98 kB / 405.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.08583, allocations: 66 kB / 405.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.08603, allocations: 105.1 kB / 405.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.08604, allocations: 0 / 405.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002641/0.08631, allocations: 125.4 kB / 405.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.08634, allocations: 11.94 kB / 405.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.08635, allocations: 0 / 405.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.08636, allocations: 4 kB / 405.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.08651, allocations: 27.97 kB / 405.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.08652, allocations: 3.938 kB / 405.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.303e-05/0.08661, allocations: 20 kB / 405.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.08663, allocations: 4 kB / 405.7 MB, free: 8.879 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 8.735e-05/0.08672, allocations: 129.7 kB / 405.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.375e-05/0.08676, allocations: 11.91 kB / 405.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.0868, allocations: 16.3 kB / 405.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.08681, allocations: 4 kB / 405.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.08682, allocations: 0 / 405.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.08683, allocations: 7.922 kB / 405.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.08704, allocations: 205.6 kB / 406.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.08705, allocations: 4 kB / 406.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.08717, allocations: 19.98 kB / 406.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.08718, allocations: 0 / 406.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.08719, allocations: 0 / 406.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.0872, allocations: 7.984 kB / 406.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.08721, allocations: 0 / 406.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.08757, allocations: 237 kB / 406.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.204e-05/0.08762, allocations: 92.97 kB / 406.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.08764, allocations: 0 / 406.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.786e-05/0.08775, allocations: 12.06 kB / 406.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/0.0878, allocations: 12.05 kB / 406.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.08781, allocations: 4 kB / 406.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.317e-05/0.08788, allocations: 111.2 kB / 406.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.08789, allocations: 0 / 406.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.08814, allocations: 19.91 kB / 406.6 MB, free: 7.902 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 7.963e-05/0.08823, allocations: 95.19 kB / 406.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002369/0.08847, allocations: 79.78 kB / 406.7 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.08849, allocations: 0 / 406.7 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.837e-05/0.08859, allocations: 31.98 kB / 406.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.08894, allocations: 31.91 kB / 406.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/0.08942, allocations: 317.8 kB / 407.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.08967, allocations: 0.7083 MB / 407.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.08972, allocations: 15.44 kB / 407.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.08972, allocations: 0 / 407.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of Templates: time 0.002664/0.09239, allocations: 1.379 MB / 409.2 MB, free: 5.176 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.makefile (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDerivativeLag_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches