Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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 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.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_symb_jac_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_symb_jac_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.001824/0.001832, allocations: 97.2 kB / 15.99 MB, free: 6.355 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.002036/0.002036, allocations: 197.6 kB / 16.91 MB, free: 6.191 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.647/1.647, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05948/0.05948, allocations: 14.15 MB / 284.3 MB, free: 14.11 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.001752/0.001752, allocations: 63.91 kB / 347.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2832, allocations: 50.11 MB / 397.4 MB, free: 48.62 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00309/0.2863, allocations: 1.869 MB / 399.3 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000321/0.2866, allocations: 151.7 kB / 399.4 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.2868, allocations: 6.719 kB / 399.4 MB, free: 47.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.2869, allocations: 9.078 kB / 399.4 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.2871, allocations: 30.05 kB / 399.5 MB, free: 47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.21e-05/0.2872, allocations: 33.38 kB / 399.5 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001834/0.2874, allocations: 130.4 kB / 399.6 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.2875, allocations: 50.84 kB / 399.7 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.639e-05/0.2876, allocations: 49.22 kB / 399.7 MB, free: 46.83 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.437e-05/0.2877, allocations: 55.33 kB / 399.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.2877, allocations: 10.09 kB / 399.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.993e-05/0.2877, allocations: 13.44 kB / 399.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.391e-05/0.2878, allocations: 18.58 kB / 399.8 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.436e-05/0.2878, allocations: 61.91 kB / 399.9 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.2879, allocations: 96.62 kB / 400 MB, free: 46.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.288, allocations: 0 / 400 MB, free: 46.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.288, allocations: 0 / 400 MB, free: 46.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.288, allocations: 0 / 400 MB, free: 46.65 MB / 318.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.0005589/0.2885, allocations: 430.6 kB / 400.4 MB, free: 46.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2886, allocations: 13.72 kB / 400.4 MB, free: 46.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.433e-05/0.2886, allocations: 16.5 kB / 400.4 MB, free: 46.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.2889, allocations: 214.7 kB / 400.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.2889, allocations: 7.969 kB / 400.6 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/0.2889, allocations: 11.38 kB / 400.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.2892, allocations: 119.4 kB / 400.8 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2892, allocations: 0 / 400.8 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.2892, allocations: 13.22 kB / 400.8 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2893, allocations: 2.438 kB / 400.8 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.2894, allocations: 60.53 kB / 400.8 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005741/0.29, allocations: 454.6 kB / 401.3 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.2904, allocations: 118.1 kB / 401.4 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.2905, allocations: 55.22 kB / 401.5 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.2905, allocations: 5.359 kB / 401.5 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.2906, allocations: 37.08 kB / 401.5 MB, free: 45.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.2906, allocations: 0 / 401.5 MB, free: 45.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003951/0.291, allocations: 127.4 kB / 401.6 MB, free: 45.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.291, allocations: 108 kB / 401.7 MB, free: 44.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.2912, allocations: 150.6 kB / 401.9 MB, free: 44.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.2912, allocations: 30.64 kB / 401.9 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.2912, allocations: 117.3 kB / 402 MB, free: 44.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/0.2913, allocations: 27.83 kB / 402 MB, free: 44.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.2913, allocations: 20.41 kB / 402.1 MB, free: 44.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.753e-05/0.2914, allocations: 325 kB / 402.4 MB, free: 44.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.197e-05/0.2914, allocations: 21.05 kB / 402.4 MB, free: 44.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.613e-05/0.2916, allocations: 61.89 kB / 402.5 MB, free: 44.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.2917, allocations: 81.78 kB / 402.5 MB, free: 44.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2917, allocations: 1.281 kB / 402.5 MB, free: 44.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003301/0.2921, allocations: 142.8 kB / 402.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2921, allocations: 9.375 kB / 402.7 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2921, allocations: 1.25 kB / 402.7 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.2923, allocations: 34.05 kB / 402.7 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.746e-05/0.2924, allocations: 14.36 kB / 402.7 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008975/0.2933, allocations: 1.453 MB / 404.2 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-05/0.2934, allocations: 8.344 kB / 404.2 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.2935, allocations: 6.609 kB / 404.2 MB, free: 42.59 MB / 318.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.916e-05/0.2935, allocations: 128.8 kB / 404.3 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/0.2936, allocations: 8.812 kB / 404.3 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/0.2936, allocations: 23.94 kB / 404.4 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2936, allocations: 1.156 kB / 404.4 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2936, allocations: 1.484 kB / 404.4 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2936, allocations: 9.156 kB / 404.4 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.2938, allocations: 216.8 kB / 404.6 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2938, allocations: 9.969 kB / 404.6 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.2939, allocations: 14.61 kB / 404.6 MB, free: 42.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2939, allocations: 1.625 kB / 404.6 MB, free: 42.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.294, allocations: 9.234 kB / 404.6 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.294, allocations: 5.219 kB / 404.6 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.294, allocations: 1.156 kB / 404.6 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.2951, allocations: 1.389 MB / 406 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.2951, allocations: 87.78 kB / 406.1 MB, free: 40.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.2951, allocations: 1.344 kB / 406.1 MB, free: 40.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.2952, allocations: 8.125 kB / 406.1 MB, free: 40.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.2953, allocations: 6.609 kB / 406.1 MB, free: 40.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.2953, allocations: 3.344 kB / 406.1 MB, free: 40.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.442e-05/0.2954, allocations: 130.6 kB / 406.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2954, allocations: 1.312 kB / 406.3 MB, free: 40.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003461/0.2957, allocations: 32.62 kB / 406.3 MB, free: 40.56 MB / 318.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 8.378e-05/0.2958, allocations: 91.88 kB / 406.4 MB, free: 40.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004642/0.2963, allocations: 197.3 kB / 406.6 MB, free: 40.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2963, allocations: 5.281 kB / 406.6 MB, free: 40.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.987e-05/0.2964, allocations: 34.11 kB / 406.6 MB, free: 40.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.2968, allocations: 24.8 kB / 406.6 MB, free: 40.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006257/0.2975, allocations: 409.1 kB / 407 MB, free: 39.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.2977, allocations: 0.7142 MB / 407.7 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.425e-05/0.2977, allocations: 9.5 kB / 407.8 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.147e-05/0.2978, allocations: 17.02 kB / 407.8 MB, free: 39.19 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2978, allocations: 0 / 407.8 MB, free: 39.19 MB / 318.1 MB Notification: Performance of Templates: time 0.003766/0.3016, allocations: 1.288 MB / 409.1 MB, free: 38.54 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches