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.001467/0.001468, allocations: 105.2 kB / 16.41 MB, free: 6.469 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.001359/0.001359, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.14 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.293/2.293, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 63.91 kB / 0.9516 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9346/0.936, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003855/0.9399, allocations: 1.957 MB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.9419, allocations: 1.105 MB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.9421, allocations: 7.625 kB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004948/0.9426, allocations: 107.8 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003132/0.943, allocations: 102.9 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.9434, allocations: 159.4 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.9438, allocations: 218.2 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.9441, allocations: 62.23 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.9443, allocations: 102.5 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.9445, allocations: 100.8 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.043e-05/0.9445, allocations: 12.25 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.9448, allocations: 64.42 kB / 1.093 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.9449, allocations: 63.48 kB / 1.093 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.945, allocations: 87.89 kB / 1.093 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.9456, allocations: 280.8 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.9456, allocations: 1.344 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.886e-06/0.9456, allocations: 3.938 kB / 1.093 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.9456, allocations: 4.844 kB / 1.093 GB, free: 2.77 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.0009875/0.9466, allocations: 0.5459 MB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.9467, allocations: 9.656 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.666e-05/0.9468, allocations: 23.78 kB / 1.094 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.9472, allocations: 303.1 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.9473, allocations: 7.922 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.9473, allocations: 13.03 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.9475, allocations: 96.55 kB / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.9476, allocations: 0 / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.9476, allocations: 1.797 kB / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.9476, allocations: 1.562 kB / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.9477, allocations: 54.27 kB / 1.094 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008377/0.9486, allocations: 449.2 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.9489, allocations: 100.5 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.717e-05/0.949, allocations: 31.22 kB / 1.095 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.949, allocations: 0.625 kB / 1.095 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.9492, allocations: 88.98 kB / 1.095 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.9492, allocations: 0.625 kB / 1.095 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004351/0.9497, allocations: 146.9 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.9497, allocations: 52.41 kB / 1.095 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005283/0.9503, allocations: 365.6 kB / 1.095 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.9503, allocations: 28.02 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.9504, allocations: 144 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.9504, allocations: 34.03 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.882e-05/0.9505, allocations: 42.28 kB / 1.095 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.9506, allocations: 333.9 kB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.9508, allocations: 64.38 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.951, allocations: 81.05 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.9512, allocations: 107 kB / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.9512, allocations: 4.812 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000415/0.9516, allocations: 202.8 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.9517, allocations: 5.344 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.9517, allocations: 0.6875 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.9517, allocations: 5.438 kB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.9519, allocations: 23.91 kB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.9519, allocations: 1.656 kB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.952, allocations: 19.19 kB / 1.096 GB, free: 380 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.9521, allocations: 5.188 kB / 1.096 GB, free: 380 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.000142/0.9522, allocations: 160.5 kB / 1.096 GB, free: 240 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.9523, allocations: 22 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.031e-05/0.9523, allocations: 31.39 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.9523, allocations: 1.031 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.9523, allocations: 0 / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.9523, allocations: 1.688 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.9526, allocations: 252.4 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.9526, allocations: 1.734 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.206e-05/0.9527, allocations: 13.64 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.9527, allocations: 0.625 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.9527, allocations: 6.172 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.9527, allocations: 5.859 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.9527, allocations: 0 / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.9531, allocations: 157 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.493e-05/0.9531, allocations: 98.36 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/0.9532, allocations: 14.27 kB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.9533, allocations: 14.95 kB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.33e-05/0.9534, allocations: 15.05 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.9534, allocations: 3.703 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003167/0.9537, allocations: 231.8 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9537, allocations: 0 / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002904/0.954, allocations: 35.94 kB / 1.097 GB, free: 15.61 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.001119/0.9552, allocations: 414.2 kB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003409/0.9555, allocations: 115.7 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.9555, allocations: 0.5312 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.9556, allocations: 42.14 kB / 1.098 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.956, allocations: 58.5 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000791/0.9568, allocations: 412.3 kB / 1.098 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.9572, allocations: 0.756 MB / 1.099 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.9573, allocations: 22.98 kB / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.9573, allocations: 0 / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of Templates: time 0.007229/0.9646, allocations: 3.219 MB / 1.102 GB, free: 13.99 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