Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo): time 0.01744/0.01744, allocations: 1.796 MB / 21.15 MB, free: 3.246 MB / 18.57 MB " [Timeout remaining time 180] 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.001835/0.001835, allocations: 75.88 kB / 24.88 MB, free: 6.824 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.001997/0.001997, allocations: 168.4 kB / 28.74 MB, free: 3.648 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 177.2 MB / 209.6 MB, free: 2.406 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 1.099/1.099, allocations: 102.5 MB / 369.1 MB, free: 0.918 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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) Using package SMArtInt with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|timeExtrema.ymax|timeExtrema.ymin",fileNamePrefix="ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|timeExtrema.ymax|timeExtrema.ymin",fileNamePrefix="ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 469.1 MB, free: 13.02 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.746e-05/3.918e-05, allocations: 6.25 kB / 469.1 MB, free: 13.02 MB / 442.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.004021/0.00406, allocations: 2.324 MB / 471.5 MB, free: 10.68 MB / 442.8 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.005161, allocations: 0.5143 MB / 472 MB, free: 10.16 MB / 442.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.046e-05/0.005221, allocations: 0 / 472 MB, free: 10.16 MB / 442.8 MB Notification: Performance of NFTyping.typeComponents: time 8.379e-05/0.005305, allocations: 7.875 kB / 472 MB, free: 10.15 MB / 442.8 MB Notification: Performance of NFTyping.typeBindings: time 9.073e-05/0.005395, allocations: 15.81 kB / 472 MB, free: 10.14 MB / 442.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.005692, allocations: 51.86 kB / 472.1 MB, free: 10.09 MB / 442.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001696/0.005862, allocations: 83.7 kB / 472.1 MB, free: 10 MB / 442.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.005969, allocations: 11.98 kB / 472.2 MB, free: 9.992 MB / 442.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.006166, allocations: 59.81 kB / 472.2 MB, free: 9.934 MB / 442.8 MB Notification: Performance of NFSimplifyModel.simplify: time 8.023e-05/0.006246, allocations: 23.97 kB / 472.2 MB, free: 9.91 MB / 442.8 MB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.006271, allocations: 11.94 kB / 472.2 MB, free: 9.898 MB / 442.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.143e-05/0.006323, allocations: 12 kB / 472.3 MB, free: 9.887 MB / 442.8 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.006379, allocations: 19.97 kB / 472.3 MB, free: 9.867 MB / 442.8 MB Notification: Performance of NFVerifyModel.verify: time 4.103e-05/0.00642, allocations: 19.92 kB / 472.3 MB, free: 9.848 MB / 442.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.006607, allocations: 87.69 kB / 472.4 MB, free: 9.762 MB / 442.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.006611, allocations: 4 kB / 472.4 MB, free: 9.758 MB / 442.8 MB Notification: Performance of FrontEnd: time 1.362e-06/0.006612, allocations: 0 / 472.4 MB, free: 9.758 MB / 442.8 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.006617, allocations: 0 / 472.4 MB, free: 9.758 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007941/0.007411, allocations: 427.9 kB / 472.8 MB, free: 9.305 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.00745, allocations: 8.031 kB / 472.8 MB, free: 9.297 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.007607, allocations: 20.89 kB / 472.8 MB, free: 9.277 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.007836, allocations: 142.4 kB / 473 MB, free: 9.113 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.007859, allocations: 4.375 kB / 473 MB, free: 9.109 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.007883, allocations: 12.31 kB / 473 MB, free: 9.098 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.008149, allocations: 82.2 kB / 473.1 MB, free: 9.012 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.008157, allocations: 192 / 473.1 MB, free: 9.012 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.008175, allocations: 8.375 kB / 473.1 MB, free: 9.004 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.008181, allocations: 3.938 kB / 473.1 MB, free: 9 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.008394, allocations: 51.97 kB / 473.1 MB, free: 8.949 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005359/0.00893, allocations: 315.6 kB / 473.4 MB, free: 8.605 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005832/0.009513, allocations: 139 kB / 473.6 MB, free: 8.457 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.009658, allocations: 43.66 kB / 473.6 MB, free: 8.41 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.009679, allocations: 4 kB / 473.6 MB, free: 8.406 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.009712, allocations: 37.42 kB / 473.7 MB, free: 8.359 MB / 442.8 MB Notification: Performance of pre-optimization done (n=5): time 9.22e-07/0.009713, allocations: 4 kB / 473.7 MB, free: 8.355 MB / 442.8 MB Notification: Performance of matching and sorting (n=5): time 0.0005705/0.01028, allocations: 145.6 kB / 473.8 MB, free: 8.207 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.01033, allocations: 51.41 kB / 473.9 MB, free: 8.145 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.0105, allocations: 193.9 kB / 474 MB, free: 7.938 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.01052, allocations: 29.7 kB / 474.1 MB, free: 7.902 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.01064, allocations: 154.7 kB / 474.2 MB, free: 7.746 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.01068, allocations: 15.86 kB / 474.2 MB, free: 7.73 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.49e-05/0.01074, allocations: 35.36 kB / 474.3 MB, free: 7.688 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002592/0.011, allocations: 0.4923 MB / 474.8 MB, free: 7.184 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.01115, allocations: 35.98 kB / 474.8 MB, free: 7.148 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.01129, allocations: 43.95 kB / 474.8 MB, free: 7.105 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.01156, allocations: 75.58 kB / 474.9 MB, free: 7.027 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.01156, allocations: 0 / 474.9 MB, free: 7.027 MB / 442.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003447/0.0119, allocations: 133.5 kB / 475 MB, free: 6.891 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.01192, allocations: 4 kB / 475 MB, free: 6.887 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.01192, allocations: 0 / 475 MB, free: 6.887 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.01194, allocations: 3.984 kB / 475.1 MB, free: 6.883 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.01207, allocations: 23.97 kB / 475.1 MB, free: 6.859 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.01208, allocations: 0 / 475.1 MB, free: 6.859 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.055e-05/0.01216, allocations: 12 kB / 475.1 MB, free: 6.848 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.01217, allocations: 11.92 kB / 475.1 MB, free: 6.836 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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): 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 prepare postOptimizeDAE: time 0.000127/0.0123, allocations: 160.6 kB / 475.3 MB, free: 6.668 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.01233, allocations: 11.89 kB / 475.3 MB, free: 6.656 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.376e-05/0.01237, allocations: 16.41 kB / 475.3 MB, free: 6.645 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.01237, allocations: 0 / 475.3 MB, free: 6.645 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.01237, allocations: 256 / 475.3 MB, free: 6.645 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.01238, allocations: 0 / 475.3 MB, free: 6.645 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.01259, allocations: 148.5 kB / 475.4 MB, free: 6.465 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01259, allocations: 0 / 475.4 MB, free: 6.465 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.01276, allocations: 23.92 kB / 475.5 MB, free: 6.441 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01276, allocations: 4 kB / 475.5 MB, free: 6.438 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.01277, allocations: 3.984 kB / 475.5 MB, free: 6.434 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.01277, allocations: 0 / 475.5 MB, free: 6.434 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.01277, allocations: 0 / 475.5 MB, free: 6.434 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006108/0.01338, allocations: 311.7 kB / 475.8 MB, free: 6.109 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 1.906e-05/0.0134, allocations: 11.89 kB / 475.8 MB, free: 6.098 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.01342, allocations: 0 / 475.8 MB, free: 6.098 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.01353, allocations: 20.02 kB / 475.8 MB, free: 6.078 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.01359, allocations: 3.984 kB / 475.8 MB, free: 6.074 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.01359, allocations: 0 / 475.8 MB, free: 6.074 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0001047/0.0137, allocations: 149.7 kB / 475.9 MB, free: 5.93 MB / 442.8 MB Notification: Performance of sort global known variables: time 5e-08/0.0137, allocations: 0 / 475.9 MB, free: 5.93 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.0002351/0.01393, allocations: 16 kB / 476 MB, free: 5.914 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (timeExtrema.ymax,timeExtrema.ymin) * 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 (5): * Single equations (assignments): 5 * 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 0.0001322/0.01407, allocations: 91.25 kB / 476.1 MB, free: 5.812 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.01457, allocations: 103.6 kB / 476.2 MB, free: 5.707 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01457, allocations: 0 / 476.2 MB, free: 5.707 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.01474, allocations: 47.66 kB / 476.2 MB, free: 5.656 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.01501, allocations: 15.98 kB / 476.2 MB, free: 5.641 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005127/0.01552, allocations: 202.9 kB / 476.4 MB, free: 5.402 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.281e-05/0.01562, allocations: 87.25 kB / 476.5 MB, free: 5.297 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 4.796e-05/0.01566, allocations: 4 kB / 476.5 MB, free: 5.293 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.01571, allocations: 8.5 kB / 476.5 MB, free: 5.285 MB / 442.8 MB Notification: Performance of SimCode: time 6.21e-07/0.01571, allocations: 0 / 476.5 MB, free: 5.285 MB / 442.8 MB Notification: Performance of Templates: time 0.0041/0.01981, allocations: 0.8748 MB / 477.4 MB, free: 4.43 MB / 442.8 MB " [Timeout remaining time 800] make -j1 -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.makefile [Timeout 800] (rm -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; mkfifo ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; head -c 1048576 < ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe >> ../files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.sim & ./ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) [Timeout 240] diffSimulationResults("ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 800] "" [Timeout remaining time 800] "" Variables in the reference:Time,timeExtrema.ymax,timeExtrema.ymin Variables in the result:T.k1,T.k2,ramp.duration,ramp.height,ramp.offset,ramp.startTime,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,time,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.y_start[1],timeExtrema.y_start[2],timeExtrema.ymax,timeExtrema.ymin [Calling sys.exit(0), Time elapsed: 5.662764945998788]