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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 218.5 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.357/1.357, allocations: 230.6 MB / 256 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07799/0.07799, allocations: 16.94 MB / 329.4 MB, free: 2.547 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: PowerGrids requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 66.41 kB / 462.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1051, allocations: 57.75 MB / 0.5084 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003742/0.1089, allocations: 1.828 MB / 0.5102 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004089/0.1093, allocations: 151.5 kB / 0.5103 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.1094, allocations: 7.938 kB / 0.5103 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.1095, allocations: 15.8 kB / 0.5104 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.1097, allocations: 35.77 kB / 0.5104 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.1098, allocations: 39.84 kB / 0.5104 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.11, allocations: 123.7 kB / 0.5105 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1102, allocations: 41.5 kB / 0.5106 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.866e-05/0.1102, allocations: 59.77 kB / 0.5106 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.1104, allocations: 51.72 kB / 0.5107 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.1104, allocations: 8 kB / 0.5107 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.958e-05/0.1104, allocations: 12 kB / 0.5107 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.999e-05/0.1104, allocations: 19.92 kB / 0.5107 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.883e-05/0.1105, allocations: 55.67 kB / 0.5108 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.1107, allocations: 111.4 kB / 0.5109 GB, free: 3.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1107, allocations: 0 / 0.5109 GB, free: 3.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1107, allocations: 0 / 0.5109 GB, free: 3.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1107, allocations: 0 / 0.5109 GB, free: 3.16 MB / 382.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.000602/0.1113, allocations: 353.8 kB / 0.5112 GB, free: 2.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1113, allocations: 8.031 kB / 0.5112 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.896e-05/0.1114, allocations: 16.84 kB / 0.5112 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.1117, allocations: 168.3 kB / 0.5114 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.1117, allocations: 4.375 kB / 0.5114 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.1117, allocations: 8.375 kB / 0.5114 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.112, allocations: 126.6 kB / 0.5115 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.112, allocations: 0 / 0.5115 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.112, allocations: 0 / 0.5115 GB, free: 2.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.112, allocations: 7.938 kB / 0.5115 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.1122, allocations: 55.97 kB / 0.5116 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006862/0.1129, allocations: 428.3 kB / 0.512 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.1132, allocations: 111.8 kB / 0.5121 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.1134, allocations: 54.61 kB / 0.5122 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.1134, allocations: 4 kB / 0.5122 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1134, allocations: 30.56 kB / 0.5122 GB, free: 1.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.1134, allocations: 0 / 0.5122 GB, free: 1.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003839/0.1138, allocations: 129.4 kB / 0.5123 GB, free: 1.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.1139, allocations: 106.8 kB / 0.5124 GB, free: 1.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.114, allocations: 156.5 kB / 0.5126 GB, free: 1.219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.114, allocations: 25.7 kB / 0.5126 GB, free: 1.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.487e-05/0.1141, allocations: 116 kB / 0.5127 GB, free: 1.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.1141, allocations: 27.73 kB / 0.5127 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.1142, allocations: 21.97 kB / 0.5128 GB, free: 1.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1143, allocations: 330.8 kB / 0.5131 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.872e-05/0.1144, allocations: 23.98 kB / 0.5131 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.1145, allocations: 61.12 kB / 0.5132 GB, free: 0.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.1147, allocations: 79.39 kB / 0.5132 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1147, allocations: 0 / 0.5132 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003607/0.1151, allocations: 142.6 kB / 0.5134 GB, free: 352 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1151, allocations: 14.91 kB / 0.5134 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1151, allocations: 3.984 kB / 0.5134 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002099/0.1153, allocations: 28.84 kB / 0.5134 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.1154, allocations: 19.98 kB / 0.5134 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1886/0.304, allocations: 1.345 MB / 0.5147 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.3042, allocations: 11.91 kB / 0.5148 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3042, allocations: 6.688 kB / 0.5148 GB, free: 14.78 MB / 382.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.28e-05/0.3043, allocations: 123.1 kB / 0.5149 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/0.3043, allocations: 12.52 kB / 0.5149 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.531e-05/0.3043, allocations: 16.03 kB / 0.5149 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3043, allocations: 1.938 kB / 0.5149 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3043, allocations: 2.578 kB / 0.5149 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3043, allocations: 0.875 kB / 0.5149 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.3045, allocations: 185.5 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3045, allocations: 0 / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.3046, allocations: 16.66 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3046, allocations: 2.297 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.3047, allocations: 6.578 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3047, allocations: 2.062 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3047, allocations: 1.375 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002987/0.305, allocations: 237.2 kB / 0.5153 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.902e-05/0.305, allocations: 12.91 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.305, allocations: 4.406 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.3051, allocations: 11.81 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3051, allocations: 13.62 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-06/0.3052, allocations: 7.469 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.014e-05/0.3052, allocations: 115.2 kB / 0.5155 GB, free: 14.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3052, allocations: 0 / 0.5155 GB, free: 14.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.3055, allocations: 22.41 kB / 0.5155 GB, free: 14.28 MB / 382.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 7.376e-05/0.3056, allocations: 92.25 kB / 0.5156 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004246/0.306, allocations: 199.1 kB / 0.5158 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.306, allocations: 0 / 0.5158 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.3061, allocations: 31.42 kB / 0.5158 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.3064, allocations: 25.89 kB / 0.5159 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000453/0.3068, allocations: 260.8 kB / 0.5161 GB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.307, allocations: 0.7019 MB / 0.5168 GB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.829e-05/0.307, allocations: 11.67 kB / 0.5168 GB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.534e-05/0.3071, allocations: 17.16 kB / 0.5168 GB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3071, allocations: 0 / 0.5168 GB, free: 13.21 MB / 382.1 MB Notification: Performance of Templates: time 0.003962/0.311, allocations: 1.306 MB / 0.5181 GB, free: 13.18 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (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) [Timeout 50] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.418108935002238]