Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Reals.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009764/0.0009762, allocations: 97.78 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.001107/0.001107, allocations: 185.3 kB / 16.92 MB, free: 6.688 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.382/1.382, 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 11.0.0-master/package.mo): time 2.7/2.7, allocations: 462.7 MB / 0.7371 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005086/0.0005085, allocations: 10 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3462, allocations: 159.6 MB / 1.059 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.001299/0.3476, allocations: 0.5391 MB / 1.06 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001255/0.3488, allocations: 0.8701 MB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.349, allocations: 4 kB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.3491, allocations: 7.922 kB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.743e-05/0.3492, allocations: 11.88 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002108/0.3494, allocations: 27.97 kB / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.3496, allocations: 67.78 kB / 1.061 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.3497, allocations: 31.89 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.3499, allocations: 31.8 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.237e-05/0.35, allocations: 23.84 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.35, allocations: 4 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.35e-05/0.35, allocations: 4 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.35, allocations: 7.938 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.17e-05/0.3501, allocations: 49.5 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.3502, allocations: 60.14 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3502, allocations: 0 / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3503, allocations: 0 / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3503, allocations: 0 / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005692/0.3508, allocations: 383.2 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3509, allocations: 8.031 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.388e-05/0.3509, allocations: 8.844 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.3512, allocations: 205.6 kB / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3512, allocations: 384 / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.3512, allocations: 4.375 kB / 1.062 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.3514, allocations: 66.23 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.3514, allocations: 192 / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.3515, allocations: 7.938 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.3515, allocations: 0 / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.3516, allocations: 39.92 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/0.3521, allocations: 324.8 kB / 1.062 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.3523, allocations: 54.64 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.969e-05/0.3524, allocations: 20.84 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.3524, allocations: 11.92 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.3524, allocations: 30.56 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.3524, allocations: 0 / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002866/0.3527, allocations: 85.66 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.3528, allocations: 51.41 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.3529, allocations: 147.2 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3529, allocations: 25.7 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.612e-05/0.353, allocations: 96.08 kB / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.353, allocations: 7.891 kB / 1.063 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.3531, allocations: 17.72 kB / 1.063 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3532, allocations: 326.7 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.742e-05/0.3533, allocations: 16 kB / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.882e-05/0.3533, allocations: 19.98 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.406e-05/0.3534, allocations: 32.84 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3534, allocations: 0 / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001479/0.3536, allocations: 69.58 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.3536, allocations: 8 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3536, allocations: 0 / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3536, allocations: 4 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.854e-05/0.3537, allocations: 7.938 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3537, allocations: 0 / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.182e-05/0.3538, allocations: 11.98 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.3538, allocations: 4 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (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 (4): * Single equations (assignments): 4 * 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 9.411e-05/0.3539, allocations: 117.8 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.354, allocations: 7.906 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.354, allocations: 16.23 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.354, allocations: 0 / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.354, allocations: 0 / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.354, allocations: 0 / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.3542, allocations: 185.6 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3542, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/0.3543, allocations: 4 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.3543, allocations: 3.984 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.3543, allocations: 0 / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3543, allocations: 0 / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3543, allocations: 8 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.3545, allocations: 171.2 kB / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.3546, allocations: 85.02 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.3546, allocations: 4 kB / 1.064 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.3547, allocations: 15.98 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.3548, allocations: 8.359 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.3548, allocations: 4 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.603e-05/0.3549, allocations: 101 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3549, allocations: 0 / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002254/0.3551, allocations: 11.94 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (les.y,lesHys.lesHys.y) * Number of discrete states: 1 (lesHys.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001824/0.3553, allocations: 111.2 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001638/0.3555, allocations: 39.98 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3555, allocations: 0 / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.11e-05/0.3555, allocations: 23.92 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.3558, allocations: 10.61 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004/0.3563, allocations: 222.2 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.3565, allocations: 0.6887 MB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.947e-05/0.3566, allocations: 19.42 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of SimCode: time 6.91e-07/0.3566, allocations: 0 / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of Templates: time 0.002597/0.3592, allocations: 0.94 MB / 1.066 GB, free: 13.91 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches