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.001173/0.001173, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001471/0.002644, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001098/0.001098, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001366/0.002464, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 / 171 MB, free: 2.594 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1472/1.089, allocations: 49.51 MB / 220.5 MB, free: 1.449 MB / 218.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.05304/0.05304, allocations: 10.64 MB / 231.9 MB, free: 6.074 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01033/0.06337, allocations: 4.143 MB / 236 MB, free: 1.918 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.423e-06/1.423e-06, allocations: 0 / 237.4 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.045e-05/2.187e-05, allocations: 2.312 kB / 237.4 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002346/0.002368, allocations: 1.873 MB / 239.2 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002671/0.002635, allocations: 159.5 kB / 239.4 MB, free: 14.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.625e-05/0.002711, allocations: 7.938 kB / 239.4 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.179e-05/0.002793, allocations: 23.73 kB / 239.4 MB, free: 14.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.985e-05/0.002883, allocations: 23.8 kB / 239.4 MB, free: 14.5 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.296e-05/0.002956, allocations: 35.95 kB / 239.5 MB, free: 14.46 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.003096, allocations: 143.5 kB / 239.6 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.003207, allocations: 38.12 kB / 239.7 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.003315, allocations: 91.8 kB / 239.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.343e-05/0.003399, allocations: 31.91 kB / 239.8 MB, free: 14.16 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.003423, allocations: 8 kB / 239.8 MB, free: 14.15 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.35e-05/0.003436, allocations: 8 kB / 239.8 MB, free: 14.14 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.054e-05/0.003457, allocations: 15.94 kB / 239.8 MB, free: 14.13 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.424e-05/0.003491, allocations: 31.88 kB / 239.8 MB, free: 14.1 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.003616, allocations: 63.75 kB / 239.9 MB, free: 14.04 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.515e-05/0.003631, allocations: 0 / 239.9 MB, free: 14.04 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.003632, allocations: 3.938 kB / 239.9 MB, free: 14.03 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.003651, allocations: 8 kB / 239.9 MB, free: 14.02 MB / 250.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.0005215/0.004173, allocations: 348 kB / 240.3 MB, free: 13.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.004208, allocations: 11.89 kB / 240.3 MB, free: 13.64 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.004249, allocations: 16.92 kB / 240.3 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.004422, allocations: 150.1 kB / 240.4 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.004434, allocations: 8.312 kB / 240.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.004457, allocations: 8.375 kB / 240.4 MB, free: 13.44 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.004616, allocations: 117.4 kB / 240.6 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.004624, allocations: 192 / 240.6 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.004634, allocations: 8.125 kB / 240.6 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.004641, allocations: 4 kB / 240.6 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.327e-05/0.004684, allocations: 23.92 kB / 240.6 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004012/0.005085, allocations: 284.9 kB / 240.9 MB, free: 12.97 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.0053, allocations: 91.7 kB / 241 MB, free: 12.85 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.117e-05/0.005331, allocations: 30.62 kB / 241 MB, free: 12.81 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.005346, allocations: 0 / 241 MB, free: 12.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.005368, allocations: 34.56 kB / 241 MB, free: 12.77 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.005369, allocations: 0 / 241 MB, free: 12.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.000159/0.005528, allocations: 73.55 kB / 241.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.005572, allocations: 106.8 kB / 241.2 MB, free: 12.56 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.652e-05/0.005659, allocations: 146.6 kB / 241.3 MB, free: 12.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.005671, allocations: 25.95 kB / 241.4 MB, free: 12.38 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.005725, allocations: 115.8 kB / 241.5 MB, free: 12.26 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.005746, allocations: 31.78 kB / 241.5 MB, free: 12.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.00578, allocations: 21.72 kB / 241.5 MB, free: 12.2 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.409e-05/0.005864, allocations: 326.8 kB / 241.9 MB, free: 11.87 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.131e-05/0.005886, allocations: 4.25 kB / 241.9 MB, free: 11.87 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.178e-05/0.005948, allocations: 100.5 kB / 242 MB, free: 11.74 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.745e-05/0.006005, allocations: 55.34 kB / 242 MB, free: 11.67 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.006007, allocations: 4.031 kB / 242 MB, free: 11.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001574/0.006165, allocations: 86.44 kB / 242.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.006179, allocations: 8 kB / 242.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.006186, allocations: 3.938 kB / 242.1 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.006354, allocations: 36.86 kB / 242.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.58e-05/0.00641, allocations: 19.92 kB / 242.2 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008364/0.007246, allocations: 1.214 MB / 243.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.256e-05/0.007299, allocations: 11.94 kB / 243.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.007307, allocations: 4 kB / 243.4 MB, free: 10.19 MB / 250.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.78e-05/0.007375, allocations: 113.9 kB / 243.5 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.007398, allocations: 11.94 kB / 243.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.007419, allocations: 16.45 kB / 243.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.00742, allocations: 0 / 243.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.007421, allocations: 0 / 243.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.007425, allocations: 4 kB / 243.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.007543, allocations: 97.78 kB / 243.6 MB, free: 9.922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.007545, allocations: 0 / 243.6 MB, free: 9.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.352e-05/0.007609, allocations: 23.98 kB / 243.7 MB, free: 9.898 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.576e-05/0.007624, allocations: 11.89 kB / 243.7 MB, free: 9.887 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.007627, allocations: 4 kB / 243.7 MB, free: 9.883 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.007634, allocations: 4 kB / 243.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.007636, allocations: 0 / 243.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.007639, allocations: 4 kB / 243.7 MB, free: 9.875 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.007764, allocations: 173.2 kB / 243.9 MB, free: 9.684 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.007777, allocations: 15.88 kB / 243.9 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.532e-05/0.007823, allocations: 0 / 243.9 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.879e-05/0.007852, allocations: 7.984 kB / 243.9 MB, free: 9.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.007855, allocations: 0 / 243.9 MB, free: 9.66 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.945e-05/0.007885, allocations: 33.59 kB / 243.9 MB, free: 9.625 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.007885, allocations: 0 / 243.9 MB, free: 9.625 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001476/0.008033, allocations: 23.98 kB / 243.9 MB, free: 9.602 MB / 250.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.663e-05/0.008109, allocations: 84.39 kB / 244 MB, free: 9.512 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002471/0.008356, allocations: 163.4 kB / 244.2 MB, free: 9.336 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/0.008368, allocations: 0 / 244.2 MB, free: 9.336 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.008403, allocations: 28.86 kB / 244.2 MB, free: 9.305 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.008609, allocations: 28.23 kB / 244.2 MB, free: 9.277 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005403/0.009149, allocations: 258.7 kB / 244.5 MB, free: 8.992 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.073e-05/0.00919, allocations: 71.33 kB / 244.5 MB, free: 8.902 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.29e-05/0.009233, allocations: 8.5 kB / 244.6 MB, free: 8.895 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.009299, allocations: 67.3 kB / 244.6 MB, free: 8.828 MB / 250.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009299, allocations: 0 / 244.6 MB, free: 8.828 MB / 250.7 MB Notification: Performance of Templates: time 0.003198/0.0125, allocations: 1.461 MB / 246.1 MB, free: 7.367 MB / 250.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 -ignoreHideResult -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.6966968663036823]