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.001883/0.001883, allocations: 104.4 kB / 19.7 MB, free: 2.137 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.002344/0.002344, allocations: 218 kB / 22.99 MB, free: 4.965 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.52/1.52, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.08076/0.08076, allocations: 16.94 MB / 330.1 MB, free: 2.375 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.00252/0.00252, allocations: 67.89 kB / 463.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1324, allocations: 57.73 MB / 0.509 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00386/0.1363, allocations: 1.778 MB / 0.5107 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005492/0.1368, allocations: 143.5 kB / 0.5108 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.137, allocations: 3.938 kB / 0.5109 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.1372, allocations: 27.73 kB / 0.5109 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.1374, allocations: 27.8 kB / 0.5109 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001355/0.1375, allocations: 35.95 kB / 0.5109 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.1378, allocations: 123.7 kB / 0.5111 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.138, allocations: 45.48 kB / 0.5111 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.1381, allocations: 55.73 kB / 0.5112 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.1382, allocations: 39.77 kB / 0.5112 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.1383, allocations: 12 kB / 0.5112 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.742e-05/0.1383, allocations: 8 kB / 0.5112 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.4e-05/0.1383, allocations: 23.92 kB / 0.5112 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.405e-05/0.1384, allocations: 51.67 kB / 0.5113 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.1386, allocations: 103.5 kB / 0.5114 GB, free: 3.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.1386, allocations: 0 / 0.5114 GB, free: 3.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1386, allocations: 0 / 0.5114 GB, free: 3.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.1386, allocations: 0 / 0.5114 GB, free: 3.137 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.0008181/0.1394, allocations: 357.8 kB / 0.5117 GB, free: 2.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1395, allocations: 11.97 kB / 0.5117 GB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.601e-05/0.1396, allocations: 16.84 kB / 0.5118 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.1399, allocations: 157.4 kB / 0.5119 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.14, allocations: 8.375 kB / 0.5119 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.14, allocations: 8.375 kB / 0.5119 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.1403, allocations: 124.3 kB / 0.512 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1403, allocations: 0 / 0.512 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.1403, allocations: 4 kB / 0.512 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.1403, allocations: 0 / 0.512 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/0.1405, allocations: 63.89 kB / 0.5121 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007259/0.1413, allocations: 373 kB / 0.5125 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.1417, allocations: 123.8 kB / 0.5126 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1418, allocations: 42.62 kB / 0.5126 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.1419, allocations: 4 kB / 0.5126 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.1419, allocations: 34.56 kB / 0.5127 GB, free: 1.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.1419, allocations: 0 / 0.5127 GB, free: 1.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004305/0.1423, allocations: 137.3 kB / 0.5128 GB, free: 1.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/0.1424, allocations: 106.8 kB / 0.5129 GB, free: 1.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.1426, allocations: 150.4 kB / 0.513 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.1426, allocations: 29.7 kB / 0.5131 GB, free: 1.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.537e-05/0.1427, allocations: 116 kB / 0.5132 GB, free: 1.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.1427, allocations: 19.75 kB / 0.5132 GB, free: 1.078 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.369e-05/0.1428, allocations: 29.7 kB / 0.5132 GB, free: 1.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1429, allocations: 323.1 kB / 0.5135 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.828e-05/0.143, allocations: 23.98 kB / 0.5135 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.1432, allocations: 116.5 kB / 0.5137 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.1434, allocations: 75.41 kB / 0.5137 GB, free: 476 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1434, allocations: 4 kB / 0.5137 GB, free: 472 kB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003924/0.1438, allocations: 138.6 kB / 0.5139 GB, free: 324 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.1438, allocations: 4 kB / 0.5139 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.1439, allocations: 4 kB / 0.5139 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002329/0.1441, allocations: 36.83 kB / 0.5139 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1442, allocations: 19.92 kB / 0.5139 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2725/0.4167, allocations: 1.317 MB / 0.5152 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.4169, allocations: 15.67 kB / 0.5152 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.4169, allocations: 4.031 kB / 0.5152 GB, free: 14.83 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.0001088/0.417, allocations: 131.2 kB / 0.5154 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.649e-05/0.417, allocations: 11.17 kB / 0.5154 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.4171, allocations: 14.12 kB / 0.5154 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4171, allocations: 2.125 kB / 0.5154 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.4171, allocations: 2.406 kB / 0.5154 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-06/0.4171, allocations: 3.391 kB / 0.5154 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.4173, allocations: 146 kB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.4173, allocations: 1.875 kB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.4174, allocations: 17.16 kB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.4174, allocations: 1.719 kB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.4174, allocations: 3.219 kB / 0.5155 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4174, allocations: 0.9688 kB / 0.5156 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4174, allocations: 4.562 kB / 0.5156 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003616/0.4178, allocations: 235.6 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.429e-05/0.4178, allocations: 11.17 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.4178, allocations: 2.531 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.4179, allocations: 10.88 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.418, allocations: 11.22 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.418, allocations: 3.031 kB / 0.5158 GB, free: 14.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.009e-05/0.4181, allocations: 123.4 kB / 0.5159 GB, free: 14.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4181, allocations: 0.6875 kB / 0.5159 GB, free: 14.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.4183, allocations: 26.81 kB / 0.516 GB, free: 14.36 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.0001034/0.4185, allocations: 98.12 kB / 0.5161 GB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004923/0.4189, allocations: 190.7 kB / 0.5162 GB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4189, allocations: 0 / 0.5162 GB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.4191, allocations: 34.28 kB / 0.5163 GB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.4194, allocations: 24.73 kB / 0.5163 GB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005553/0.42, allocations: 288.8 kB / 0.5166 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.949e-05/0.42, allocations: 92.02 kB / 0.5167 GB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.4201, allocations: 17.16 kB / 0.5167 GB, free: 13.89 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4201, allocations: 0 / 0.5167 GB, free: 13.89 MB / 382.1 MB Notification: Performance of Templates: time 0.004043/0.4241, allocations: 1.754 MB / 0.5184 GB, free: 13.83 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=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 480] 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: 7.932261386886239]