Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.conf.json 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/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009457/0.009458, allocations: 100.6 kB / 15.73 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 192.5 kB / 16.67 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 63.91 kB / 1.054 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3518, allocations: 157.4 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold): time 0.002538/0.3544, allocations: 0.819 MB / 1.208 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.3558, allocations: 0.8662 MB / 1.209 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.356, allocations: 3.938 kB / 1.209 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.3561, allocations: 15.81 kB / 1.209 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.367e-05/0.3562, allocations: 19.86 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.3565, allocations: 23.92 kB / 1.209 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.3566, allocations: 75.83 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.3568, allocations: 35.95 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.357, allocations: 35.8 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.3571, allocations: 27.86 kB / 1.209 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.882e-05/0.3571, allocations: 8 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.619e-05/0.3571, allocations: 4 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.964e-05/0.3572, allocations: 11.92 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.424e-05/0.3573, allocations: 35.8 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.3574, allocations: 71.97 kB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.3574, allocations: 0 / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3574, allocations: 0 / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3575, allocations: 4 kB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006515/0.3581, allocations: 395.1 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.476e-05/0.3582, allocations: 12.62 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.336e-05/0.3582, allocations: 34.69 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.744e-05/0.3583, allocations: 12.84 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.3586, allocations: 206 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.3586, allocations: 8.375 kB / 1.21 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.3587, allocations: 4.375 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.3589, allocations: 62.17 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3589, allocations: 3.938 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.3589, allocations: 4 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.3589, allocations: 0 / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.359, allocations: 35.97 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005675/0.3596, allocations: 320.6 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.3598, allocations: 50.61 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.581e-05/0.3599, allocations: 12.86 kB / 1.21 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3599, allocations: 4 kB / 1.21 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.3599, allocations: 34.56 kB / 1.21 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.3599, allocations: 0 / 1.21 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0002801/0.3602, allocations: 77.69 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.3603, allocations: 51.41 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.3605, allocations: 139.5 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.3605, allocations: 25.7 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.454e-05/0.3606, allocations: 104 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.3606, allocations: 4 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.3607, allocations: 17.72 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3608, allocations: 326.8 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.209e-05/0.3608, allocations: 12 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.416e-05/0.3609, allocations: 15.98 kB / 1.211 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.485e-05/0.361, allocations: 28.84 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.361, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001476/0.3612, allocations: 73.52 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3612, allocations: 8 kB / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3612, allocations: 0 / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3612, allocations: 4 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.071e-05/0.3613, allocations: 0 / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.3613, allocations: 4 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.131e-05/0.3614, allocations: 7.984 kB / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.3614, allocations: 3.938 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (greHys.greHys.y,$PRE.greHys.greHys.y,gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001074/0.3615, allocations: 129.8 kB / 1.211 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.362e-05/0.3616, allocations: 11.91 kB / 1.211 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.206e-05/0.3616, allocations: 12.25 kB / 1.211 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.3616, allocations: 336 / 1.211 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3616, allocations: 0 / 1.211 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3616, allocations: 0 / 1.211 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.3618, allocations: 185.6 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3618, allocations: 3.984 kB / 1.212 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.626e-05/0.3619, allocations: 11.92 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3619, allocations: 0 / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.3619, allocations: 0 / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3619, allocations: 4 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3619, allocations: 4 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001994/0.3621, allocations: 159.4 kB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/0.3622, allocations: 81.02 kB / 1.212 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.3622, allocations: 4 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.3623, allocations: 7.984 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.302e-05/0.3624, allocations: 11.98 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-06/0.3624, allocations: 4 kB / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.012e-05/0.3625, allocations: 112.8 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of sort global known variables: time 5.91e-07/0.3625, allocations: 0 / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002309/0.3627, allocations: 11.94 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (gre.y,greHys.greHys.y) * Number of discrete states: 1 (greHys.greHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005833/0.3633, allocations: 0.7006 MB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.3635, allocations: 31.98 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3635, allocations: 0 / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.007e-05/0.3636, allocations: 23.92 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3638, allocations: 4 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.3653, allocations: 1.382 MB / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.3656, allocations: 0.6963 MB / 1.215 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.777e-05/0.3656, allocations: 3.984 kB / 1.215 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.377e-05/0.3657, allocations: 27.42 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3657, allocations: 0 / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.3844, allocations: 1.996 MB / 1.217 GB, free: 0 / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/7.996, allocations: 8.047 kB / 1.217 GB, free: 15.99 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gre.u,gre.t,gre.y,greHys.y Variables in the result:gre.h,gre.pre_y_start,gre.t,gre.u,gre.y,greHys.h,greHys.pre_y_start,greHys.t,greHys.u,greHys.y,sin.amplitude,sin.freqHz,sin.offset,sin.phase,sin.startTime,sin.y,time