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.002143/0.002143, 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.0014/0.0014, allocations: 169 kB / 23.02 MB, free: 1.551 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.9414/0.9414, allocations: 158.6 MB / 184.9 MB, free: 2.934 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.04275/0.04275, allocations: 10.65 MB / 247.9 MB, free: 4.453 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 1.664e-06/1.664e-06, allocations: 0 / 319.5 MB, free: 39.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.782e-05, allocations: 2.312 kB / 319.5 MB, free: 39.57 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002274/0.002302, allocations: 1.808 MB / 321.3 MB, free: 37.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000352/0.002654, allocations: 155.5 kB / 321.4 MB, free: 37.6 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.46e-05/0.002749, allocations: 7.938 kB / 321.4 MB, free: 37.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.002874, allocations: 15.8 kB / 321.5 MB, free: 37.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.003022, allocations: 35.72 kB / 321.5 MB, free: 37.54 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.136e-05/0.003093, allocations: 35.95 kB / 321.5 MB, free: 37.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.003221, allocations: 131.6 kB / 321.7 MB, free: 37.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.003349, allocations: 39.81 kB / 321.7 MB, free: 37.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.313e-05/0.003423, allocations: 71.83 kB / 321.8 MB, free: 37.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.947e-05/0.003502, allocations: 35.88 kB / 321.8 MB, free: 37.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.003526, allocations: 12 kB / 321.8 MB, free: 37.22 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.302e-05/0.003539, allocations: 8 kB / 321.8 MB, free: 37.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.588e-05/0.003564, allocations: 27.86 kB / 321.8 MB, free: 37.19 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.551e-05/0.0036, allocations: 31.91 kB / 321.9 MB, free: 37.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.003729, allocations: 75.62 kB / 321.9 MB, free: 37.08 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.003732, allocations: 3.984 kB / 322 MB, free: 37.08 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.003733, allocations: 0 / 322 MB, free: 37.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.003738, allocations: 0 / 322 MB, free: 37.08 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.0004393/0.004178, allocations: 458.5 kB / 322.4 MB, free: 36.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.004214, allocations: 8.031 kB / 322.4 MB, free: 36.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.004264, allocations: 24.84 kB / 322.4 MB, free: 36.56 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.004435, allocations: 156.9 kB / 322.6 MB, free: 36.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.004446, allocations: 8.375 kB / 322.6 MB, free: 36.38 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.004476, allocations: 8.375 kB / 322.6 MB, free: 36.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.004657, allocations: 122.4 kB / 322.7 MB, free: 36.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.004664, allocations: 192 / 322.7 MB, free: 36.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.004676, allocations: 16.12 kB / 322.7 MB, free: 36.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.004684, allocations: 0 / 322.7 MB, free: 36.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.63e-05/0.00474, allocations: 27.97 kB / 322.8 MB, free: 36.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.00522, allocations: 429.6 kB / 323.2 MB, free: 35.72 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.00546, allocations: 129.2 kB / 323.3 MB, free: 35.55 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.749e-05/0.005497, allocations: 35.12 kB / 323.3 MB, free: 35.51 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.005602, allocations: 8 kB / 323.4 MB, free: 35.5 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.00562, allocations: 37.38 kB / 323.4 MB, free: 35.45 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.005621, allocations: 3.938 kB / 323.4 MB, free: 35.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001991/0.00582, allocations: 89.52 kB / 323.5 MB, free: 35.36 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.005847, allocations: 102.8 kB / 323.6 MB, free: 35.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.883e-05/0.005936, allocations: 205.8 kB / 323.8 MB, free: 35.01 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.005947, allocations: 25.7 kB / 323.8 MB, free: 34.98 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.006, allocations: 162.7 kB / 324 MB, free: 34.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.006017, allocations: 31.98 kB / 324 MB, free: 34.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.006051, allocations: 31.38 kB / 324 MB, free: 34.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.926e-05/0.0061, allocations: 0.4884 MB / 324.5 MB, free: 34.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.665e-05/0.006127, allocations: 15.98 kB / 324.5 MB, free: 34.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.494e-05/0.006182, allocations: 110.3 kB / 324.6 MB, free: 34.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.248e-05/0.006244, allocations: 66.67 kB / 324.7 MB, free: 34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.006246, allocations: 0 / 324.7 MB, free: 34 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001959/0.006442, allocations: 117.5 kB / 324.8 MB, free: 33.88 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.006461, allocations: 5.875 kB / 324.8 MB, free: 33.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.006467, allocations: 4 kB / 324.8 MB, free: 33.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002157/0.006683, allocations: 31.66 kB / 324.9 MB, free: 33.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.064e-05/0.006743, allocations: 23.92 kB / 324.9 MB, free: 33.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007314/0.007475, allocations: 1.787 MB / 326.7 MB, free: 31.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.909e-05/0.007534, allocations: 15.89 kB / 326.7 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.007544, allocations: 4 kB / 326.7 MB, free: 31.88 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 6.587e-05/0.00761, allocations: 156.5 kB / 326.8 MB, free: 31.72 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.007636, allocations: 15.95 kB / 326.9 MB, free: 31.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.697e-05/0.007653, allocations: 16.45 kB / 326.9 MB, free: 31.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.007654, allocations: 4.031 kB / 326.9 MB, free: 31.69 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.007657, allocations: 0 / 326.9 MB, free: 31.69 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.00766, allocations: 4 kB / 326.9 MB, free: 31.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.007777, allocations: 152.5 kB / 327 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.007779, allocations: 0 / 327 MB, free: 31.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.007849, allocations: 15.98 kB / 327 MB, free: 31.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.007852, allocations: 4 kB / 327.1 MB, free: 31.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.007863, allocations: 0 / 327.1 MB, free: 31.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.007865, allocations: 3.938 kB / 327.1 MB, free: 31.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.007867, allocations: 4 kB / 327.1 MB, free: 31.47 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.008015, allocations: 251.1 kB / 327.3 MB, free: 31.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.384e-05/0.008029, allocations: 7.953 kB / 327.3 MB, free: 31.19 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.00804, allocations: 7.938 kB / 327.3 MB, free: 31.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.751e-05/0.008088, allocations: 4 kB / 327.3 MB, free: 31.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.008127, allocations: 7.984 kB / 327.3 MB, free: 31.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.008132, allocations: 4 kB / 327.3 MB, free: 31.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.837e-05/0.00818, allocations: 160.9 kB / 327.5 MB, free: 31.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008181, allocations: 0 / 327.5 MB, free: 31.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001701/0.008351, allocations: 19.94 kB / 327.5 MB, free: 30.99 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.199e-05/0.008433, allocations: 103.3 kB / 327.6 MB, free: 30.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002971/0.00873, allocations: 245.3 kB / 327.9 MB, free: 30.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.008732, allocations: 0 / 327.9 MB, free: 30.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.33e-05/0.008765, allocations: 27.62 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.0003264/0.009092, allocations: 31.53 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.0004708/0.009562, allocations: 249.8 kB / 328.2 MB, free: 30.28 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.713e-05/0.0096, allocations: 68.03 kB / 328.2 MB, free: 30.19 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.983e-05/0.009639, allocations: 8.484 kB / 328.2 MB, free: 30.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.009675, allocations: 16.5 kB / 328.2 MB, free: 30.16 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.009676, allocations: 0 / 328.2 MB, free: 30.16 MB / 282.7 MB Notification: Performance of Templates: time 0.003417/0.01309, allocations: 1.377 MB / 329.6 MB, free: 28.81 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: 3.0835339119657874]