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.001255/0.001255, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009951/0.009951, allocations: 169 kB / 16.26 MB, free: 6.652 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.553/1.553, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.495/2.495, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 15.98 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8526/0.853, allocations: 142.4 MB / 0.9551 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.002419/0.8555, allocations: 1.658 MB / 0.9567 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.8571, allocations: 1.07 MB / 0.9577 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.8572, allocations: 1.781 kB / 0.9577 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.8576, allocations: 108.3 kB / 0.9578 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.8579, allocations: 87.22 kB / 0.9579 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.8582, allocations: 140.9 kB / 0.958 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002406/0.8585, allocations: 203.1 kB / 0.9582 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.8586, allocations: 47.47 kB / 0.9583 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.8588, allocations: 81.03 kB / 0.9584 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.8589, allocations: 96.06 kB / 0.9585 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.8589, allocations: 4.062 kB / 0.9585 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.8591, allocations: 59.38 kB / 0.9585 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.398e-05/0.8592, allocations: 56.59 kB / 0.9586 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.198e-05/0.8593, allocations: 101.8 kB / 0.9587 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003155/0.8596, allocations: 270 kB / 0.9589 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.8596, allocations: 0 / 0.9589 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.375e-06/0.8596, allocations: 3.938 kB / 0.9589 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.8596, allocations: 1 kB / 0.9589 GB, free: 5.203 MB / 0.7169 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.0008274/0.8605, allocations: 0.5127 MB / 0.9594 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.8605, allocations: 9.969 kB / 0.9594 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.8606, allocations: 23.41 kB / 0.9595 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.8609, allocations: 308.1 kB / 0.9598 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.861, allocations: 3.125 kB / 0.9598 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.861, allocations: 13.44 kB / 0.9598 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.8612, allocations: 89.81 kB / 0.9599 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.8613, allocations: 1.375 kB / 0.9599 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.8613, allocations: 8 kB / 0.9599 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.8613, allocations: 1.375 kB / 0.9599 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.8614, allocations: 57.97 kB / 0.9599 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006662/0.8621, allocations: 453.8 kB / 0.9604 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.8624, allocations: 89.23 kB / 0.9604 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.624e-05/0.8624, allocations: 35.45 kB / 0.9605 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.8625, allocations: 9.125 kB / 0.9605 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.8627, allocations: 83.66 kB / 0.9606 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.8627, allocations: 0 / 0.9606 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.000387/0.8631, allocations: 149.4 kB / 0.9607 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.8631, allocations: 52.53 kB / 0.9608 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003933/0.8635, allocations: 367 kB / 0.9611 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.8635, allocations: 27.73 kB / 0.9611 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.096e-05/0.8636, allocations: 140.6 kB / 0.9613 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.8636, allocations: 31.62 kB / 0.9613 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/0.8637, allocations: 28.14 kB / 0.9613 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.885e-05/0.8638, allocations: 337.8 kB / 0.9616 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.8639, allocations: 57.94 kB / 0.9617 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.8641, allocations: 85.31 kB / 0.9618 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.8643, allocations: 106.9 kB / 0.9619 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8643, allocations: 4 kB / 0.9619 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003227/0.8646, allocations: 196.6 kB / 0.9621 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.8646, allocations: 10.52 kB / 0.9621 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.8646, allocations: 1.156 kB / 0.9621 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.8647, allocations: 5.219 kB / 0.9621 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.8648, allocations: 31.28 kB / 0.9621 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.8648, allocations: 1.312 kB / 0.9621 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.865, allocations: 27.8 kB / 0.9621 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.865, allocations: 4.719 kB / 0.9621 GB, free: 2.527 MB / 0.7169 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.0001234/0.8651, allocations: 152.2 kB / 0.9623 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.8652, allocations: 22.78 kB / 0.9623 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.665e-05/0.8652, allocations: 30.55 kB / 0.9623 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.8652, allocations: 0.9062 kB / 0.9623 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.8652, allocations: 1 kB / 0.9623 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.8653, allocations: 0 / 0.9623 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.8655, allocations: 255.3 kB / 0.9626 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.8655, allocations: 4 kB / 0.9626 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.023e-05/0.8655, allocations: 9.5 kB / 0.9626 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.8655, allocations: 3.938 kB / 0.9626 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.8655, allocations: 13.17 kB / 0.9626 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.8656, allocations: 5.359 kB / 0.9626 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8656, allocations: 0 / 0.9626 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.8658, allocations: 145.1 kB / 0.9628 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.8659, allocations: 106.1 kB / 0.9629 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.8659, allocations: 10.06 kB / 0.9629 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.866, allocations: 16.36 kB / 0.9629 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.8661, allocations: 14.69 kB / 0.9629 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.8661, allocations: 6.938 kB / 0.9629 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002166/0.8663, allocations: 233.8 kB / 0.9631 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8663, allocations: 0 / 0.9631 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002706/0.8666, allocations: 38.12 kB / 0.9632 GB, free: 1.672 MB / 0.7169 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.001031/0.8677, allocations: 410.1 kB / 0.9636 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003031/0.868, allocations: 118.4 kB / 0.9637 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.868, allocations: 1.188 kB / 0.9637 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.67e-05/0.8681, allocations: 33.11 kB / 0.9637 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.8684, allocations: 57.25 kB / 0.9638 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006293/0.8691, allocations: 448.6 kB / 0.9642 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/0.8693, allocations: 0.7491 MB / 0.9649 GB, free: 336 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.82e-05/0.8694, allocations: 30.19 kB / 0.9649 GB, free: 328 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.8694, allocations: 27.23 kB / 0.965 GB, free: 312 kB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.8694, allocations: 0 / 0.965 GB, free: 312 kB / 0.7169 GB Notification: Performance of Templates: time 0.008178/0.8776, allocations: 2.823 MB / 0.9677 GB, free: 14.91 MB / 0.7325 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