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.0008951/0.0008951, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001405/0.001405, allocations: 173 kB / 23.49 MB, free: 1.059 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.8774/0.8774, allocations: 158.6 MB / 185.3 MB, free: 2.93 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.03999/0.03999, allocations: 10.65 MB / 248.2 MB, free: 4.531 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.413e-06/1.413e-06, allocations: 3.938 kB / 319.4 MB, free: 39.97 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.593e-05/2.734e-05, allocations: 2.312 kB / 319.4 MB, free: 39.97 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002083/0.00211, allocations: 1.811 MB / 321.2 MB, free: 38.15 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003391/0.002449, allocations: 155.5 kB / 321.4 MB, free: 38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.39e-05/0.002543, allocations: 3.938 kB / 321.4 MB, free: 38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.002681, allocations: 19.8 kB / 321.4 MB, free: 37.98 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.002835, allocations: 39.72 kB / 321.5 MB, free: 37.94 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.473e-05/0.002899, allocations: 35.95 kB / 321.5 MB, free: 37.9 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.003029, allocations: 127.6 kB / 321.6 MB, free: 37.78 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.00316, allocations: 34.84 kB / 321.7 MB, free: 37.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.166e-05/0.003242, allocations: 75.81 kB / 321.7 MB, free: 37.67 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.692e-05/0.003329, allocations: 35.89 kB / 321.8 MB, free: 37.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.003358, allocations: 8 kB / 321.8 MB, free: 37.63 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.463e-05/0.003372, allocations: 12 kB / 321.8 MB, free: 37.62 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.732e-05/0.0034, allocations: 27.8 kB / 321.8 MB, free: 37.59 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.219e-05/0.003432, allocations: 35.89 kB / 321.8 MB, free: 37.55 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.003556, allocations: 75.69 kB / 321.9 MB, free: 37.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.003559, allocations: 0 / 321.9 MB, free: 37.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.00356, allocations: 0 / 321.9 MB, free: 37.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.003564, allocations: 0 / 321.9 MB, free: 37.48 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.0004304/0.003995, allocations: 458.4 kB / 322.4 MB, free: 37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.00403, allocations: 8.031 kB / 322.4 MB, free: 36.99 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.692e-05/0.004087, allocations: 20.84 kB / 322.4 MB, free: 36.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.004268, allocations: 157 kB / 322.5 MB, free: 36.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.00428, allocations: 8.375 kB / 322.6 MB, free: 36.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.004306, allocations: 12.38 kB / 322.6 MB, free: 36.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.004465, allocations: 122.4 kB / 322.7 MB, free: 36.63 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.004474, allocations: 192 / 322.7 MB, free: 36.63 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.004485, allocations: 8.125 kB / 322.7 MB, free: 36.62 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.004494, allocations: 4 kB / 322.7 MB, free: 36.62 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.549e-05/0.00455, allocations: 28.8 kB / 322.7 MB, free: 36.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004145/0.004964, allocations: 425.6 kB / 323.1 MB, free: 36.13 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.005207, allocations: 129.2 kB / 323.3 MB, free: 35.96 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.493e-05/0.005242, allocations: 35.19 kB / 323.3 MB, free: 35.92 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.005256, allocations: 4 kB / 323.3 MB, free: 35.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.597e-05/0.005272, allocations: 37.39 kB / 323.3 MB, free: 35.87 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.005273, allocations: 0 / 323.3 MB, free: 35.87 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001771/0.00545, allocations: 93.5 kB / 323.4 MB, free: 35.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/0.005477, allocations: 107.1 kB / 323.5 MB, free: 35.64 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.928e-05/0.005556, allocations: 213.8 kB / 323.7 MB, free: 35.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.256e-06/0.005564, allocations: 25.7 kB / 323.8 MB, free: 35.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.005608, allocations: 158.7 kB / 323.9 MB, free: 35.22 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.005625, allocations: 35.72 kB / 324 MB, free: 35.19 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.005657, allocations: 31.38 kB / 324 MB, free: 35.15 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.251e-05/0.005699, allocations: 0.4923 MB / 324.5 MB, free: 34.64 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.33e-05/0.005723, allocations: 4 kB / 324.5 MB, free: 34.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.211e-05/0.005765, allocations: 122.2 kB / 324.6 MB, free: 34.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.437e-05/0.005819, allocations: 66.7 kB / 324.7 MB, free: 34.4 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.005821, allocations: 0 / 324.7 MB, free: 34.4 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001621/0.005983, allocations: 109.2 kB / 324.8 MB, free: 34.29 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.005996, allocations: 5.875 kB / 324.8 MB, free: 34.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.006, allocations: 0 / 324.8 MB, free: 34.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001969/0.006197, allocations: 51.66 kB / 324.8 MB, free: 34.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.19e-05/0.006249, allocations: 15.98 kB / 324.9 MB, free: 34.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005743/0.006823, allocations: 1.771 MB / 326.6 MB, free: 32.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.006868, allocations: 15.89 kB / 326.6 MB, free: 32.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.944e-06/0.006876, allocations: 4 kB / 326.6 MB, free: 32.3 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.132e-05/0.006928, allocations: 168.5 kB / 326.8 MB, free: 32.12 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.006949, allocations: 7.953 kB / 326.8 MB, free: 32.11 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.441e-05/0.006963, allocations: 16.45 kB / 326.8 MB, free: 32.1 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.006965, allocations: 4 kB / 326.8 MB, free: 32.1 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.006967, allocations: 320 / 326.8 MB, free: 32.1 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.00697, allocations: 0 / 326.8 MB, free: 32.1 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.748e-05/0.007068, allocations: 156.5 kB / 327 MB, free: 31.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.007069, allocations: 0 / 327 MB, free: 31.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.798e-05/0.007127, allocations: 19.92 kB / 327 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.007129, allocations: 4 kB / 327 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.007138, allocations: 0 / 327 MB, free: 31.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.00714, allocations: 7.984 kB / 327 MB, free: 31.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.007141, allocations: 0 / 327 MB, free: 31.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.007263, allocations: 251.1 kB / 327.3 MB, free: 31.61 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.234e-05/0.007275, allocations: 12.08 kB / 327.3 MB, free: 31.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.007287, allocations: 11.92 kB / 327.3 MB, free: 31.58 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.546e-05/0.007332, allocations: 4 kB / 327.3 MB, free: 31.58 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.007368, allocations: 7.984 kB / 327.3 MB, free: 31.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.007372, allocations: 3.938 kB / 327.3 MB, free: 31.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.971e-05/0.007412, allocations: 165 kB / 327.5 MB, free: 31.41 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007412, allocations: 0 / 327.5 MB, free: 31.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001591/0.007571, allocations: 23.94 kB / 327.5 MB, free: 31.38 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.179e-05/0.007643, allocations: 91.25 kB / 327.6 MB, free: 31.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002545/0.007897, allocations: 237.3 kB / 327.8 MB, free: 31.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.007899, allocations: 0 / 327.8 MB, free: 31.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.9e-05/0.007928, allocations: 27.92 kB / 327.8 MB, free: 31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.008156, allocations: 32.67 kB / 327.9 MB, free: 30.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.008519, allocations: 253.5 kB / 328.1 MB, free: 30.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.181e-05/0.008561, allocations: 68.03 kB / 328.2 MB, free: 30.6 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.034e-05/0.008601, allocations: 12.48 kB / 328.2 MB, free: 30.58 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.021e-05/0.008632, allocations: 16.5 kB / 328.2 MB, free: 30.57 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.008632, allocations: 0 / 328.2 MB, free: 30.57 MB / 282.7 MB Notification: Performance of Templates: time 0.003178/0.01181, allocations: 1.375 MB / 329.6 MB, free: 29.22 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.818546131020412]