Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.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.Min,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Min",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Min,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Min",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.007362/0.007362, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001635/0.001635, allocations: 193.5 kB / 16.67 MB, free: 5.973 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.82/2.82, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 71.89 kB / 1.054 GB, free: 7.621 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.323, allocations: 157.4 MB / 1.207 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Min): time 0.002036/0.3251, allocations: 0.7713 MB / 1.208 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.3263, allocations: 0.8584 MB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.136e-05/0.3264, allocations: 0 / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.121e-05/0.3264, allocations: 7.875 kB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.92e-05/0.3265, allocations: 7.922 kB / 1.209 GB, free: 8.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.3267, allocations: 47.83 kB / 1.209 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.3269, allocations: 91.81 kB / 1.209 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.327, allocations: 23.97 kB / 1.209 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.3272, allocations: 47.78 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.384e-05/0.3273, allocations: 43.83 kB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.846e-05/0.3273, allocations: 8 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.3273, allocations: 12 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.602e-05/0.3274, allocations: 23.91 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.657e-05/0.3274, allocations: 31.84 kB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.3276, allocations: 87.67 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3276, allocations: 4 kB / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3276, allocations: 0 / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.3276, allocations: 0 / 1.209 GB, free: 8.043 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006966/0.3283, allocations: 395.4 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3284, allocations: 12.62 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.914e-05/0.3284, allocations: 42.67 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.328e-05/0.3285, allocations: 8.844 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.3286, allocations: 180.2 kB / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.3286, allocations: 384 / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.3287, allocations: 8.125 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000346/0.329, allocations: 113.6 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.329, allocations: 0 / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.3291, allocations: 0 / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.3291, allocations: 8 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.3295, allocations: 95.84 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.3301, allocations: 336.7 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000655/0.3307, allocations: 130.5 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.3309, allocations: 52.81 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.331, allocations: 7.922 kB / 1.211 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.331, allocations: 34.56 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.331, allocations: 4 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0006887/0.3317, allocations: 177.5 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.3318, allocations: 59.34 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.301e-05/0.3319, allocations: 122.1 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.3319, allocations: 25.7 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/0.332, allocations: 107.9 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.332, allocations: 19.72 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.33e-05/0.3321, allocations: 21.7 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3322, allocations: 322.8 kB / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.3324, allocations: 43.95 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.3326, allocations: 47.95 kB / 1.212 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003542/0.3329, allocations: 97.23 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3329, allocations: 3.938 kB / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004182/0.3334, allocations: 137.6 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.3334, allocations: 11.94 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3334, allocations: 0 / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3334, allocations: 4 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.3336, allocations: 23.97 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.3336, allocations: 3.938 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.3337, allocations: 19.88 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3337, allocations: 0 / 1.212 GB, free: 5.188 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: 3 (reaToInt1.y,reaToInt.y,min1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001057/0.3339, allocations: 121.8 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.3339, allocations: 4 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004712/0.3344, allocations: 157.8 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3344, allocations: 4 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3344, allocations: 3.938 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.3344, allocations: 0 / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.3346, allocations: 205.5 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3346, allocations: 0 / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.3348, allocations: 23.97 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/0.3348, allocations: 7.984 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.3348, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3348, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3349, allocations: 3.938 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004964/0.3354, allocations: 235.4 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.3354, allocations: 85.05 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.3354, allocations: 0 / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.3356, allocations: 11.98 kB / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.3357, allocations: 23.91 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.3357, allocations: 8 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.258e-05/0.3358, allocations: 99.31 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3358, allocations: 4 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002442/0.336, allocations: 19.91 kB / 1.213 GB, free: 4.086 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: 3 (min1.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.000785/0.3368, allocations: 0.7671 MB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004472/0.3373, allocations: 99.84 kB / 1.214 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3373, allocations: 4 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.3375, allocations: 59.94 kB / 1.214 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.3379, allocations: 17.34 kB / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.3401, allocations: 1.549 MB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3404, allocations: 0.6885 MB / 1.216 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.964e-05/0.3405, allocations: 12 kB / 1.216 GB, free: 0.7617 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.251e-05/0.3406, allocations: 31.42 kB / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3406, allocations: 0 / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.3596, allocations: 2.751 MB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/8.162, allocations: 4.578 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Min_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Min.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Min.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Min.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,min1.u1,min1.u2,min1.y Variables in the result:min1.u1,min1.u2,min1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,reaToInt.u,reaToInt.y,reaToInt1.u,reaToInt1.y,round1.n,round1.u,round1.y,round2.n,round2.u,round2.y,time