Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_dev_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.006014/0.006014, allocations: 1.442 MB / 20.53 MB, free: 4.012 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.000678/0.000678, allocations: 91.45 kB / 24.16 MB, free: 396 kB / 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.0008263/0.0008263, allocations: 160.2 kB / 27.85 MB, free: 5.496 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 0.8531/0.8531, allocations: 177.1 MB / 208.6 MB, free: 2.969 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo): time 0.717/0.717, allocations: 102.4 MB / 367.9 MB, free: 1.438 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/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 0.5.2 (/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_dev_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_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 0.5367 GB, free: 39.69 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.739e-05/1.864e-05, allocations: 4.578 kB / 0.5367 GB, free: 39.68 MB / 490.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.002112/0.002131, allocations: 2.307 MB / 0.5389 GB, free: 38.09 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006905/0.002821, allocations: 0.5065 MB / 0.5394 GB, free: 37.76 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.344e-05/0.002884, allocations: 1.344 kB / 0.5394 GB, free: 37.76 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 4.801e-05/0.002933, allocations: 3.938 kB / 0.5394 GB, free: 37.75 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 7.407e-05/0.003007, allocations: 22.3 kB / 0.5394 GB, free: 37.74 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003008/0.003307, allocations: 47.89 kB / 0.5395 GB, free: 37.71 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.003454, allocations: 89.61 kB / 0.5396 GB, free: 37.67 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.003574, allocations: 15 kB / 0.5396 GB, free: 37.66 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.003768, allocations: 51.64 kB / 0.5396 GB, free: 37.64 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 5.608e-05/0.003824, allocations: 29.7 kB / 0.5397 GB, free: 37.63 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 2.437e-05/0.003848, allocations: 7.188 kB / 0.5397 GB, free: 37.63 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 5.376e-05/0.003902, allocations: 13.19 kB / 0.5397 GB, free: 37.63 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.003956, allocations: 13.83 kB / 0.5397 GB, free: 37.62 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.003985, allocations: 23.38 kB / 0.5397 GB, free: 37.61 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.004153, allocations: 83.19 kB / 0.5398 GB, free: 37.57 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004155, allocations: 2.375 kB / 0.5398 GB, free: 37.57 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.372e-06/0.004157, allocations: 3.938 kB / 0.5398 GB, free: 37.57 MB / 490.8 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.004161, allocations: 0 / 0.5398 GB, free: 37.57 MB / 490.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.0004522/0.004614, allocations: 340.8 kB / 0.5401 GB, free: 37.27 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.004657, allocations: 9.844 kB / 0.5401 GB, free: 37.27 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.004772, allocations: 18.34 kB / 0.5401 GB, free: 37.27 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.004942, allocations: 137.5 kB / 0.5403 GB, free: 37.12 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.004967, allocations: 2.75 kB / 0.5403 GB, free: 37.12 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.00499, allocations: 8.656 kB / 0.5403 GB, free: 37.12 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.005186, allocations: 95.8 kB / 0.5404 GB, free: 37.07 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.005193, allocations: 192 / 0.5404 GB, free: 37.07 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.005204, allocations: 2.688 kB / 0.5404 GB, free: 37.07 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.00521, allocations: 5.156 kB / 0.5404 GB, free: 37.07 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.005369, allocations: 73.81 kB / 0.5405 GB, free: 37.06 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003296/0.005698, allocations: 259 kB / 0.5407 GB, free: 36.83 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003917/0.00609, allocations: 149.1 kB / 0.5408 GB, free: 36.79 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.666e-05/0.006187, allocations: 52.06 kB / 0.5409 GB, free: 36.77 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.006205, allocations: 6.75 kB / 0.5409 GB, free: 36.77 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.006221, allocations: 32 kB / 0.5409 GB, free: 36.73 MB / 490.8 MB Notification: Performance of pre-optimization done (n=5): time 1.462e-06/0.006222, allocations: 0 / 0.5409 GB, free: 36.73 MB / 490.8 MB Notification: Performance of matching and sorting (n=5): time 0.0003985/0.006621, allocations: 183.6 kB / 0.5411 GB, free: 36.66 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.006652, allocations: 53.16 kB / 0.5412 GB, free: 36.6 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.357e-05/0.006746, allocations: 136.5 kB / 0.5413 GB, free: 36.49 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.006755, allocations: 25.7 kB / 0.5413 GB, free: 36.46 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.292e-05/0.006798, allocations: 96.98 kB / 0.5414 GB, free: 36.37 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.006824, allocations: 17.23 kB / 0.5414 GB, free: 36.35 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.006862, allocations: 23.23 kB / 0.5414 GB, free: 36.33 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.006905, allocations: 322.7 kB / 0.5418 GB, free: 36.02 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-05/0.007004, allocations: 47.88 kB / 0.5418 GB, free: 36.01 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.39e-05/0.007097, allocations: 43.33 kB / 0.5418 GB, free: 36 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.007285, allocations: 100.2 kB / 0.5419 GB, free: 35.98 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.00729, allocations: 7.562 kB / 0.5419 GB, free: 35.97 MB / 490.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002401/0.00753, allocations: 147.3 kB / 0.5421 GB, free: 35.91 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.00755, allocations: 6.469 kB / 0.5421 GB, free: 35.91 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.007558, allocations: 0 / 0.5421 GB, free: 35.91 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.007574, allocations: 0.7812 kB / 0.5421 GB, free: 35.91 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.977e-05/0.007664, allocations: 31.55 kB / 0.5421 GB, free: 35.91 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.007669, allocations: 0 / 0.5421 GB, free: 35.91 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.797e-05/0.007717, allocations: 18.58 kB / 0.5421 GB, free: 35.9 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.007726, allocations: 4.422 kB / 0.5421 GB, free: 35.9 MB / 490.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 5.358e-05/0.00778, allocations: 118.7 kB / 0.5423 GB, free: 35.78 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.007796, allocations: 8.516 kB / 0.5423 GB, free: 35.78 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.174e-05/0.007818, allocations: 11.44 kB / 0.5423 GB, free: 35.77 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.007821, allocations: 0 / 0.5423 GB, free: 35.77 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.007826, allocations: 1.719 kB / 0.5423 GB, free: 35.77 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.007831, allocations: 3.141 kB / 0.5423 GB, free: 35.77 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.007932, allocations: 129.8 kB / 0.5424 GB, free: 35.63 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.007933, allocations: 3.938 kB / 0.5424 GB, free: 35.63 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.882e-05/0.008012, allocations: 30.86 kB / 0.5424 GB, free: 35.62 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.008013, allocations: 0 / 0.5424 GB, free: 35.62 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.008024, allocations: 0 / 0.5424 GB, free: 35.62 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.008025, allocations: 2 kB / 0.5424 GB, free: 35.62 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.008026, allocations: 0 / 0.5424 GB, free: 35.62 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/0.008393, allocations: 287.1 kB / 0.5427 GB, free: 35.46 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 1.427e-05/0.008408, allocations: 14.55 kB / 0.5427 GB, free: 35.45 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.008422, allocations: 4 kB / 0.5427 GB, free: 35.45 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.062e-05/0.008483, allocations: 16.5 kB / 0.5427 GB, free: 35.45 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.008533, allocations: 5.797 kB / 0.5428 GB, free: 35.45 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.008538, allocations: 5.141 kB / 0.5428 GB, free: 35.44 MB / 490.8 MB Notification: Performance of sorting global known variables: time 4.77e-05/0.008586, allocations: 104 kB / 0.5429 GB, free: 35.36 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.008586, allocations: 2 kB / 0.5429 GB, free: 35.36 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.000161/0.008747, allocations: 15.72 kB / 0.5429 GB, free: 35.35 MB / 490.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 8.221e-05/0.008829, allocations: 99.22 kB / 0.543 GB, free: 35.26 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.009096, allocations: 101.4 kB / 0.5431 GB, free: 35.24 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.009098, allocations: 1.188 kB / 0.5431 GB, free: 35.24 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.009203, allocations: 56.19 kB / 0.5431 GB, free: 35.23 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.009402, allocations: 7.375 kB / 0.5431 GB, free: 35.23 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/0.009812, allocations: 203.9 kB / 0.5433 GB, free: 35.07 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.874e-05/0.009871, allocations: 78.02 kB / 0.5434 GB, free: 34.99 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 3.9e-05/0.00991, allocations: 6.938 kB / 0.5434 GB, free: 34.99 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.009944, allocations: 14.53 kB / 0.5434 GB, free: 34.98 MB / 490.8 MB Notification: Performance of SimCode: time 5.01e-07/0.009945, allocations: 1.406 kB / 0.5434 GB, free: 34.98 MB / 490.8 MB Notification: Performance of Templates: time 0.00307/0.01302, allocations: 0.8356 MB / 0.5442 GB, free: 34.89 MB / 490.8 MB " [Timeout remaining time 800] make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.makefile [Timeout 800] (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) [Timeout 800] diffSimulationResults("ClaRa_dev_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_dev_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: 3.704637171700597]