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.01443/0.01443, allocations: 1.748 MB / 21.38 MB, free: 480 kB / 14.72 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.001644/0.001644, allocations: 99.41 kB / 24.96 MB, free: 2.066 MB / 14.72 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.001481/0.001481, allocations: 210.5 kB / 28.68 MB, free: 3.348 MB / 19.63 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.446/1.446, allocations: 230.6 MB / 262.9 MB, free: 5.824 MB / 206.1 MB " [Timeout remaining time 178] 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 1.06/1.06, allocations: 130.7 MB / 450.4 MB, free: 6.414 MB / 350.1 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.3.1 (/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: SMArtInt requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ClaRa requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Skipped loading package TILMedia (1.9.0 ClaRa) using MODELICAPATH /home/hudson/saved_omc/libraries/.openmodelica/libraries (uses-annotation may be wrong). Warning: Requested package SMArtInt of version 0.5.1, but this package was already loaded with version 0.3.1. There are no conversion annotations for this version but 0.5.1 is newer than 0.3.1. There is a possibility that 0.3.1 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this. Notification: Performance of FrontEnd - loaded program: time 0.06312/0.06312, allocations: 20.6 MB / 0.6367 GB, free: 4.727 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.2284, allocations: 81.9 MB / 0.7167 GB, free: 2.73 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.004216/0.2327, allocations: 2.303 MB / 0.7189 GB, free: 420 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.2338, allocations: 0.491 MB / 0.7194 GB, free: 15.91 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.2339, allocations: 4 kB / 0.7194 GB, free: 15.91 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 5.289e-05/0.234, allocations: 7.922 kB / 0.7194 GB, free: 15.9 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.351e-05/0.2341, allocations: 15.81 kB / 0.7194 GB, free: 15.89 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.2344, allocations: 47.88 kB / 0.7195 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.2346, allocations: 83.7 kB / 0.7196 GB, free: 15.76 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.931e-05/0.2347, allocations: 15.98 kB / 0.7196 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.2349, allocations: 47.84 kB / 0.7196 GB, free: 15.7 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.259e-05/0.2349, allocations: 39.78 kB / 0.7197 GB, free: 15.66 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.235, allocations: 12 kB / 0.7197 GB, free: 15.64 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.235, allocations: 11.98 kB / 0.7197 GB, free: 15.63 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.562e-05/0.2351, allocations: 19.92 kB / 0.7197 GB, free: 15.61 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.158e-05/0.2351, allocations: 27.86 kB / 0.7197 GB, free: 15.59 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.2353, allocations: 75.7 kB / 0.7198 GB, free: 15.51 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2353, allocations: 0 / 0.7198 GB, free: 15.51 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2353, allocations: 0 / 0.7198 GB, free: 15.51 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.2353, allocations: 3.938 kB / 0.7198 GB, free: 15.51 MB / 0.545 GB 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.0006779/0.236, allocations: 341.9 kB / 0.7201 GB, free: 15.14 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.236, allocations: 8.031 kB / 0.7201 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.2362, allocations: 20.88 kB / 0.7202 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.2364, allocations: 130.4 kB / 0.7203 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.2365, allocations: 8.375 kB / 0.7203 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.2365, allocations: 8.375 kB / 0.7203 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003074/0.2368, allocations: 101.8 kB / 0.7204 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.2368, allocations: 0 / 0.7204 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2368, allocations: 4 kB / 0.7204 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.2368, allocations: 4 kB / 0.7204 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.2371, allocations: 71.92 kB / 0.7205 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004933/0.2376, allocations: 260.3 kB / 0.7207 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.2382, allocations: 146.5 kB / 0.7209 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.2384, allocations: 48.81 kB / 0.7209 GB, free: 14.28 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.2384, allocations: 4 kB / 0.7209 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.2385, allocations: 38.59 kB / 0.721 GB, free: 14.23 MB / 0.545 GB Notification: Performance of pre-optimization done (n=5): time 1.433e-06/0.2385, allocations: 0 / 0.721 GB, free: 14.23 MB / 0.545 GB Notification: Performance of matching and sorting (n=5): time 0.0006367/0.2391, allocations: 173.5 kB / 0.7211 GB, free: 14.05 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.2391, allocations: 51.41 kB / 0.7212 GB, free: 13.99 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.2393, allocations: 139.5 kB / 0.7213 GB, free: 13.84 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.2393, allocations: 25.7 kB / 0.7213 GB, free: 13.81 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.046e-05/0.2394, allocations: 96.12 kB / 0.7214 GB, free: 13.71 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.2394, allocations: 19.84 kB / 0.7214 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.299e-05/0.2395, allocations: 25.7 kB / 0.7215 GB, free: 13.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.2396, allocations: 318.8 kB / 0.7218 GB, free: 13.34 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.2398, allocations: 47.95 kB / 0.7218 GB, free: 13.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.24, allocations: 51.95 kB / 0.7219 GB, free: 13.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003304/0.2403, allocations: 100.7 kB / 0.722 GB, free: 13.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2403, allocations: 0 / 0.722 GB, free: 13.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004076/0.2407, allocations: 137.6 kB / 0.7221 GB, free: 13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.2407, allocations: 7.938 kB / 0.7221 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2407, allocations: 4.219 kB / 0.7221 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.2408, allocations: 0 / 0.7221 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.2409, allocations: 23.98 kB / 0.7221 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2409, allocations: 3.984 kB / 0.7221 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.241, allocations: 23.91 kB / 0.7221 GB, free: 12.94 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.241, allocations: 8 kB / 0.7222 GB, free: 12.93 MB / 0.545 GB 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.0001322/0.2412, allocations: 121.7 kB / 0.7223 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/0.2412, allocations: 7.953 kB / 0.7223 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.03e-05/0.2413, allocations: 12.39 kB / 0.7223 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.2413, allocations: 0 / 0.7223 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2413, allocations: 0 / 0.7223 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.2413, allocations: 4 kB / 0.7223 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.2415, allocations: 129.2 kB / 0.7224 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2415, allocations: 0 / 0.7224 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.2416, allocations: 31.91 kB / 0.7224 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.2416, allocations: 4.234 kB / 0.7225 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.2416, allocations: 0 / 0.7225 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2416, allocations: 4 kB / 0.7225 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2416, allocations: 0 / 0.7225 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.2423, allocations: 299.2 kB / 0.7227 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.2423, allocations: 7.984 kB / 0.7227 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.2424, allocations: 0 / 0.7227 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.2425, allocations: 15.98 kB / 0.7228 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.2425, allocations: 7.984 kB / 0.7228 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.2425, allocations: 0 / 0.7228 GB, free: 12.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.007e-05/0.2426, allocations: 105.3 kB / 0.7229 GB, free: 12.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.2426, allocations: 0 / 0.7229 GB, free: 12.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002256/0.2428, allocations: 8 kB / 0.7229 GB, free: 12.13 MB / 0.545 GB 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.0001303/0.243, allocations: 103.3 kB / 0.723 GB, free: 12.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004056/0.2434, allocations: 99.91 kB / 0.7231 GB, free: 11.92 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2434, allocations: 0 / 0.7231 GB, free: 11.92 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.2436, allocations: 55.89 kB / 0.7231 GB, free: 11.87 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.2439, allocations: 11.94 kB / 0.7231 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005797/0.2445, allocations: 217 kB / 0.7233 GB, free: 11.61 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.723e-05/0.2446, allocations: 79.88 kB / 0.7234 GB, free: 11.51 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.14e-05/0.2446, allocations: 11.94 kB / 0.7234 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.814e-05/0.2447, allocations: 11.44 kB / 0.7234 GB, free: 11.49 MB / 0.545 GB Notification: Performance of SimCode: time 8.12e-07/0.2447, allocations: 4 kB / 0.7234 GB, free: 11.48 MB / 0.545 GB Notification: Performance of Templates: time 0.003795/0.2485, allocations: 0.8898 MB / 0.7243 GB, free: 10.62 MB / 0.545 GB " [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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","/var/lib/jenkins1/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: 5.811121994978748]