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.0018/0.0018, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.00149/0.00149, allocations: 213.4 kB / 22.25 MB, free: 5.117 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.433/1.433, allocations: 230.6 MB / 256 MB, free: 7.996 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.08173/0.08173, allocations: 16.95 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.002309/0.002309, allocations: 67.89 kB / 462.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1217, allocations: 57.74 MB / 0.5084 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00373/0.1255, allocations: 1.835 MB / 0.5102 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005248/0.126, allocations: 155.5 kB / 0.5103 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.1261, allocations: 3.938 kB / 0.5103 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1263, allocations: 23.73 kB / 0.5104 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.1265, allocations: 23.8 kB / 0.5104 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.1267, allocations: 43.89 kB / 0.5104 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000235/0.1269, allocations: 127.7 kB / 0.5105 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.1271, allocations: 41.5 kB / 0.5106 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.1272, allocations: 55.72 kB / 0.5106 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.1273, allocations: 43.78 kB / 0.5107 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.1273, allocations: 12 kB / 0.5107 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.042e-05/0.1273, allocations: 8 kB / 0.5107 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.824e-05/0.1274, allocations: 27.91 kB / 0.5107 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.425e-05/0.1274, allocations: 55.66 kB / 0.5108 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.1276, allocations: 115.4 kB / 0.5109 GB, free: 3.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1277, allocations: 0 / 0.5109 GB, free: 3.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1277, allocations: 0 / 0.5109 GB, free: 3.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.1277, allocations: 0 / 0.5109 GB, free: 3.145 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.0007465/0.1284, allocations: 349.8 kB / 0.5112 GB, free: 2.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1285, allocations: 12.03 kB / 0.5112 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.002e-05/0.1285, allocations: 16.78 kB / 0.5113 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.1289, allocations: 154.9 kB / 0.5114 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.1289, allocations: 8.375 kB / 0.5114 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.1289, allocations: 12.38 kB / 0.5114 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.1293, allocations: 116.3 kB / 0.5115 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1293, allocations: 0 / 0.5115 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.1293, allocations: 8 kB / 0.5115 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1293, allocations: 4 kB / 0.5115 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.1295, allocations: 63.89 kB / 0.5116 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008029/0.1303, allocations: 416.3 kB / 0.512 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004262/0.1307, allocations: 123.8 kB / 0.5121 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.1309, allocations: 46.61 kB / 0.5122 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1309, allocations: 4 kB / 0.5122 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.1309, allocations: 34.56 kB / 0.5122 GB, free: 1.633 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.1309, allocations: 0 / 0.5122 GB, free: 1.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004389/0.1313, allocations: 129.4 kB / 0.5123 GB, free: 1.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.1314, allocations: 107 kB / 0.5124 GB, free: 1.371 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.1316, allocations: 156.6 kB / 0.5126 GB, free: 1.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.1316, allocations: 29.7 kB / 0.5126 GB, free: 1.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.1317, allocations: 116 kB / 0.5127 GB, free: 1.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.113e-05/0.1317, allocations: 27.73 kB / 0.5127 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.797e-05/0.1318, allocations: 21.72 kB / 0.5128 GB, free: 1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1319, allocations: 322.8 kB / 0.5131 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.623e-05/0.132, allocations: 19.98 kB / 0.5131 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.1321, allocations: 69.12 kB / 0.5132 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.1323, allocations: 83.59 kB / 0.5132 GB, free: 488 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1323, allocations: 4.031 kB / 0.5132 GB, free: 484 kB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003817/0.1327, allocations: 138.3 kB / 0.5134 GB, free: 336 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1327, allocations: 4 kB / 0.5134 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1327, allocations: 0 / 0.5134 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002339/0.1329, allocations: 40.92 kB / 0.5134 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1331, allocations: 19.92 kB / 0.5134 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.267/0.4, allocations: 1.34 MB / 0.5147 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.4002, allocations: 10.23 kB / 0.5147 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.4002, allocations: 6.531 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 0.0001034/0.4003, allocations: 122.1 kB / 0.5149 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/0.4003, allocations: 11.28 kB / 0.5149 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.691e-05/0.4004, allocations: 15.91 kB / 0.5149 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4004, allocations: 1.953 kB / 0.5149 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.4004, allocations: 4.844 kB / 0.5149 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4004, allocations: 1.828 kB / 0.5149 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.4006, allocations: 188.2 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.4006, allocations: 1.219 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.4007, allocations: 17.78 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4007, allocations: 1.219 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.4007, allocations: 1.875 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.4008, allocations: 1.844 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4008, allocations: 0.5625 kB / 0.5151 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003431/0.4011, allocations: 244.7 kB / 0.5153 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.284e-05/0.4011, allocations: 14.5 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.4011, allocations: 5.094 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4012, allocations: 3.625 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.4013, allocations: 18.75 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.4013, allocations: 5.625 kB / 0.5154 GB, free: 14.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.542e-05/0.4014, allocations: 119.2 kB / 0.5155 GB, free: 14.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4014, allocations: 0.5625 kB / 0.5155 GB, free: 14.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.4017, allocations: 22.16 kB / 0.5155 GB, free: 14.29 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 0.0001141/0.4018, allocations: 93.28 kB / 0.5156 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005367/0.4023, allocations: 200.7 kB / 0.5158 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4023, allocations: 2.188 kB / 0.5158 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.4024, allocations: 31.5 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.0003505/0.4028, allocations: 26.52 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.0005699/0.4033, allocations: 251 kB / 0.5161 GB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.4035, allocations: 0.7073 MB / 0.5168 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.85e-05/0.4036, allocations: 10.66 kB / 0.5168 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.4036, allocations: 12.5 kB / 0.5168 GB, free: 13.22 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4036, allocations: 0.8125 kB / 0.5168 GB, free: 13.22 MB / 382.1 MB Notification: Performance of Templates: time 0.004601/0.4082, allocations: 1.309 MB / 0.5181 GB, free: 13.17 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.959835976129398]