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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.493/1.493, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 472.7 MB / 0.7452 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 70.36 kB / 0.9121 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.41, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold): time 0.002689/0.4128, allocations: 0.8209 MB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.4141, allocations: 0.8761 MB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.4142, allocations: 4 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.4144, allocations: 11.88 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.153e-05/0.4145, allocations: 11.86 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.4147, allocations: 31.91 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.4149, allocations: 67.84 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.415, allocations: 31.92 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.4151, allocations: 31.91 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.474e-05/0.4152, allocations: 31.8 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.4153, allocations: 4 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.892e-05/0.4153, allocations: 8 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.665e-05/0.4153, allocations: 15.92 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.162e-05/0.4154, allocations: 31.8 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.4155, allocations: 72.03 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4155, allocations: 0 / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.963e-06/0.4156, allocations: 4 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.4156, allocations: 0 / 1.07 GB, free: 8.336 MB / 0.8262 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.0006978/0.4163, allocations: 387.1 kB / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.4163, allocations: 8.031 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.826e-05/0.4164, allocations: 8.844 kB / 1.071 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.4167, allocations: 213.6 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.4167, allocations: 384 / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.4167, allocations: 4.375 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.4169, allocations: 74.11 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.4169, allocations: 192 / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.4169, allocations: 3.938 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.4169, allocations: 3.984 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.417, allocations: 31.98 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005564/0.4176, allocations: 324.7 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.4178, allocations: 38.56 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.455e-05/0.4178, allocations: 21 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.4179, allocations: 4.031 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.4179, allocations: 42.56 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.4179, allocations: 0 / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002695/0.4182, allocations: 69.58 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.4182, allocations: 51.41 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.4184, allocations: 139.6 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.4184, allocations: 25.7 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.4185, allocations: 100.1 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.4185, allocations: 7.906 kB / 1.072 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.918e-05/0.4185, allocations: 21.7 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4187, allocations: 322.8 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.458e-05/0.4187, allocations: 15.98 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.4188, allocations: 19.92 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.549e-05/0.4189, allocations: 28.84 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4189, allocations: 0 / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001542/0.419, allocations: 69.59 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.4191, allocations: 7.984 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4191, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.4191, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.29e-05/0.4192, allocations: 8 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.4192, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.623e-05/0.4193, allocations: 11.98 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-06/0.4193, allocations: 0 / 1.072 GB, free: 6.09 MB / 0.8262 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.0001012/0.4194, allocations: 127 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.036e-05/0.4194, allocations: 7.906 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.55e-05/0.4195, allocations: 16.17 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.4195, allocations: 4 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4195, allocations: 0 / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.4195, allocations: 3.938 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.4197, allocations: 185.6 kB / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4197, allocations: 0 / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.062e-05/0.4198, allocations: 4 kB / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.4198, allocations: 0 / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.4198, allocations: 3.984 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4198, allocations: 4 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4198, allocations: 0 / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/0.42, allocations: 163.7 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.42, allocations: 88.95 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.42, allocations: 0 / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.4202, allocations: 11.98 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.4202, allocations: 15.98 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.4202, allocations: 0 / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.648e-05/0.4203, allocations: 100.2 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4203, allocations: 0 / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002188/0.4205, allocations: 11.94 kB / 1.073 GB, free: 5.258 MB / 0.8262 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.0001757/0.4207, allocations: 103.8 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001521/0.4209, allocations: 31.98 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.4209, allocations: 4 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.363e-05/0.4209, allocations: 23.92 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.4213, allocations: 11.94 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.4217, allocations: 174.5 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.4219, allocations: 0.6885 MB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.852e-05/0.422, allocations: 4 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.422, allocations: 15.42 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.422, allocations: 0 / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of Templates: time 0.003221/0.4253, allocations: 0.858 MB / 1.075 GB, free: 3.297 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches