Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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.001073/0.001073, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001054/0.001054, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8451/0.8451, allocations: 158.6 MB / 184.9 MB, free: 2.699 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05542/0.05542, allocations: 10.65 MB / 247.9 MB, free: 4.438 MB / 234.7 MB " [Timeout remaining time 180] Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 319.5 MB, free: 39.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.952e-05, allocations: 3.516 kB / 319.5 MB, free: 39.56 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003062/0.003092, allocations: 1.811 MB / 321.3 MB, free: 37.74 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004237/0.003515, allocations: 147.4 kB / 321.4 MB, free: 37.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.003625, allocations: 4 kB / 321.4 MB, free: 37.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.003766, allocations: 19.8 kB / 321.5 MB, free: 37.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.00393, allocations: 35.72 kB / 321.5 MB, free: 37.54 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.842e-05/0.004018, allocations: 35.95 kB / 321.5 MB, free: 37.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.004179, allocations: 131.6 kB / 321.7 MB, free: 37.37 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.00432, allocations: 46.77 kB / 321.7 MB, free: 37.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.349e-05/0.004413, allocations: 63.83 kB / 321.8 MB, free: 37.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.918e-05/0.004502, allocations: 39.88 kB / 321.8 MB, free: 37.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.004531, allocations: 12 kB / 321.8 MB, free: 37.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.691e-05/0.004548, allocations: 8 kB / 321.8 MB, free: 37.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.004574, allocations: 23.86 kB / 321.8 MB, free: 37.18 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.004613, allocations: 35.91 kB / 321.9 MB, free: 37.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.004749, allocations: 75.67 kB / 321.9 MB, free: 37.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.004751, allocations: 0 / 321.9 MB, free: 37.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.004752, allocations: 0 / 321.9 MB, free: 37.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.004757, allocations: 0 / 321.9 MB, free: 37.07 MB / 282.7 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.0004821/0.005239, allocations: 458.4 kB / 322.4 MB, free: 36.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.005278, allocations: 12.03 kB / 322.4 MB, free: 36.58 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.267e-05/0.00534, allocations: 24.84 kB / 322.4 MB, free: 36.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.005534, allocations: 161 kB / 322.6 MB, free: 36.37 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.005549, allocations: 8.375 kB / 322.6 MB, free: 36.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.005577, allocations: 12.3 kB / 322.6 MB, free: 36.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.00578, allocations: 122.5 kB / 322.7 MB, free: 36.21 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.005789, allocations: 192 / 322.7 MB, free: 36.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.005803, allocations: 8.125 kB / 322.7 MB, free: 36.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.005812, allocations: 0 / 322.7 MB, free: 36.2 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.574e-05/0.005888, allocations: 35.91 kB / 322.8 MB, free: 36.17 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005264/0.006414, allocations: 421.6 kB / 323.2 MB, free: 35.71 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000282/0.006696, allocations: 133.3 kB / 323.3 MB, free: 35.54 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.759e-05/0.006744, allocations: 31.12 kB / 323.3 MB, free: 35.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.006758, allocations: 0 / 323.3 MB, free: 35.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.006779, allocations: 49.31 kB / 323.4 MB, free: 35.44 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.006781, allocations: 0 / 323.4 MB, free: 35.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002173/0.006998, allocations: 77.58 kB / 323.5 MB, free: 35.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.007024, allocations: 107.1 kB / 323.6 MB, free: 35.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.007145, allocations: 209.8 kB / 323.8 MB, free: 35.01 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.007157, allocations: 33.64 kB / 323.8 MB, free: 34.97 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.873e-05/0.007216, allocations: 162.7 kB / 324 MB, free: 34.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.007237, allocations: 31.73 kB / 324 MB, free: 34.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.007278, allocations: 23.38 kB / 324 MB, free: 34.74 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.011e-05/0.007328, allocations: 0.4923 MB / 324.5 MB, free: 34.24 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.141e-05/0.007359, allocations: 11.92 kB / 324.5 MB, free: 34.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-05/0.007419, allocations: 114.3 kB / 324.6 MB, free: 34.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.794e-05/0.007497, allocations: 74.95 kB / 324.7 MB, free: 33.99 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.0075, allocations: 0 / 324.7 MB, free: 33.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002347/0.007735, allocations: 113.1 kB / 324.8 MB, free: 33.87 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.007752, allocations: 6.188 kB / 324.8 MB, free: 33.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.007759, allocations: 4 kB / 324.8 MB, free: 33.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.008, allocations: 39.75 kB / 324.9 MB, free: 33.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.468e-05/0.008075, allocations: 15.98 kB / 324.9 MB, free: 33.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007985/0.008873, allocations: 1.779 MB / 326.7 MB, free: 31.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.819e-05/0.008941, allocations: 11.89 kB / 326.7 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.008952, allocations: 0 / 326.7 MB, free: 31.89 MB / 282.7 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 7.398e-05/0.009026, allocations: 168.5 kB / 326.8 MB, free: 31.71 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.85e-05/0.009065, allocations: 15.94 kB / 326.9 MB, free: 31.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.092e-05/0.009086, allocations: 16.47 kB / 326.9 MB, free: 31.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.009088, allocations: 0 / 326.9 MB, free: 31.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.00909, allocations: 0 / 326.9 MB, free: 31.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.009094, allocations: 0 / 326.9 MB, free: 31.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.009243, allocations: 156.5 kB / 327 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.009245, allocations: 0 / 327 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.373e-05/0.009329, allocations: 15.98 kB / 327 MB, free: 31.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.009333, allocations: 8 kB / 327.1 MB, free: 31.47 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.009345, allocations: 4 kB / 327.1 MB, free: 31.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.009347, allocations: 0 / 327.1 MB, free: 31.47 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.009349, allocations: 1.078 kB / 327.1 MB, free: 31.47 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.009521, allocations: 259.1 kB / 327.3 MB, free: 31.19 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.00954, allocations: 11.95 kB / 327.3 MB, free: 31.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.009556, allocations: 4 kB / 327.3 MB, free: 31.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.719e-05/0.009634, allocations: 0 / 327.3 MB, free: 31.17 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.009675, allocations: 11.98 kB / 327.3 MB, free: 31.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.009681, allocations: 4 kB / 327.3 MB, free: 31.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.709e-05/0.009738, allocations: 160.9 kB / 327.5 MB, free: 31 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.009739, allocations: 0 / 327.5 MB, free: 31 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003046/0.01004, allocations: 23.94 kB / 327.5 MB, free: 30.98 MB / 282.7 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.17e-05/0.01012, allocations: 91.25 kB / 327.6 MB, free: 30.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003353/0.01046, allocations: 241.3 kB / 327.8 MB, free: 30.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01046, allocations: 4 kB / 327.8 MB, free: 30.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.506e-05/0.01051, allocations: 27.94 kB / 327.9 MB, free: 30.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.01087, allocations: 30.97 kB / 327.9 MB, free: 30.56 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004589/0.01133, allocations: 250.2 kB / 328.2 MB, free: 30.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.732e-05/0.01137, allocations: 71.97 kB / 328.2 MB, free: 30.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.012e-05/0.01143, allocations: 16.47 kB / 328.2 MB, free: 30.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.01147, allocations: 12.5 kB / 328.2 MB, free: 30.15 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01147, allocations: 0 / 328.2 MB, free: 30.15 MB / 282.7 MB Notification: Performance of Templates: time 0.0042/0.01567, allocations: 1.435 MB / 329.7 MB, free: 28.75 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7128471634350717]