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.0009916/0.0009916, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.0009898/0.0009898, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.8688/0.8688, allocations: 158.6 MB / 185.9 MB, free: 2.793 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.03989/0.03989, allocations: 10.65 MB / 249 MB, free: 4.297 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.485e-06/2.485e-06, allocations: 0 / 320.7 MB, free: 39.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.262e-05/3.511e-05, allocations: 2.312 kB / 320.7 MB, free: 39.29 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002573/0.002608, allocations: 1.809 MB / 322.5 MB, free: 37.46 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003628/0.002971, allocations: 155.5 kB / 322.7 MB, free: 37.31 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.003087, allocations: 7.938 kB / 322.7 MB, free: 37.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.00325, allocations: 11.81 kB / 322.7 MB, free: 37.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001632/0.003413, allocations: 31.72 kB / 322.7 MB, free: 37.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.932e-05/0.003482, allocations: 39.95 kB / 322.8 MB, free: 37.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.003628, allocations: 135.6 kB / 322.9 MB, free: 37.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.003772, allocations: 30.86 kB / 322.9 MB, free: 37.06 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.003859, allocations: 71.81 kB / 323 MB, free: 36.99 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.003961, allocations: 39.83 kB / 323 MB, free: 36.95 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.003985, allocations: 12 kB / 323 MB, free: 36.94 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.583e-05/0.004001, allocations: 8 kB / 323.1 MB, free: 36.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.4e-05/0.004035, allocations: 27.91 kB / 323.1 MB, free: 36.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.062e-05/0.004065, allocations: 23.92 kB / 323.1 MB, free: 36.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.004198, allocations: 83.59 kB / 323.2 MB, free: 36.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.0042, allocations: 4 kB / 323.2 MB, free: 36.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.004201, allocations: 0 / 323.2 MB, free: 36.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.004206, allocations: 0 / 323.2 MB, free: 36.8 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.0004844/0.004691, allocations: 450.5 kB / 323.6 MB, free: 36.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.004735, allocations: 12.03 kB / 323.6 MB, free: 36.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.136e-05/0.004786, allocations: 17.91 kB / 323.7 MB, free: 36.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.004966, allocations: 164.9 kB / 323.8 MB, free: 36.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.004979, allocations: 12.38 kB / 323.8 MB, free: 36.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.005005, allocations: 12.38 kB / 323.8 MB, free: 36.08 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.005158, allocations: 110.5 kB / 324 MB, free: 35.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.00517, allocations: 12.05 kB / 324 MB, free: 35.94 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.005182, allocations: 8.125 kB / 324 MB, free: 35.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.00519, allocations: 0 / 324 MB, free: 35.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.39e-05/0.005234, allocations: 25.7 kB / 324 MB, free: 35.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003926/0.005626, allocations: 402.2 kB / 324.4 MB, free: 35.48 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.005853, allocations: 118.2 kB / 324.5 MB, free: 35.33 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.541e-05/0.005888, allocations: 47.03 kB / 324.6 MB, free: 35.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.005904, allocations: 0 / 324.6 MB, free: 35.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.005926, allocations: 37.39 kB / 324.6 MB, free: 35.22 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.005927, allocations: 0 / 324.6 MB, free: 35.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001817/0.006109, allocations: 81.75 kB / 324.7 MB, free: 35.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.006145, allocations: 107 kB / 324.8 MB, free: 35.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.374e-05/0.006228, allocations: 209.8 kB / 325 MB, free: 34.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.006239, allocations: 25.7 kB / 325 MB, free: 34.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.104e-05/0.0063, allocations: 162.7 kB / 325.2 MB, free: 34.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.006316, allocations: 27.73 kB / 325.2 MB, free: 34.56 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.00635, allocations: 31.36 kB / 325.2 MB, free: 34.52 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.861e-05/0.006419, allocations: 0.4962 MB / 325.7 MB, free: 34.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.457e-05/0.006433, allocations: 4 kB / 325.7 MB, free: 34.01 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.856e-05/0.006482, allocations: 118.3 kB / 325.8 MB, free: 33.86 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.392e-05/0.006536, allocations: 62.72 kB / 325.9 MB, free: 33.78 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.006538, allocations: 0 / 325.9 MB, free: 33.78 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002043/0.006742, allocations: 105.2 kB / 326 MB, free: 33.67 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.006758, allocations: 11.94 kB / 326 MB, free: 33.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.006763, allocations: 0 / 326 MB, free: 33.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001979/0.006961, allocations: 39.73 kB / 326.1 MB, free: 33.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.81e-05/0.007019, allocations: 15.98 kB / 326.1 MB, free: 33.6 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007293/0.007748, allocations: 1.753 MB / 327.8 MB, free: 31.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.352e-05/0.007792, allocations: 15.89 kB / 327.8 MB, free: 31.71 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.007799, allocations: 0 / 327.8 MB, free: 31.71 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 5.981e-05/0.007859, allocations: 172.5 kB / 328 MB, free: 31.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.007882, allocations: 15.95 kB / 328 MB, free: 31.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.418e-05/0.007897, allocations: 8.469 kB / 328 MB, free: 31.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.007898, allocations: 4 kB / 328 MB, free: 31.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.007899, allocations: 0 / 328 MB, free: 31.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.007902, allocations: 3.938 kB / 328 MB, free: 31.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.502e-05/0.007998, allocations: 125.2 kB / 328.2 MB, free: 31.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.008001, allocations: 4 kB / 328.2 MB, free: 31.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.522e-05/0.008056, allocations: 19.98 kB / 328.2 MB, free: 31.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.008059, allocations: 4 kB / 328.2 MB, free: 31.33 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.008068, allocations: 8 kB / 328.2 MB, free: 31.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.008068, allocations: 0 / 328.2 MB, free: 31.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.008071, allocations: 7.938 kB / 328.2 MB, free: 31.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001301/0.008201, allocations: 243.2 kB / 328.4 MB, free: 31.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.298e-05/0.008214, allocations: 15.89 kB / 328.5 MB, free: 31.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.008224, allocations: 0 / 328.5 MB, free: 31.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.504e-05/0.008269, allocations: 7.984 kB / 328.5 MB, free: 31.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.008304, allocations: 8 kB / 328.5 MB, free: 31.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.00831, allocations: 3.984 kB / 328.5 MB, free: 31.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.748e-05/0.008347, allocations: 149.1 kB / 328.6 MB, free: 30.87 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008347, allocations: 0 / 328.6 MB, free: 30.87 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001569/0.008504, allocations: 23.94 kB / 328.6 MB, free: 30.85 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 7.364e-05/0.008578, allocations: 99.27 kB / 328.7 MB, free: 30.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002607/0.008839, allocations: 233.3 kB / 329 MB, free: 30.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.00884, allocations: 0 / 329 MB, free: 30.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.005e-05/0.00887, allocations: 23.92 kB / 329 MB, free: 30.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.009101, allocations: 42.12 kB / 329 MB, free: 30.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.009426, allocations: 249.4 kB / 329.3 MB, free: 30.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.091e-05/0.009457, allocations: 68.02 kB / 329.3 MB, free: 30.06 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.731e-05/0.009495, allocations: 8.5 kB / 329.4 MB, free: 30.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/0.009562, allocations: 86.19 kB / 329.4 MB, free: 29.96 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.009562, allocations: 0 / 329.4 MB, free: 29.96 MB / 282.7 MB Notification: Performance of Templates: time 0.003354/0.01292, allocations: 1.505 MB / 330.9 MB, free: 28.48 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.833726853132248]