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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo", uses=false) loadFile("/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo", uses=false) Using package ClaRa with version 1.8.0 (/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo) Using package TILMedia with version 1.8.0 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T.k1|T.k2|T.u1|T.u2|T.y|Time|Time_bak|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T.k1|T.k2|T.u1|T.u2|T.y|Time|Time_bak|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.001615, allocations: 182.4 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009888/0.0009883, allocations: 114.5 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.08343/0.08343, allocations: 20.11 MB / 360.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of loadFile(/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo): time 0.9612/0.9612, allocations: 126.3 MB / 0.5296 GB, free: 14.98 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 83.86 kB / 0.6208 GB, free: 1.508 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4694/0.4708, allocations: 81.15 MB / 0.7 GB, free: 33.57 MB / 474.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.004465/0.4753, allocations: 2.356 MB / 0.7023 GB, free: 31.92 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.4763, allocations: 466.9 kB / 0.7028 GB, free: 31.6 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.249e-05/0.4764, allocations: 0 / 0.7028 GB, free: 31.6 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 6.562e-05/0.4765, allocations: 5.047 kB / 0.7028 GB, free: 31.6 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 9.169e-05/0.4766, allocations: 10.89 kB / 0.7028 GB, free: 31.59 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.4768, allocations: 30.25 kB / 0.7028 GB, free: 31.58 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.477, allocations: 82.7 kB / 0.7029 GB, free: 31.54 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.4772, allocations: 16.62 kB / 0.7029 GB, free: 31.54 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.4773, allocations: 31.34 kB / 0.703 GB, free: 31.52 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 8.992e-05/0.4774, allocations: 35.88 kB / 0.703 GB, free: 31.51 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.4774, allocations: 8.422 kB / 0.703 GB, free: 31.5 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.307e-05/0.4775, allocations: 5.125 kB / 0.703 GB, free: 31.5 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 6.637e-05/0.4775, allocations: 14.91 kB / 0.703 GB, free: 31.5 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 6.104e-05/0.4776, allocations: 32.11 kB / 0.703 GB, free: 31.48 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.4778, allocations: 73.39 kB / 0.7031 GB, free: 31.45 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4778, allocations: 5.719 kB / 0.7031 GB, free: 31.44 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4778, allocations: 0 / 0.7031 GB, free: 31.44 MB / 474.8 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.4778, allocations: 0 / 0.7031 GB, free: 31.44 MB / 474.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.0006972/0.4785, allocations: 407 kB / 0.7035 GB, free: 31.06 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.4786, allocations: 9.312 kB / 0.7035 GB, free: 31.06 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.4786, allocations: 9.688 kB / 0.7035 GB, free: 31.06 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.4788, allocations: 187.4 kB / 0.7037 GB, free: 30.85 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.4788, allocations: 7.344 kB / 0.7037 GB, free: 30.84 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.4789, allocations: 8.375 kB / 0.7037 GB, free: 30.84 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003859/0.4793, allocations: 100.6 kB / 0.7038 GB, free: 30.79 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.4793, allocations: 0 / 0.7038 GB, free: 30.79 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.4793, allocations: 9.109 kB / 0.7038 GB, free: 30.79 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.4793, allocations: 1.438 kB / 0.7038 GB, free: 30.79 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.4797, allocations: 70.5 kB / 0.7039 GB, free: 30.78 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/0.4803, allocations: 324.9 kB / 0.7042 GB, free: 30.48 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008198/0.4811, allocations: 151.3 kB / 0.7043 GB, free: 30.43 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.4814, allocations: 53 kB / 0.7044 GB, free: 30.42 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.4814, allocations: 1.891 kB / 0.7044 GB, free: 30.42 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.4815, allocations: 33.72 kB / 0.7044 GB, free: 30.38 MB / 474.8 MB Notification: Performance of pre-optimization done (n=5): time 1.412e-06/0.4815, allocations: 0 / 0.7044 GB, free: 30.38 MB / 474.8 MB Notification: Performance of matching and sorting (n=5): time 0.0009094/0.4824, allocations: 184.3 kB / 0.7046 GB, free: 30.32 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.4824, allocations: 52.16 kB / 0.7047 GB, free: 30.25 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.4826, allocations: 128.2 kB / 0.7048 GB, free: 30.14 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.4826, allocations: 29.7 kB / 0.7048 GB, free: 30.11 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.259e-05/0.4827, allocations: 102.1 kB / 0.7049 GB, free: 30.01 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.113e-05/0.4827, allocations: 16.78 kB / 0.7049 GB, free: 30 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.026e-05/0.4828, allocations: 21.44 kB / 0.7049 GB, free: 29.98 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 8.554e-05/0.4829, allocations: 324.4 kB / 0.7052 GB, free: 29.66 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002912/0.4832, allocations: 48.08 kB / 0.7053 GB, free: 29.65 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.4834, allocations: 48.53 kB / 0.7053 GB, free: 29.64 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004924/0.484, allocations: 97.19 kB / 0.7054 GB, free: 29.62 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.484, allocations: 3.938 kB / 0.7054 GB, free: 29.62 MB / 474.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0005605/0.4845, allocations: 138.6 kB / 0.7056 GB, free: 29.57 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.4846, allocations: 5.422 kB / 0.7056 GB, free: 29.57 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.4846, allocations: 0 / 0.7056 GB, free: 29.57 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.4846, allocations: 2.75 kB / 0.7056 GB, free: 29.57 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.4848, allocations: 25.27 kB / 0.7056 GB, free: 29.57 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.4848, allocations: 0 / 0.7056 GB, free: 29.57 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.485, allocations: 20.31 kB / 0.7056 GB, free: 29.56 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.485, allocations: 2.672 kB / 0.7056 GB, free: 29.56 MB / 474.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 9.975e-05/0.4851, allocations: 119.9 kB / 0.7057 GB, free: 29.44 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.109e-05/0.4852, allocations: 6.672 kB / 0.7057 GB, free: 29.44 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.4852, allocations: 15.67 kB / 0.7058 GB, free: 29.43 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.4852, allocations: 2.031 kB / 0.7058 GB, free: 29.43 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.4852, allocations: 1.641 kB / 0.7058 GB, free: 29.43 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4852, allocations: 0.7031 kB / 0.7058 GB, free: 29.43 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.4855, allocations: 195.2 kB / 0.7059 GB, free: 29.22 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4855, allocations: 1.125 kB / 0.706 GB, free: 29.22 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.4857, allocations: 27.28 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4857, allocations: 1.125 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.4857, allocations: 3.094 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.4857, allocations: 240 / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4858, allocations: 0.5625 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.489, allocations: 1.505 MB / 0.7075 GB, free: 27.91 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.489, allocations: 82.8 kB / 0.7075 GB, free: 27.81 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.4891, allocations: 1.156 kB / 0.7075 GB, free: 27.81 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.4892, allocations: 21.05 kB / 0.7076 GB, free: 27.8 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.279e-05/0.4893, allocations: 8.203 kB / 0.7076 GB, free: 27.8 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.4893, allocations: 1.125 kB / 0.7076 GB, free: 27.8 MB / 474.8 MB Notification: Performance of sorting global known variables: time 7.214e-05/0.4894, allocations: 106 kB / 0.7077 GB, free: 27.71 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4894, allocations: 1.031 kB / 0.7077 GB, free: 27.71 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0004899/0.4899, allocations: 19.66 kB / 0.7077 GB, free: 27.71 MB / 474.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.0001234/0.4901, allocations: 97.45 kB / 0.7078 GB, free: 27.61 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0005445/0.4906, allocations: 105.9 kB / 0.7079 GB, free: 27.57 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.4906, allocations: 4.031 kB / 0.7079 GB, free: 27.57 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000246/0.4909, allocations: 49.83 kB / 0.7079 GB, free: 27.55 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.4914, allocations: 7.453 kB / 0.7079 GB, free: 27.55 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006322/0.492, allocations: 353 kB / 0.7083 GB, free: 27.23 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.4922, allocations: 0.6957 MB / 0.7089 GB, free: 26.52 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 8.058e-05/0.4923, allocations: 5.531 kB / 0.709 GB, free: 26.52 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.181e-05/0.4923, allocations: 11.28 kB / 0.709 GB, free: 26.51 MB / 474.8 MB Notification: Performance of SimCode: time 2.5e-07/0.4923, allocations: 0 / 0.709 GB, free: 26.51 MB / 474.8 MB Notification: Performance of Templates: time 0.003951/0.4963, allocations: 0.875 MB / 0.7098 GB, free: 26.11 MB / 474.8 MB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.makefile (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=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable Time_bak in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat. Warning: Get data of variable Time_bak from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat failed! " Variables in the reference:T.k1,T.k2,T.u1,T.u2,T.y,Time,Time_bak,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2] Variables in the result:T.k1,T.k2,T.u1,T.u2,T.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2],timeExtrema.ymax,timeExtrema.ymin