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.007719/0.00772, allocations: 103.9 kB / 15.73 MB, free: 6.445 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.002023/0.002023, allocations: 191.2 kB / 16.67 MB, free: 6.355 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.746/2.746, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 67.89 kB / 1.054 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3682, allocations: 157.4 MB / 1.207 GB, free: 10 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold): time 0.002533/0.3708, allocations: 0.8205 MB / 1.208 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0013/0.3722, allocations: 0.8663 MB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.3723, allocations: 3.938 kB / 1.209 GB, free: 8.301 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.3725, allocations: 19.86 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.822e-05/0.3726, allocations: 11.81 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000211/0.3728, allocations: 23.97 kB / 1.209 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.373, allocations: 75.78 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.3731, allocations: 35.95 kB / 1.209 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.3732, allocations: 35.86 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.758e-05/0.3733, allocations: 27.84 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.3734, allocations: 11.94 kB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.372e-05/0.3734, allocations: 4 kB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.3734, allocations: 15.88 kB / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.068e-05/0.3735, allocations: 35.78 kB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.3736, allocations: 75.97 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3736, allocations: 0 / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3737, allocations: 4 kB / 1.209 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.3737, allocations: 0 / 1.209 GB, free: 7.93 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.0006315/0.3743, allocations: 383.2 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3744, allocations: 12.62 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.901e-05/0.3744, allocations: 42.67 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.3745, allocations: 8.844 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.3748, allocations: 200.1 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.3748, allocations: 12.31 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.3748, allocations: 4.375 kB / 1.21 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.375, allocations: 58.23 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.375, allocations: 3.938 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3751, allocations: 4 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.3751, allocations: 0 / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.3752, allocations: 35.97 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005967/0.3758, allocations: 316.6 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.376, allocations: 54.58 kB / 1.21 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.687e-05/0.3761, allocations: 24.98 kB / 1.21 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.3761, allocations: 0 / 1.21 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.3761, allocations: 34.56 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.3761, allocations: 0 / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0002917/0.3764, allocations: 69.58 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.3765, allocations: 55.41 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.3766, allocations: 131.7 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.3766, allocations: 29.7 kB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.3767, allocations: 104 kB / 1.211 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.3767, allocations: 11.98 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.816e-05/0.3768, allocations: 17.72 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3769, allocations: 322.7 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.222e-05/0.377, allocations: 19.98 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.033e-05/0.377, allocations: 12 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.839e-05/0.3771, allocations: 32.78 kB / 1.211 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3771, allocations: 0 / 1.211 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001435/0.3773, allocations: 69.58 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3773, allocations: 8 kB / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3773, allocations: 0 / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3773, allocations: 0 / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.462e-05/0.3774, allocations: 11.92 kB / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.3774, allocations: 0 / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.61e-05/0.3775, allocations: 7.984 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.3775, allocations: 7.938 kB / 1.211 GB, free: 5.633 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 9.778e-05/0.3776, allocations: 125.8 kB / 1.211 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.3777, allocations: 3.906 kB / 1.211 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.3777, allocations: 12.25 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3777, allocations: 0 / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3777, allocations: 4 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.3777, allocations: 3.984 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.3779, allocations: 185.6 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3779, allocations: 0 / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.856e-05/0.378, allocations: 0 / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.378, allocations: 4 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.378, allocations: 4 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.378, allocations: 0 / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.378, allocations: 0 / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.3782, allocations: 163.3 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.663e-05/0.3783, allocations: 89 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.3783, allocations: 4 kB / 1.212 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.867e-05/0.3784, allocations: 7.984 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.3785, allocations: 12.36 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.3785, allocations: 0 / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.331e-05/0.3786, allocations: 108.6 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3786, allocations: 0 / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002211/0.3788, allocations: 11.94 kB / 1.212 GB, free: 4.812 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.0005212/0.3793, allocations: 0.6968 MB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001629/0.3795, allocations: 39.91 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3795, allocations: 0 / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.435e-05/0.3796, allocations: 16 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3798, allocations: 7.984 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.3814, allocations: 1.395 MB / 1.214 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3817, allocations: 0.6885 MB / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.195e-05/0.3817, allocations: 4 kB / 1.215 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.67e-05/0.3818, allocations: 23.42 kB / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of SimCode: time 3.21e-07/0.3818, allocations: 0 / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.4024, allocations: 2.031 MB / 1.217 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.484/7.887, allocations: 8.781 kB / 1.217 GB, free: 15.89 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