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.001304/0.001304, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001702/0.001702, allocations: 221.4 kB / 23.03 MB, free: 4.945 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.0826/0.0826, allocations: 16.96 MB / 330.2 MB, free: 2.387 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.002038/0.002038, allocations: 63.91 kB / 463.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1298, allocations: 57.75 MB / 0.5091 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003376/0.1332, allocations: 1.762 MB / 0.5108 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003979/0.1336, allocations: 147.5 kB / 0.5109 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.58e-05/0.1336, allocations: 7.938 kB / 0.5109 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1338, allocations: 15.8 kB / 0.511 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.1339, allocations: 31.78 kB / 0.511 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.106e-05/0.134, allocations: 43.83 kB / 0.511 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.1342, allocations: 123.7 kB / 0.5112 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.1344, allocations: 41.52 kB / 0.5112 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.965e-05/0.1344, allocations: 59.72 kB / 0.5113 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.1346, allocations: 55.75 kB / 0.5113 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.1346, allocations: 8 kB / 0.5113 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.304e-05/0.1346, allocations: 12 kB / 0.5113 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.1346, allocations: 15.92 kB / 0.5113 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.097e-05/0.1347, allocations: 43.73 kB / 0.5114 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.1349, allocations: 115.4 kB / 0.5115 GB, free: 3.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1349, allocations: 0 / 0.5115 GB, free: 3.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1349, allocations: 0 / 0.5115 GB, free: 3.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1349, allocations: 0 / 0.5115 GB, free: 3.133 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.0006483/0.1355, allocations: 349.8 kB / 0.5118 GB, free: 2.758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1356, allocations: 12.03 kB / 0.5118 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.888e-05/0.1356, allocations: 20.84 kB / 0.5119 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1359, allocations: 156.9 kB / 0.512 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1359, allocations: 8.375 kB / 0.512 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.136, allocations: 12.38 kB / 0.512 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.1362, allocations: 124.3 kB / 0.5121 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1362, allocations: 0 / 0.5121 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.1363, allocations: 8 kB / 0.5122 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1363, allocations: 0 / 0.5122 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.1365, allocations: 63.95 kB / 0.5122 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006194/0.1371, allocations: 365 kB / 0.5126 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004165/0.1375, allocations: 119.7 kB / 0.5127 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.1376, allocations: 46.69 kB / 0.5127 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.1376, allocations: 4 kB / 0.5127 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.1377, allocations: 34.56 kB / 0.5128 GB, free: 1.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.1377, allocations: 0 / 0.5128 GB, free: 1.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004059/0.1381, allocations: 121.5 kB / 0.5129 GB, free: 1.555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.1381, allocations: 110.8 kB / 0.513 GB, free: 1.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.1383, allocations: 151.9 kB / 0.5131 GB, free: 1.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.1383, allocations: 29.95 kB / 0.5132 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.322e-05/0.1384, allocations: 120 kB / 0.5133 GB, free: 1.105 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.1385, allocations: 31.69 kB / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-05/0.1385, allocations: 29.7 kB / 0.5133 GB, free: 1.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.1387, allocations: 318.8 kB / 0.5136 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1389, allocations: 19.98 kB / 0.5136 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.139, allocations: 116.5 kB / 0.5138 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.1393, allocations: 87.62 kB / 0.5138 GB, free: 468 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1393, allocations: 4 kB / 0.5138 GB, free: 464 kB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003949/0.1397, allocations: 134.3 kB / 0.514 GB, free: 320 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1397, allocations: 8 kB / 0.514 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1397, allocations: 0 / 0.514 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000219/0.1399, allocations: 40.92 kB / 0.514 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.14, allocations: 15.98 kB / 0.514 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.231/0.371, allocations: 1.316 MB / 0.5153 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.3712, allocations: 13.48 kB / 0.5153 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.3712, allocations: 4.438 kB / 0.5153 GB, free: 14.79 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.0001126/0.3713, allocations: 124.4 kB / 0.5155 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.3713, allocations: 12.39 kB / 0.5155 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.3714, allocations: 16.08 kB / 0.5155 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3714, allocations: 3.641 kB / 0.5155 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3714, allocations: 1.281 kB / 0.5155 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3714, allocations: 1.453 kB / 0.5155 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3716, allocations: 143.1 kB / 0.5156 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3716, allocations: 2.812 kB / 0.5156 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.3717, allocations: 19.11 kB / 0.5156 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3717, allocations: 2.062 kB / 0.5156 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.3717, allocations: 2.781 kB / 0.5157 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3717, allocations: 2.094 kB / 0.5157 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3717, allocations: 1.062 kB / 0.5157 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.3721, allocations: 237.7 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.106e-05/0.3721, allocations: 14.5 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.3721, allocations: 2.781 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3722, allocations: 4.797 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.3723, allocations: 11.48 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.3723, allocations: 3.25 kB / 0.5159 GB, free: 14.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.97e-05/0.3724, allocations: 120.4 kB / 0.516 GB, free: 14.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3724, allocations: 0 / 0.516 GB, free: 14.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.3726, allocations: 24.44 kB / 0.5161 GB, free: 14.32 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 8.977e-05/0.3727, allocations: 99.47 kB / 0.5161 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004889/0.3732, allocations: 196.9 kB / 0.5163 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3732, allocations: 1.219 kB / 0.5163 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.3733, allocations: 31.23 kB / 0.5164 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.3737, allocations: 27.56 kB / 0.5164 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005489/0.3742, allocations: 257.2 kB / 0.5166 GB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.634e-05/0.3743, allocations: 91.73 kB / 0.5167 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.733e-05/0.3744, allocations: 12.89 kB / 0.5167 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.148e-05/0.3744, allocations: 12.34 kB / 0.5168 GB, free: 13.88 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3744, allocations: 3.719 kB / 0.5168 GB, free: 13.88 MB / 382.1 MB Notification: Performance of Templates: time 0.004696/0.3791, allocations: 1.412 MB / 0.5181 GB, free: 13.81 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.9483770239166915]