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.01262/0.01262, allocations: 1.758 MB / 20.59 MB, free: 1.277 MB / 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.001554/0.001554, allocations: 106.3 kB / 24.19 MB, free: 2.652 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.001852/0.001852, allocations: 210.4 kB / 27.92 MB, free: 4 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.448/1.448, allocations: 230.6 MB / 262.1 MB, free: 6.211 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.052/1.052, allocations: 130.7 MB / 449.6 MB, free: 6.574 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.04552/0.04552, allocations: 20.78 MB / 0.6362 GB, free: 4.68 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.2342, allocations: 81.91 MB / 0.7162 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.003737/0.2379, allocations: 2.338 MB / 0.7185 GB, free: 332 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.239, allocations: 0.5416 MB / 0.719 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.44e-05/0.239, allocations: 0 / 0.719 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 5.024e-05/0.2391, allocations: 7.875 kB / 0.719 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.754e-05/0.2392, allocations: 23.78 kB / 0.719 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.2394, allocations: 47.88 kB / 0.7191 GB, free: 15.7 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.2396, allocations: 79.77 kB / 0.7192 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.743e-05/0.2397, allocations: 12 kB / 0.7192 GB, free: 15.61 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.2399, allocations: 51.83 kB / 0.7192 GB, free: 15.56 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.2399, allocations: 35.84 kB / 0.7192 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.24, allocations: 8 kB / 0.7193 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.086e-05/0.24, allocations: 8 kB / 0.7193 GB, free: 15.51 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.917e-05/0.2401, allocations: 19.92 kB / 0.7193 GB, free: 15.49 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.76e-05/0.2401, allocations: 35.8 kB / 0.7193 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.2403, allocations: 83.52 kB / 0.7194 GB, free: 15.37 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.2403, allocations: 4 kB / 0.7194 GB, free: 15.37 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2403, allocations: 0 / 0.7194 GB, free: 15.37 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.2403, allocations: 0 / 0.7194 GB, free: 15.37 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.0006931/0.241, allocations: 341.9 kB / 0.7197 GB, free: 15 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.241, allocations: 8.031 kB / 0.7197 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.2412, allocations: 16.89 kB / 0.7198 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.2415, allocations: 136.6 kB / 0.7199 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.2415, allocations: 4.312 kB / 0.7199 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.2415, allocations: 12.38 kB / 0.7199 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.2418, allocations: 101.9 kB / 0.72 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.2418, allocations: 0 / 0.72 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.2419, allocations: 0 / 0.72 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2419, allocations: 0 / 0.72 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002913/0.2422, allocations: 83.91 kB / 0.7201 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005064/0.2427, allocations: 291.7 kB / 0.7204 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006247/0.2433, allocations: 150.5 kB / 0.7205 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.2435, allocations: 48.81 kB / 0.7205 GB, free: 14.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.2435, allocations: 4 kB / 0.7205 GB, free: 14.08 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.2435, allocations: 34.56 kB / 0.7206 GB, free: 14.04 MB / 0.545 GB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.2435, allocations: 0 / 0.7206 GB, free: 14.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=5): time 0.0006418/0.2442, allocations: 173.5 kB / 0.7207 GB, free: 13.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.2442, allocations: 51.41 kB / 0.7208 GB, free: 13.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.2443, allocations: 133.8 kB / 0.7209 GB, free: 13.66 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.2444, allocations: 25.7 kB / 0.7209 GB, free: 13.63 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.576e-05/0.2444, allocations: 100.1 kB / 0.721 GB, free: 13.53 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.2445, allocations: 19.8 kB / 0.7211 GB, free: 13.51 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.2445, allocations: 21.7 kB / 0.7211 GB, free: 13.48 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.2447, allocations: 326.8 kB / 0.7214 GB, free: 13.15 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.2449, allocations: 51.95 kB / 0.7214 GB, free: 13.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.2451, allocations: 43.95 kB / 0.7215 GB, free: 13.06 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.2454, allocations: 104.6 kB / 0.7216 GB, free: 12.95 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2454, allocations: 256 / 0.7216 GB, free: 12.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004162/0.2458, allocations: 141.5 kB / 0.7217 GB, free: 12.81 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.2458, allocations: 8 kB / 0.7217 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2458, allocations: 4 kB / 0.7217 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.2459, allocations: 0 / 0.7217 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.246, allocations: 23.97 kB / 0.7218 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.246, allocations: 4 kB / 0.7218 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.716e-05/0.2461, allocations: 19.98 kB / 0.7218 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.2461, allocations: 3.938 kB / 0.7218 GB, free: 12.75 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.0001133/0.2462, allocations: 121.8 kB / 0.7219 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.145e-05/0.2463, allocations: 7.953 kB / 0.7219 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.2463, allocations: 12.41 kB / 0.7219 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2463, allocations: 3.938 kB / 0.7219 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2463, allocations: 4 kB / 0.7219 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2463, allocations: 0 / 0.7219 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.2465, allocations: 160.6 kB / 0.7221 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2465, allocations: 0 / 0.7221 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.2467, allocations: 23.97 kB / 0.7221 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.2467, allocations: 0 / 0.7221 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.2467, allocations: 0 / 0.7221 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2467, allocations: 0 / 0.7221 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2467, allocations: 0 / 0.7221 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006609/0.2474, allocations: 295.2 kB / 0.7224 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.2474, allocations: 3.953 kB / 0.7224 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.2474, allocations: 4.031 kB / 0.7224 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.2475, allocations: 27.97 kB / 0.7224 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.2476, allocations: 0 / 0.7224 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2476, allocations: 7.984 kB / 0.7224 GB, free: 12.01 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.387e-05/0.2477, allocations: 104.9 kB / 0.7225 GB, free: 11.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.2477, allocations: 0 / 0.7225 GB, free: 11.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002358/0.2479, allocations: 12 kB / 0.7225 GB, free: 11.9 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.0001133/0.248, allocations: 95.19 kB / 0.7226 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004452/0.2485, allocations: 107.9 kB / 0.7227 GB, free: 11.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2485, allocations: 0 / 0.7227 GB, free: 11.69 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.2487, allocations: 59.95 kB / 0.7228 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.2489, allocations: 13.97 kB / 0.7228 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005408/0.2495, allocations: 217.1 kB / 0.723 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.2498, allocations: 0.6951 MB / 0.7237 GB, free: 10.66 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.802e-05/0.2499, allocations: 8 kB / 0.7237 GB, free: 10.65 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.2499, allocations: 19.42 kB / 0.7237 GB, free: 10.63 MB / 0.545 GB Notification: Performance of SimCode: time 2.7e-07/0.2499, allocations: 0 / 0.7237 GB, free: 10.63 MB / 0.545 GB Notification: Performance of Templates: time 0.003659/0.2536, allocations: 0.8347 MB / 0.7245 GB, free: 9.805 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.947091923095286]