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.005567/0.005567, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001077/0.001077, allocations: 197 kB / 16.67 MB, free: 5.52 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.227/1.227, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07383/0.07383, allocations: 16.78 MB / 307.3 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.91 kB / 428.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/0.09002, allocations: 53.57 MB / 482.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002849/0.0929, allocations: 1.788 MB / 484 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004269/0.09336, allocations: 155.4 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.0935, allocations: 4 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.09366, allocations: 23.73 kB / 484.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.09387, allocations: 27.78 kB / 484.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001073/0.09398, allocations: 35.95 kB / 484.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.09418, allocations: 135.6 kB / 484.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.09435, allocations: 49.31 kB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.606e-05/0.09442, allocations: 47.84 kB / 484.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.547e-05/0.09452, allocations: 51.7 kB / 484.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.09455, allocations: 11.94 kB / 484.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.696e-05/0.09457, allocations: 12 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.02e-05/0.09461, allocations: 23.92 kB / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.143e-05/0.09466, allocations: 55.61 kB / 484.7 MB, free: 436 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.09482, allocations: 115.6 kB / 484.8 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.09483, allocations: 4 kB / 484.8 MB, free: 316 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09484, allocations: 0 / 484.8 MB, free: 316 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.09485, allocations: 0 / 484.8 MB, free: 316 kB / 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.0005499/0.0954, allocations: 426.9 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.09545, allocations: 12.03 kB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.735e-05/0.0955, allocations: 16.75 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.09577, allocations: 212.8 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.09579, allocations: 8.375 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.09582, allocations: 16.31 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.09605, allocations: 116.3 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.09607, allocations: 3.984 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.09609, allocations: 8 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.0961, allocations: 0 / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.09628, allocations: 71.8 kB / 485.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.09687, allocations: 445.2 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.09726, allocations: 123.8 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.966e-05/0.09737, allocations: 42.69 kB / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.0974, allocations: 4 kB / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.09743, allocations: 42.5 kB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.09743, allocations: 0 / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003606/0.0978, allocations: 125.6 kB / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.09786, allocations: 102.8 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.09799, allocations: 157.7 kB / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.09801, allocations: 25.7 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.734e-05/0.09808, allocations: 119.9 kB / 486.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.09811, allocations: 19.72 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.09816, allocations: 21.7 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.09827, allocations: 322.8 kB / 487.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.561e-05/0.09836, allocations: 23.98 kB / 487.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.09847, allocations: 69.06 kB / 487.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.09864, allocations: 79.34 kB / 487.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.09866, allocations: 4.219 kB / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003445/0.099, allocations: 134.3 kB / 487.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.09903, allocations: 11.94 kB / 487.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.09904, allocations: 0 / 487.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001987/0.09924, allocations: 40.86 kB / 487.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.608e-05/0.09935, allocations: 15.98 kB / 487.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.1004, allocations: 1.465 MB / 489 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.341e-05/0.1005, allocations: 7.906 kB / 489 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1006, allocations: 8 kB / 489 MB, free: 11.6 MB / 366.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 8.579e-05/0.1006, allocations: 113.8 kB / 489.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.1007, allocations: 7.906 kB / 489.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.469e-05/0.1007, allocations: 24.23 kB / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1007, allocations: 8.062 kB / 489.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.1007, allocations: 0 / 489.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1007, allocations: 0 / 489.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.101, allocations: 209.6 kB / 489.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.101, allocations: 0 / 489.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1011, allocations: 15.98 kB / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.1011, allocations: 4 kB / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.1011, allocations: 7.875 kB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1011, allocations: 0 / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1011, allocations: 4 kB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003209/0.1015, allocations: 233 kB / 489.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.614e-05/0.1015, allocations: 88.98 kB / 489.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.1015, allocations: 7.922 kB / 489.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.1016, allocations: 8 kB / 489.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.262e-05/0.1017, allocations: 12.05 kB / 489.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.1017, allocations: 3.938 kB / 489.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.609e-05/0.1018, allocations: 111.3 kB / 489.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1018, allocations: 0 / 489.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002536/0.1021, allocations: 20 kB / 489.9 MB, free: 10.64 MB / 366.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.803e-05/0.1022, allocations: 99.23 kB / 490 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004192/0.1026, allocations: 198.5 kB / 490.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1026, allocations: 4 kB / 490.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.1027, allocations: 27.92 kB / 490.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.103, allocations: 30.52 kB / 490.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004995/0.1035, allocations: 265.3 kB / 490.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.1038, allocations: 0.704 MB / 491.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.452e-05/0.1039, allocations: 16.55 kB / 491.2 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.366e-05/0.1039, allocations: 11.44 kB / 491.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1039, allocations: 0 / 491.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of Templates: time 0.00361/0.1075, allocations: 1.278 MB / 492.5 MB, free: 7.953 MB / 366.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