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.008065/0.008066, allocations: 103.7 kB / 15.73 MB, free: 6.051 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.001848/0.001849, allocations: 194.6 kB / 16.68 MB, free: 5.98 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.522/1.522, 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 9.1.3-maint.9.1.x/package.mo): time 2.608/2.608, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 62.12 kB / 0.9509 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4118/0.4139, allocations: 140.4 MB / 1.088 GB, free: 1.434 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003453/0.4174, allocations: 1.952 MB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001934/0.4194, allocations: 1.115 MB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.4196, allocations: 7.938 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005427/0.4201, allocations: 103.5 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.4205, allocations: 103.5 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.421, allocations: 161.3 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.4213, allocations: 219.4 kB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.4215, allocations: 53.64 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.4217, allocations: 95.55 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.4218, allocations: 107.5 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.4218, allocations: 12 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.422, allocations: 67.95 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.988e-05/0.4221, allocations: 59.77 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.883e-05/0.4222, allocations: 95.34 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.4226, allocations: 287 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4227, allocations: 4 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4227, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.4227, allocations: 0 / 1.092 GB, free: 13 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.0009034/0.4236, allocations: 0.5333 MB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.4236, allocations: 12.02 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.4237, allocations: 24.66 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004631/0.4242, allocations: 315.7 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.4242, allocations: 4.375 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.4242, allocations: 11.94 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.4244, allocations: 89.64 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.4245, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.4245, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.4245, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.4246, allocations: 55.91 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000781/0.4254, allocations: 452.4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.4257, allocations: 90.58 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.14e-05/0.4258, allocations: 40.89 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.4258, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.426, allocations: 79.38 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.426, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004034/0.4264, allocations: 157.2 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.4265, allocations: 51.41 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/0.4269, allocations: 363 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.4269, allocations: 33.7 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.885e-05/0.427, allocations: 144.4 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.427, allocations: 27.64 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.008e-05/0.4271, allocations: 45.7 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4272, allocations: 334.8 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4274, allocations: 59.97 kB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.4275, allocations: 79.41 kB / 1.095 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.4277, allocations: 113.5 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4277, allocations: 0 / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003243/0.428, allocations: 199.4 kB / 1.095 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.4281, allocations: 8 kB / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4281, allocations: 3.938 kB / 1.095 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.4281, allocations: 3.938 kB / 1.095 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.4282, allocations: 27.92 kB / 1.096 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.4282, allocations: 0 / 1.096 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.4284, allocations: 27.86 kB / 1.096 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.4284, allocations: 4.312 kB / 1.096 GB, free: 9.426 MB / 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.000143/0.4286, allocations: 149.8 kB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.4286, allocations: 31.64 kB / 1.096 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.378e-05/0.4287, allocations: 25.69 kB / 1.096 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.4287, allocations: 0 / 1.096 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4287, allocations: 4 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4287, allocations: 3.984 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.4289, allocations: 253.5 kB / 1.096 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4289, allocations: 0 / 1.096 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.634e-05/0.429, allocations: 7.984 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.429, allocations: 7.984 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.429, allocations: 3.938 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.429, allocations: 0 / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.429, allocations: 0 / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.4293, allocations: 148.8 kB / 1.096 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.122e-05/0.4294, allocations: 104.8 kB / 1.096 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.4294, allocations: 11.94 kB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.4295, allocations: 7.984 kB / 1.096 GB, free: 8.586 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.609e-05/0.4296, allocations: 23.91 kB / 1.096 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.4296, allocations: 8 kB / 1.096 GB, free: 8.555 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002196/0.4298, allocations: 229.9 kB / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.028e-06/0.4299, allocations: 0 / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002581/0.4301, allocations: 39.92 kB / 1.097 GB, free: 8.293 MB / 0.8575 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.001018/0.4311, allocations: 421.7 kB / 1.097 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.4315, allocations: 111.9 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4315, allocations: 0 / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.4316, allocations: 39.98 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.4319, allocations: 47.08 kB / 1.097 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006718/0.4326, allocations: 391.8 kB / 1.098 GB, free: 7.43 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.433, allocations: 0.7437 MB / 1.098 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.958e-05/0.433, allocations: 38.09 kB / 1.098 GB, free: 6.625 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.224e-05/0.4331, allocations: 23.42 kB / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.4331, allocations: 0 / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of Templates: time 0.006836/0.44, allocations: 3.08 MB / 1.101 GB, free: 3.543 MB / 0.8575 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/jenkins/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.greNoHys.t,gre.h,gre.have_hysteresis,gre.pre_y_start,gre.t,gre.u,gre.y,greHys.greHys.h,greHys.greHys.pre_y_start,greHys.greHys.t,greHys.greHys.y,greHys.h,greHys.have_hysteresis,greHys.pre_y_start,greHys.t,greHys.y,ram.extrapolation,ram.nT,ram.nout,ram.offset[1],ram.smoothness,ram.t0,ram.tab.columns[1],ram.tab.extrapolation,ram.tab.nout,ram.tab.offset[1],ram.tab.p_offset[1],ram.tab.shiftTime,ram.tab.smoothness,ram.tab.startTime,ram.tab.t_max,ram.tab.t_maxScaled,ram.tab.t_min,ram.tab.t_minScaled,ram.tab.tableOnFile,ram.tab.table[1,1],ram.tab.table[1,2],ram.tab.table[2,1],ram.tab.table[2,2],ram.tab.table[3,1],ram.tab.table[3,2],ram.tab.table[4,1],ram.tab.table[4,2],ram.tab.table[5,1],ram.tab.table[5,2],ram.tab.table[6,1],ram.tab.table[6,2],ram.tab.timeEvents,ram.tab.timeScale,ram.tab.verboseExtrapolation,ram.tab.verboseRead,ram.table[1,1],ram.table[1,2],ram.table[2,1],ram.table[2,2],ram.table[3,1],ram.table[3,2],ram.table[4,1],ram.table[4,2],ram.table[5,1],ram.table[5,2],ram.table[6,1],ram.table[6,2],ram.timeRange,ram.timeScale,rou.fac,rou.n,rou.y,time