Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 108.4 kB / 16.41 MB, free: 6.457 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.001953/0.001953, allocations: 187 kB / 17.34 MB, free: 5.719 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.233/2.233, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 68.14 kB / 0.9516 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9877/0.9891, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.004923/0.9941, allocations: 1.95 MB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002445/0.9966, allocations: 1.111 MB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002463/0.9969, allocations: 4.125 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005981/0.9975, allocations: 108.7 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004577/0.998, allocations: 106.9 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007206/0.9987, allocations: 154.3 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005194/0.9993, allocations: 222 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.9995, allocations: 54.19 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.9998, allocations: 99.11 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/1, allocations: 105.2 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/1, allocations: 11.66 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002539/1, allocations: 69.34 kB / 1.093 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/1.001, allocations: 59.56 kB / 1.093 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001393/1.001, allocations: 89.75 kB / 1.093 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006521/1.001, allocations: 287.1 kB / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/1.001, allocations: 0 / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.933e-06/1.001, allocations: 0 / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.927e-06/1.001, allocations: 0.6875 kB / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001239/1.003, allocations: 0.5461 MB / 1.094 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/1.003, allocations: 13.59 kB / 1.094 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/1.003, allocations: 24.16 kB / 1.094 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005429/1.003, allocations: 303.4 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/1.003, allocations: 3.562 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/1.003, allocations: 13.53 kB / 1.094 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/1.004, allocations: 88.09 kB / 1.094 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/1.004, allocations: 1 kB / 1.094 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/1.004, allocations: 12.73 kB / 1.094 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/1.004, allocations: 2.281 kB / 1.094 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/1.004, allocations: 48.42 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/1.005, allocations: 445.5 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/1.006, allocations: 103.5 kB / 1.095 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/1.006, allocations: 34.69 kB / 1.095 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/1.006, allocations: 5.5 kB / 1.095 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/1.006, allocations: 81.64 kB / 1.095 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 2.234e-06/1.006, allocations: 0 / 1.095 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.000607/1.007, allocations: 154.6 kB / 1.095 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/1.007, allocations: 57.02 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006514/1.007, allocations: 364.4 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/1.007, allocations: 28.33 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/1.007, allocations: 139.8 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/1.008, allocations: 26.31 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/1.008, allocations: 46.48 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001014/1.008, allocations: 334.3 kB / 1.096 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/1.008, allocations: 64.59 kB / 1.096 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/1.008, allocations: 81 kB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/1.009, allocations: 106.8 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.009, allocations: 0 / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006207/1.009, allocations: 207.5 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/1.009, allocations: 4.812 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/1.009, allocations: 1.609 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.469e-05/1.009, allocations: 8.781 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/1.009, allocations: 23.33 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/1.01, allocations: 2.391 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/1.01, allocations: 18.72 kB / 1.096 GB, free: 360 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/1.01, allocations: 6.188 kB / 1.096 GB, free: 360 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.ram.tab.nextTimeEvent,$whenCondition1,ram.tab.nextTimeEventScaled,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEvent,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 (19): * Single equations (assignments): 19 * 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.0002119/1.01, allocations: 154.2 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/1.01, allocations: 22.5 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.058e-05/1.01, allocations: 34.23 kB / 1.096 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/1.01, allocations: 0.9062 kB / 1.096 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/1.01, allocations: 1.594 kB / 1.096 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/1.01, allocations: 0 / 1.096 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/1.011, allocations: 258.6 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.011, allocations: 0 / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.937e-05/1.011, allocations: 6.094 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/1.011, allocations: 1.766 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/1.011, allocations: 5.766 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/1.011, allocations: 1.859 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.011, allocations: 3.938 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004294/1.011, allocations: 155.5 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/1.011, allocations: 99.36 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.687e-05/1.011, allocations: 10.2 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/1.012, allocations: 10.17 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.76e-05/1.012, allocations: 15.34 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/1.012, allocations: 4.562 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004334/1.012, allocations: 239.1 kB / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/1.012, allocations: 0 / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005276/1.013, allocations: 35.53 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,gre.y,greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (ram.tab.nextTimeEventScaled,greHys.greHys.y,ram.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001647/1.014, allocations: 426.4 kB / 1.098 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000514/1.015, allocations: 111.9 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/1.015, allocations: 0 / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001716/1.015, allocations: 41.53 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005644/1.016, allocations: 58.39 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/1.017, allocations: 415.8 kB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/1.017, allocations: 0.7563 MB / 1.099 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/1.018, allocations: 22.78 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of SimCode: time 7.41e-07/1.018, allocations: 1.062 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of Templates: time 0.0112/1.029, allocations: 3.221 MB / 1.102 GB, free: 13.97 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.t,gre.u,gre.y,greHys.y,time