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.409/1.409, allocations: 252 MB / 266.9 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 181.8 kB / 326.5 MB, free: 2.273 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.876/1.876, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.0008682/0.0008686, allocations: 95.84 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003476, allocations: 15.27 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.206, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.3689, allocations: 131.4 MB / 1.028 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.3692, allocations: 75.89 kB / 1.028 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001712/0.3709, allocations: 0.6256 MB / 1.029 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.644e-06/0.3709, allocations: 7.938 kB / 1.029 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.3709, allocations: 0 / 1.029 GB, free: 11.69 MB / 0.6823 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.0004506/0.3714, allocations: 351.5 kB / 1.029 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3714, allocations: 8.031 kB / 1.029 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.3715, allocations: 0 / 1.029 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.3716, allocations: 182.8 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3717, allocations: 4 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.3717, allocations: 0 / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.3719, allocations: 49.69 kB / 1.03 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3719, allocations: 0 / 1.03 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.3719, allocations: 4 kB / 1.03 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3719, allocations: 3.984 kB / 1.03 GB, free: 11 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.3721, allocations: 43.97 kB / 1.03 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005159/0.3726, allocations: 272.8 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.3728, allocations: 42.56 kB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.3728, allocations: 0 / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.3728, allocations: 38.56 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.3728, allocations: 0 / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0003703/0.3732, allocations: 97.58 kB / 1.03 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.3732, allocations: 55.41 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.759e-05/0.3733, allocations: 93 kB / 1.03 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.3734, allocations: 37.81 kB / 1.03 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.654e-05/0.3734, allocations: 84.14 kB / 1.03 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3734, allocations: 7.844 kB / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.3734, allocations: 0 / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.3736, allocations: 314.8 kB / 1.031 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.329e-05/0.3736, allocations: 23.98 kB / 1.031 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.96e-05/0.3737, allocations: 23.97 kB / 1.031 GB, free: 9.781 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.221e-05/0.3738, allocations: 23.98 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3738, allocations: 0 / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000185/0.374, allocations: 77.67 kB / 1.031 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.374, allocations: 4 kB / 1.031 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.374, allocations: 3.984 kB / 1.031 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3741, allocations: 4 kB / 1.031 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.823e-05/0.3742, allocations: 4 kB / 1.031 GB, free: 9.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.3742, allocations: 0 / 1.031 GB, free: 9.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.285e-05/0.3742, allocations: 20.02 kB / 1.031 GB, free: 9.641 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.3742, allocations: 0 / 1.031 GB, free: 9.641 MB / 0.6823 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 () * Number of clocked 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 8.462e-05/0.3743, allocations: 113.8 kB / 1.031 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.3744, allocations: 4 kB / 1.031 GB, free: 9.516 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.164e-05/0.3744, allocations: 11.05 kB / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.3744, allocations: 0 / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3744, allocations: 0 / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.3744, allocations: 0 / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.3746, allocations: 165.5 kB / 1.031 GB, free: 9.293 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3746, allocations: 0 / 1.031 GB, free: 9.293 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.701e-05/0.3746, allocations: 11.98 kB / 1.031 GB, free: 9.281 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3747, allocations: 0 / 1.031 GB, free: 9.281 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.3747, allocations: 4 kB / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3747, allocations: 0 / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3747, allocations: 0 / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.3749, allocations: 183.4 kB / 1.031 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.375, allocations: 77.11 kB / 1.031 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.375, allocations: 0 / 1.031 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.3751, allocations: 20.02 kB / 1.031 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.3752, allocations: 3.984 kB / 1.031 GB, free: 8.965 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.3752, allocations: 4 kB / 1.031 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.798e-05/0.3752, allocations: 79.28 kB / 1.032 GB, free: 8.883 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3752, allocations: 3.938 kB / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001938/0.3754, allocations: 4 kB / 1.032 GB, free: 8.875 MB / 0.6823 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 () * Number of clocked 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.0001673/0.3756, allocations: 99.25 kB / 1.032 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.3758, allocations: 51.95 kB / 1.032 GB, free: 8.719 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3758, allocations: 4 kB / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 8.703e-05/0.3759, allocations: 23.92 kB / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002015/0.3762, allocations: 8.078 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002686/0.3764, allocations: 108.7 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.3767, allocations: 0.6848 MB / 1.032 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.775e-05/0.3768, allocations: 0 / 1.032 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.491e-05/0.3768, allocations: 7.438 kB / 1.033 GB, free: 7.832 MB / 0.6823 GB Notification: Performance of SimCode: time 3.71e-07/0.3768, allocations: 0 / 1.033 GB, free: 7.832 MB / 0.6823 GB Notification: Performance of Templates: time 0.002085/0.3789, allocations: 396.4 kB / 1.033 GB, free: 7.457 MB / 0.6823 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