Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 98.64 kB / 16.02 MB, free: 76 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.001725/0.001725, allocations: 182.8 kB / 16.92 MB, free: 6.918 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.445/1.445, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.451/2.451, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 8 kB / 0.8167 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7351/0.7355, allocations: 142.4 MB / 0.9557 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.002175/0.7377, allocations: 1.63 MB / 0.9573 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001641/0.7394, allocations: 1.072 MB / 0.9584 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.7395, allocations: 6.125 kB / 0.9584 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003966/0.7399, allocations: 110.4 kB / 0.9585 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.7401, allocations: 89.02 kB / 0.9586 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003485/0.7405, allocations: 124.2 kB / 0.9587 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.7407, allocations: 198.7 kB / 0.9589 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.7409, allocations: 61.12 kB / 0.9589 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.741, allocations: 69.33 kB / 0.959 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.7412, allocations: 95.62 kB / 0.9591 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.923e-05/0.7412, allocations: 3.781 kB / 0.9591 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.7413, allocations: 45.19 kB / 0.9591 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.963e-05/0.7414, allocations: 53.33 kB / 0.9592 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.217e-05/0.7415, allocations: 101.3 kB / 0.9593 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.7417, allocations: 217.7 kB / 0.9595 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.7417, allocations: 0 / 0.9595 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.184e-06/0.7417, allocations: 0 / 0.9595 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.7417, allocations: 0 / 0.9595 GB, free: 4.844 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007244/0.7425, allocations: 0.5146 MB / 0.96 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.7425, allocations: 9.625 kB / 0.96 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.467e-05/0.7426, allocations: 23.66 kB / 0.96 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.743, allocations: 387.1 kB / 0.9604 GB, free: 4 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.7431, allocations: 7.125 kB / 0.9604 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.7431, allocations: 12.06 kB / 0.9604 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001777/0.7433, allocations: 78.41 kB / 0.9605 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.7433, allocations: 0 / 0.9605 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.7433, allocations: 7.984 kB / 0.9605 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.7433, allocations: 2.75 kB / 0.9605 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.7434, allocations: 44.48 kB / 0.9605 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005896/0.744, allocations: 410.4 kB / 0.9609 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.7443, allocations: 84.62 kB / 0.961 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.283e-05/0.7444, allocations: 33.41 kB / 0.961 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.7444, allocations: 1.062 kB / 0.961 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001536/0.7445, allocations: 82.23 kB / 0.9611 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.7446, allocations: 0 / 0.9611 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003238/0.7449, allocations: 136.2 kB / 0.9613 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.7449, allocations: 52.66 kB / 0.9613 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.7453, allocations: 311 kB / 0.9616 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.7453, allocations: 30.92 kB / 0.9616 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.7454, allocations: 140.2 kB / 0.9618 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.7454, allocations: 19.78 kB / 0.9618 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.7454, allocations: 28.73 kB / 0.9618 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.732e-05/0.7455, allocations: 334 kB / 0.9621 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-05/0.7456, allocations: 41.92 kB / 0.9622 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.7457, allocations: 63.31 kB / 0.9622 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.7459, allocations: 79 kB / 0.9623 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7459, allocations: 1.375 kB / 0.9623 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002794/0.7462, allocations: 163.2 kB / 0.9625 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.7462, allocations: 5.906 kB / 0.9625 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.7462, allocations: 0 / 0.9625 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.7462, allocations: 5.906 kB / 0.9625 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.7463, allocations: 26.11 kB / 0.9625 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.7464, allocations: 5 kB / 0.9625 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.7465, allocations: 27.27 kB / 0.9625 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.7465, allocations: 6.562 kB / 0.9625 GB, free: 2.242 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.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001362/0.7467, allocations: 154.2 kB / 0.9627 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.7467, allocations: 25.58 kB / 0.9627 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.7468, allocations: 24.3 kB / 0.9627 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.7468, allocations: 12.91 kB / 0.9627 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.7468, allocations: 7.969 kB / 0.9627 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.7468, allocations: 0 / 0.9627 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.747, allocations: 241.5 kB / 0.963 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.747, allocations: 0 / 0.963 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.427e-05/0.747, allocations: 8.312 kB / 0.963 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.747, allocations: 0 / 0.963 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.747, allocations: 5.938 kB / 0.963 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.747, allocations: 3.938 kB / 0.963 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.747, allocations: 1.031 kB / 0.963 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.7472, allocations: 134.3 kB / 0.9631 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.7473, allocations: 101.8 kB / 0.9632 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.7473, allocations: 6.031 kB / 0.9632 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.7474, allocations: 17.08 kB / 0.9632 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.7475, allocations: 12.8 kB / 0.9633 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.7475, allocations: 10.89 kB / 0.9633 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002106/0.7477, allocations: 220.4 kB / 0.9635 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7477, allocations: 1.281 kB / 0.9635 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002634/0.748, allocations: 34.41 kB / 0.9635 GB, free: 1.41 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,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 3 (timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.001065/0.7491, allocations: 419.6 kB / 0.9639 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.7493, allocations: 91.48 kB / 0.964 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7494, allocations: 0 / 0.964 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.309e-05/0.7494, allocations: 39.23 kB / 0.964 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.7498, allocations: 48.09 kB / 0.9641 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006502/0.7505, allocations: 454 kB / 0.9645 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.7507, allocations: 0.7529 MB / 0.9652 GB, free: 56 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.097e-05/0.7507, allocations: 27.02 kB / 0.9653 GB, free: 44 kB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.7507, allocations: 0 / 0.9653 GB, free: 44 kB / 0.7169 GB Notification: Performance of Templates: time 0.00647/0.7572, allocations: 3.238 MB / 0.9684 GB, free: 14.4 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches