Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Reals.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_10_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_10_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.001063/0.001062, allocations: 114.9 kB / 16.37 MB, free: 6.012 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.001012/0.001012, allocations: 192.6 kB / 17.31 MB, free: 5.613 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.502/2.502, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002546/0.002546, allocations: 64.88 kB / 0.8707 GB, free: 1.477 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3254, allocations: 151.7 MB / 1.019 GB, free: 9.883 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.002551/0.328, allocations: 0.8245 MB / 1.02 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.3294, allocations: 0.8741 MB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.3296, allocations: 0 / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.3298, allocations: 23.81 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.051e-05/0.3299, allocations: 7.875 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002249/0.3301, allocations: 23.97 kB / 1.021 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.3303, allocations: 79.7 kB / 1.021 GB, free: 8.035 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.3305, allocations: 35.89 kB / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.3306, allocations: 23.92 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.815e-05/0.3307, allocations: 35.77 kB / 1.021 GB, free: 7.941 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.3307, allocations: 8 kB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.662e-05/0.3308, allocations: 4 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.049e-05/0.3308, allocations: 12 kB / 1.021 GB, free: 7.918 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.175e-05/0.3309, allocations: 27.8 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.331, allocations: 87.61 kB / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.331, allocations: 0 / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.993e-06/0.3311, allocations: 0 / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.3311, allocations: 4 kB / 1.021 GB, free: 7.801 MB / 0.795 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.0006857/0.3318, allocations: 387.1 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3318, allocations: 12.92 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.897e-05/0.3319, allocations: 12.84 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.3322, allocations: 192.2 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3322, allocations: 384 / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.3322, allocations: 12.38 kB / 1.021 GB, free: 7.109 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.3324, allocations: 62.17 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.3324, allocations: 192 / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3324, allocations: 7.922 kB / 1.021 GB, free: 7.035 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3324, allocations: 4 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.3325, allocations: 31.98 kB / 1.022 GB, free: 7 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004991/0.3331, allocations: 324.6 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.3332, allocations: 46.55 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.232e-05/0.3333, allocations: 30.45 kB / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.3333, allocations: 0 / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.3333, allocations: 34.56 kB / 1.022 GB, free: 6.504 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3333, allocations: 4 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0002539/0.3336, allocations: 73.61 kB / 1.022 GB, free: 6.422 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.3336, allocations: 51.41 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3337, allocations: 136.8 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.3338, allocations: 25.7 kB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.884e-05/0.3338, allocations: 104 kB / 1.022 GB, free: 6.082 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.3339, allocations: 11.84 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/0.3339, allocations: 21.7 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.334, allocations: 322.8 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.305e-05/0.3341, allocations: 15.98 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.333e-05/0.3341, allocations: 12 kB / 1.023 GB, free: 5.691 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.09e-05/0.3342, allocations: 36.77 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3342, allocations: 0 / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001247/0.3344, allocations: 65.59 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3344, allocations: 4 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.3344, allocations: 4 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3344, allocations: 0 / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.957e-05/0.3345, allocations: 11.98 kB / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3345, allocations: 0 / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.851e-05/0.3346, allocations: 11.98 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.3346, allocations: 0 / 1.023 GB, free: 5.551 MB / 0.795 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.386e-05/0.3347, allocations: 117.8 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.3347, allocations: 7.906 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.097e-05/0.3348, allocations: 12.25 kB / 1.023 GB, free: 5.402 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3348, allocations: 4 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3348, allocations: 7.922 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3348, allocations: 0 / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.335, allocations: 181.6 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.335, allocations: 0 / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.876e-05/0.335, allocations: 4 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.335, allocations: 0 / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.335, allocations: 0 / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.335, allocations: 0 / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3351, allocations: 4 kB / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.3352, allocations: 159.4 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.73e-05/0.3353, allocations: 85.09 kB / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.3353, allocations: 0 / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.518e-05/0.3354, allocations: 11.98 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.3354, allocations: 12.36 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3355, allocations: 3.938 kB / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.184e-05/0.3355, allocations: 107.2 kB / 1.023 GB, free: 4.75 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.362e-06/0.3355, allocations: 7.938 kB / 1.023 GB, free: 4.742 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002099/0.3357, allocations: 11.88 kB / 1.024 GB, free: 4.73 MB / 0.795 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.0001304/0.3359, allocations: 103.2 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001434/0.336, allocations: 35.97 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.336, allocations: 0 / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.3361, allocations: 20 kB / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.3364, allocations: 15.92 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003407/0.3367, allocations: 162.7 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.3369, allocations: 0.6885 MB / 1.025 GB, free: 3.648 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.576e-05/0.337, allocations: 8 kB / 1.025 GB, free: 3.641 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.363e-05/0.337, allocations: 15.44 kB / 1.025 GB, free: 3.625 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.337, allocations: 0 / 1.025 GB, free: 3.625 MB / 0.795 GB Notification: Performance of Templates: time 0.003012/0.34, allocations: 0.8442 MB / 1.025 GB, free: 2.785 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches