Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009452/0.009452, allocations: 100.5 kB / 15.73 MB, free: 6.453 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.001776/0.001776, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 461.9 MB / 0.7348 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 67.89 kB / 1.054 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3226, allocations: 157.4 MB / 1.207 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold): time 0.002837/0.3255, allocations: 0.7015 MB / 1.208 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.327, allocations: 0.8273 MB / 1.209 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.116e-05/0.3271, allocations: 0 / 1.209 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.317e-05/0.3272, allocations: 3.938 kB / 1.209 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.483e-05/0.3273, allocations: 3.938 kB / 1.209 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.3275, allocations: 35.89 kB / 1.209 GB, free: 8.664 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.3277, allocations: 43.91 kB / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3278, allocations: 12 kB / 1.209 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.205e-05/0.3279, allocations: 23.92 kB / 1.209 GB, free: 8.586 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.331e-05/0.328, allocations: 31.83 kB / 1.209 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.328, allocations: 4 kB / 1.209 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.416e-05/0.328, allocations: 4 kB / 1.209 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.606e-05/0.3281, allocations: 8 kB / 1.209 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.209e-05/0.3281, allocations: 19.86 kB / 1.209 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.3283, allocations: 51.84 kB / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3283, allocations: 0 / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.073e-06/0.3283, allocations: 0 / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.3283, allocations: 0 / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007059/0.329, allocations: 359.7 kB / 1.209 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.3291, allocations: 8.625 kB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.736e-05/0.3291, allocations: 38.75 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.3292, allocations: 4.844 kB / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.3294, allocations: 176.2 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.3294, allocations: 384 / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.3294, allocations: 8.125 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.3297, allocations: 69.62 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3297, allocations: 4 kB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.3297, allocations: 11.94 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.3297, allocations: 0 / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.33, allocations: 47.95 kB / 1.21 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006009/0.3306, allocations: 296.7 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.3308, allocations: 66.58 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.3309, allocations: 28.88 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.3309, allocations: 0 / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.331, allocations: 30.56 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.331, allocations: 0 / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0004524/0.3314, allocations: 117.5 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.3315, allocations: 51.41 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.38e-05/0.3316, allocations: 109.8 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.3316, allocations: 25.7 kB / 1.21 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.3317, allocations: 84.14 kB / 1.21 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.3317, allocations: 15.89 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.3318, allocations: 13.72 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.3319, allocations: 318.8 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.332, allocations: 27.97 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.152e-05/0.3321, allocations: 32.14 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.3323, allocations: 52.81 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3323, allocations: 0 / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002351/0.3326, allocations: 89.5 kB / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3326, allocations: 8 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.3326, allocations: 0 / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3326, allocations: 0 / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.3328, allocations: 11.98 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.3328, allocations: 0 / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.905e-05/0.3329, allocations: 11.98 kB / 1.211 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3329, allocations: 3.938 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (reaToInt.y,intLesThr.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 0.0001037/0.333, allocations: 117.8 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.333, allocations: 4 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.3331, allocations: 7.906 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3331, allocations: 0 / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3331, allocations: 4 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3331, allocations: 0 / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.3333, allocations: 181.4 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3333, allocations: 3.938 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.681e-05/0.3334, allocations: 15.92 kB / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.3334, allocations: 0 / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.3334, allocations: 4 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3334, allocations: 4 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3334, allocations: 0 / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.3337, allocations: 183.4 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.686e-05/0.3337, allocations: 77.11 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.3338, allocations: 0 / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.3339, allocations: 11.98 kB / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.037e-05/0.3339, allocations: 15.98 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.334, allocations: 0 / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.109e-05/0.334, allocations: 91.2 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.334, allocations: 4 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002465/0.3343, allocations: 7.906 kB / 1.212 GB, free: 5.336 MB / 0.9669 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 (intLesThr.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005779/0.3349, allocations: 0.7202 MB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.3351, allocations: 56.17 kB / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3351, allocations: 0 / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.3352, allocations: 36.02 kB / 1.213 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.3356, allocations: 4.078 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3371, allocations: 1.328 MB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.3373, allocations: 0.6807 MB / 1.214 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.237e-05/0.3374, allocations: 8 kB / 1.215 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.696e-05/0.3375, allocations: 23.42 kB / 1.215 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of SimCode: time 1.673e-06/0.3375, allocations: 0 / 1.215 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.3553, allocations: 1.883 MB / 1.216 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.543/7.898, allocations: 4.062 kB / 1.216 GB, free: 0.582 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,intLesThr.t,intLesThr.u,intLesThr.y Variables in the result:intLesThr.t,intLesThr.u,intLesThr.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,reaToInt.u,reaToInt.y,round1.n,round1.u,round1.y,time