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.001406/0.001406, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001608/0.001608, allocations: 217.6 kB / 23.01 MB, free: 4.609 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.08027/0.08027, allocations: 16.94 MB / 330.1 MB, free: 2.582 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.002012/0.002012, allocations: 71.88 kB / 463.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1193, allocations: 57.75 MB / 0.5091 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003376/0.1227, allocations: 1.828 MB / 0.5109 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003841/0.1231, allocations: 151.5 kB / 0.5111 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.1232, allocations: 7.938 kB / 0.5111 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.998e-05/0.1233, allocations: 19.8 kB / 0.5111 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.1234, allocations: 27.78 kB / 0.5111 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001121/0.1235, allocations: 39.89 kB / 0.5112 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.1237, allocations: 127.7 kB / 0.5113 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1238, allocations: 37.52 kB / 0.5113 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.146e-05/0.1239, allocations: 55.77 kB / 0.5114 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.124, allocations: 55.7 kB / 0.5114 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.124, allocations: 12 kB / 0.5114 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.1241, allocations: 12 kB / 0.5114 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.359e-05/0.1241, allocations: 19.92 kB / 0.5115 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.618e-05/0.1241, allocations: 51.67 kB / 0.5115 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.1243, allocations: 115.4 kB / 0.5116 GB, free: 3.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1243, allocations: 0 / 0.5116 GB, free: 3.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1243, allocations: 0 / 0.5116 GB, free: 3.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1243, allocations: 0 / 0.5116 GB, free: 3.18 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.0005603/0.1249, allocations: 353.8 kB / 0.512 GB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.601e-05/0.1249, allocations: 8.031 kB / 0.512 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.125, allocations: 20.84 kB / 0.512 GB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.1252, allocations: 154.8 kB / 0.5121 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1253, allocations: 8.375 kB / 0.5121 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.698e-05/0.1253, allocations: 12.38 kB / 0.5122 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.1255, allocations: 120.3 kB / 0.5123 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1256, allocations: 0 / 0.5123 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.1256, allocations: 7.938 kB / 0.5123 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1256, allocations: 4 kB / 0.5123 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.1258, allocations: 63.94 kB / 0.5123 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.1264, allocations: 420.3 kB / 0.5127 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.1268, allocations: 115.8 kB / 0.5129 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1269, allocations: 50.62 kB / 0.5129 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1269, allocations: 4 kB / 0.5129 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.127, allocations: 34.56 kB / 0.5129 GB, free: 1.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.127, allocations: 3.938 kB / 0.5129 GB, free: 1.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003708/0.1273, allocations: 125.7 kB / 0.5131 GB, free: 1.527 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.1274, allocations: 110.8 kB / 0.5132 GB, free: 1.395 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.1276, allocations: 152.9 kB / 0.5133 GB, free: 1.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1276, allocations: 29.7 kB / 0.5133 GB, free: 1.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.267e-05/0.1277, allocations: 112 kB / 0.5134 GB, free: 1.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.1277, allocations: 23.75 kB / 0.5135 GB, free: 1.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.1277, allocations: 29.7 kB / 0.5135 GB, free: 1.027 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1279, allocations: 322.9 kB / 0.5138 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.085e-05/0.128, allocations: 23.98 kB / 0.5138 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.1281, allocations: 57.14 kB / 0.5139 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.1283, allocations: 87.38 kB / 0.514 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1283, allocations: 0 / 0.514 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003802/0.1287, allocations: 138.5 kB / 0.5141 GB, free: 372 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1287, allocations: 4 kB / 0.5141 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.1287, allocations: 8.094 kB / 0.5141 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002107/0.1289, allocations: 37.02 kB / 0.5141 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.763e-05/0.129, allocations: 15.98 kB / 0.5142 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.249/0.378, allocations: 1.349 MB / 0.5155 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.3781, allocations: 10.53 kB / 0.5155 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.3781, allocations: 7.875 kB / 0.5155 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.0001058/0.3782, allocations: 121.9 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/0.3783, allocations: 9.484 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.3783, allocations: 17.3 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3783, allocations: 2.844 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.3783, allocations: 1.031 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3783, allocations: 1.844 kB / 0.5156 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.3785, allocations: 185.3 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3785, allocations: 0.8125 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.3787, allocations: 18.17 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3787, allocations: 3 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.3787, allocations: 2.547 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.3787, allocations: 0.9688 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3787, allocations: 1.719 kB / 0.5158 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003388/0.379, allocations: 243.2 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.083e-05/0.3791, allocations: 9.547 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.3791, allocations: 9.391 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.3792, allocations: 11.39 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.3792, allocations: 9.797 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3792, allocations: 5.078 kB / 0.5161 GB, free: 14.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.924e-05/0.3793, allocations: 114.7 kB / 0.5162 GB, free: 14.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3793, allocations: 0 / 0.5162 GB, free: 14.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.3796, allocations: 23.31 kB / 0.5163 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 9.326e-05/0.3797, allocations: 98.3 kB / 0.5163 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004541/0.3802, allocations: 201.6 kB / 0.5165 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3802, allocations: 0 / 0.5165 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.979e-05/0.3803, allocations: 29.44 kB / 0.5166 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.3806, allocations: 24.06 kB / 0.5166 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.3811, allocations: 282.3 kB / 0.5169 GB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.3813, allocations: 0.7058 MB / 0.5175 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.3813, allocations: 17.59 kB / 0.5176 GB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3813, allocations: 0 / 0.5176 GB, free: 13.2 MB / 382.1 MB Notification: Performance of Templates: time 0.003481/0.3848, allocations: 1.723 MB / 0.5192 GB, free: 13.14 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.5538701438345015]