Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.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.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 108 kB / 15.61 MB, free: 152 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.001403/0.001403, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.24/1.24, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1819/0.1819, allocations: 16.78 MB / 307.2 MB, free: 14.84 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 59.91 kB / 373.9 MB, free: 1.527 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2857, allocations: 53.55 MB / 427.4 MB, free: 40.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002374/0.2881, allocations: 1.796 MB / 429.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003079/0.2884, allocations: 158.5 kB / 429.4 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.093e-05/0.2885, allocations: 3.312 kB / 429.4 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.2886, allocations: 18.94 kB / 429.4 MB, free: 39.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.2888, allocations: 35.39 kB / 429.4 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.081e-05/0.2888, allocations: 31.78 kB / 429.4 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.289, allocations: 133.7 kB / 429.6 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2891, allocations: 49.38 kB / 429.6 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.927e-05/0.2892, allocations: 47.33 kB / 429.7 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.04e-05/0.2893, allocations: 56.97 kB / 429.7 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.2893, allocations: 8.594 kB / 429.7 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.963e-05/0.2893, allocations: 10.22 kB / 429.7 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.704e-05/0.2894, allocations: 23.52 kB / 429.8 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.2894, allocations: 54.86 kB / 429.8 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.2895, allocations: 96.36 kB / 429.9 MB, free: 39.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2896, allocations: 0 / 429.9 MB, free: 39.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2896, allocations: 4 kB / 429.9 MB, free: 39.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.2896, allocations: 2.781 kB / 429.9 MB, free: 39.54 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004736/0.29, allocations: 426.4 kB / 430.3 MB, free: 39.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.2901, allocations: 14.12 kB / 430.4 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.35e-05/0.2901, allocations: 21.2 kB / 430.4 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.2903, allocations: 218.5 kB / 430.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-06/0.2903, allocations: 11.11 kB / 430.6 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.2904, allocations: 16.88 kB / 430.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.2906, allocations: 124.4 kB / 430.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.2906, allocations: 0 / 430.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.2906, allocations: 2.219 kB / 430.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.381e-06/0.2906, allocations: 2.062 kB / 430.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.2908, allocations: 59.89 kB / 430.8 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.2913, allocations: 455.1 kB / 431.2 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.2916, allocations: 126.5 kB / 431.4 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.955e-05/0.2917, allocations: 47.42 kB / 431.4 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.2917, allocations: 7.281 kB / 431.4 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.36e-05/0.2918, allocations: 33.34 kB / 431.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.051e-06/0.2918, allocations: 0 / 431.5 MB, free: 38.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003347/0.2921, allocations: 121.7 kB / 431.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.2921, allocations: 107 kB / 431.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.793e-05/0.2922, allocations: 153.7 kB / 431.8 MB, free: 37.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.2923, allocations: 29.7 kB / 431.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.2923, allocations: 115.9 kB / 432 MB, free: 37.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.2923, allocations: 29.11 kB / 432 MB, free: 37.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.2924, allocations: 22.56 kB / 432 MB, free: 37.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.2924, allocations: 321 kB / 432.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.587e-05/0.2925, allocations: 18.69 kB / 432.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.592e-05/0.2926, allocations: 68.55 kB / 432.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.2928, allocations: 76.89 kB / 432.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.2928, allocations: 4 kB / 432.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003096/0.2931, allocations: 145.8 kB / 432.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2931, allocations: 5.406 kB / 432.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.2931, allocations: 3.281 kB / 432.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000181/0.2933, allocations: 35.72 kB / 432.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.831e-05/0.2934, allocations: 14.69 kB / 432.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007604/0.2942, allocations: 1.454 MB / 434.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.661e-05/0.2943, allocations: 12.95 kB / 434.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.2943, allocations: 6.719 kB / 434.2 MB, free: 35.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.523e-05/0.2944, allocations: 130.6 kB / 434.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.2944, allocations: 9.562 kB / 434.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.2944, allocations: 23.25 kB / 434.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2944, allocations: 0 / 434.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.2944, allocations: 6.875 kB / 434.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2944, allocations: 0 / 434.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001589/0.2946, allocations: 212.1 kB / 434.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2946, allocations: 2.906 kB / 434.5 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.2947, allocations: 14.38 kB / 434.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2947, allocations: 2.75 kB / 434.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.2948, allocations: 7.938 kB / 434.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2948, allocations: 2.875 kB / 434.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2948, allocations: 0 / 434.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002673/0.295, allocations: 232.3 kB / 434.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.742e-05/0.2951, allocations: 91.86 kB / 434.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.2951, allocations: 3.938 kB / 434.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.2952, allocations: 5.984 kB / 434.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.2953, allocations: 12.92 kB / 434.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.2953, allocations: 2.906 kB / 434.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.02e-05/0.2953, allocations: 113.9 kB / 435 MB, free: 34.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2953, allocations: 0 / 435 MB, free: 34.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.2956, allocations: 14.41 kB / 435 MB, free: 34.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.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.945e-05/0.2957, allocations: 105.4 kB / 435.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003929/0.2961, allocations: 207.6 kB / 435.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2961, allocations: 0 / 435.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.753e-05/0.2962, allocations: 27.84 kB / 435.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.2965, allocations: 34.36 kB / 435.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004302/0.297, allocations: 254 kB / 435.7 MB, free: 34.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.2971, allocations: 0.7071 MB / 436.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.05e-05/0.2972, allocations: 17.83 kB / 436.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.2972, allocations: 13.03 kB / 436.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2972, allocations: 0 / 436.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of Templates: time 0.003282/0.3005, allocations: 1.248 MB / 437.6 MB, free: 33.68 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches