Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.449/1.449, allocations: 249.5 MB / 257 MB, free: 6.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 183.3 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.3 MB / 0.5671 GB, free: 15.83 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008933/0.0008934, allocations: 88.48 kB / 0.6714 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.922e-05/1.924e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2235, allocations: 106.3 MB / 0.8853 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8276/1.051, allocations: 131.6 MB / 1.014 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/1.052, allocations: 71.92 kB / 1.014 GB, free: 6.117 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001752/1.053, allocations: 0.631 MB / 1.014 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.693e-06/1.053, allocations: 0 / 1.014 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.795e-06/1.053, allocations: 4 kB / 1.014 GB, free: 5.523 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003826/1.054, allocations: 341.2 kB / 1.015 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.054, allocations: 8.031 kB / 1.015 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/1.054, allocations: 0 / 1.015 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/1.054, allocations: 171 kB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/1.054, allocations: 0 / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/1.054, allocations: 0 / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.444e-05/1.054, allocations: 22.11 kB / 1.015 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.093e-05/1.054, allocations: 29.7 kB / 1.015 GB, free: 4.883 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/1.054, allocations: 7.984 kB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/1.054, allocations: 0 / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/1.054, allocations: 0 / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004311/1.055, allocations: 251 kB / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.529e-05/1.055, allocations: 29.95 kB / 1.015 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.558e-05/1.055, allocations: 4.859 kB / 1.015 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/1.055, allocations: 8 kB / 1.015 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/1.055, allocations: 34.19 kB / 1.015 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/1.055, allocations: 0 / 1.015 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001512/1.055, allocations: 36.95 kB / 1.015 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/1.055, allocations: 54.14 kB / 1.015 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.988e-05/1.055, allocations: 102.8 kB / 1.015 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/1.055, allocations: 25.7 kB / 1.015 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/1.055, allocations: 84.14 kB / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/1.055, allocations: 3.906 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/1.055, allocations: 0 / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001092/1.055, allocations: 318.2 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.577e-05/1.055, allocations: 4 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.714e-05/1.055, allocations: 7.438 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.469e-05/1.056, allocations: 64 / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/1.056, allocations: 4 kB / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.633e-05/1.056, allocations: 48.88 kB / 1.016 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.056, allocations: 4 kB / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/1.056, allocations: 0 / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/1.056, allocations: 0 / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/1.056, allocations: 11.98 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/1.056, allocations: 0 / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.872e-05/1.056, allocations: 12.03 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/1.056, allocations: 0 / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.89e-05/1.056, allocations: 112.9 kB / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/1.056, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/1.056, allocations: 11.2 kB / 1.016 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/1.056, allocations: 0 / 1.016 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.455e-06/1.056, allocations: 4 kB / 1.016 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/1.056, allocations: 3.938 kB / 1.016 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/1.056, allocations: 133.7 kB / 1.016 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/1.056, allocations: 7.953 kB / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.798e-05/1.056, allocations: 16.67 kB / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/1.056, allocations: 0 / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/1.056, allocations: 0 / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/1.056, allocations: 0 / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.056, allocations: 0 / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/1.056, allocations: 146.7 kB / 1.016 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/1.056, allocations: 85.25 kB / 1.016 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/1.056, allocations: 0 / 1.016 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-05/1.057, allocations: 15.98 kB / 1.016 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/1.057, allocations: 3.375 kB / 1.016 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/1.057, allocations: 4 kB / 1.016 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.862e-05/1.057, allocations: 83.27 kB / 1.017 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/1.057, allocations: 0 / 1.017 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001886/1.057, allocations: 0 / 1.017 GB, free: 3.098 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001548/1.057, allocations: 103.3 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.752e-05/1.057, allocations: 14.31 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/1.057, allocations: 4 kB / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.876e-05/1.057, allocations: 7.938 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/1.057, allocations: 4.688 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/1.058, allocations: 63.38 kB / 1.017 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/1.058, allocations: 0.6807 MB / 1.017 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.615e-05/1.058, allocations: 0 / 1.017 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/1.058, allocations: 11.44 kB / 1.017 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of SimCode: time 2.71e-07/1.058, allocations: 0 / 1.017 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of Templates: time 0.002202/1.06, allocations: 365.1 kB / 1.018 GB, free: 1.824 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[546]=10.000000 File[5004]=1.000000 Error: Could not read variable gre.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat. Warning: Get data of variable gre.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat failed! Error: Could not read variable gre.t in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat. Warning: Get data of variable gre.t from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat failed! Error: Could not read variable gre.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat. Warning: Get data of variable gre.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat failed! Error: Could not read variable greHys.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat. Warning: Get data of variable greHys.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat failed! " Variables in the reference:time,gre.u,gre.t,gre.y,greHys.y Variables in the result:greThr.threshold,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,time