Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Max",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.005247/0.005247, allocations: 103.8 kB / 15.73 MB, free: 6.051 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.001355/0.001356, allocations: 191.5 kB / 16.67 MB, free: 5.984 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.695/2.695, allocations: 437.1 MB / 0.7105 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 67.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3431, allocations: 151.6 MB / 1.166 GB, free: 7.266 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002196/0.3454, allocations: 0.7639 MB / 1.167 GB, free: 6.496 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001363/0.3468, allocations: 0.8741 MB / 1.168 GB, free: 5.609 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.407e-05/0.3468, allocations: 4 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.216e-05/0.3469, allocations: 3.938 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.3471, allocations: 11.86 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.3473, allocations: 39.89 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.3474, allocations: 87.81 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3476, allocations: 23.98 kB / 1.168 GB, free: 5.441 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.3477, allocations: 39.91 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.852e-05/0.3478, allocations: 47.77 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.3478, allocations: 11.98 kB / 1.168 GB, free: 5.344 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.976e-05/0.3478, allocations: 8 kB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.3479, allocations: 19.92 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.228e-05/0.3479, allocations: 35.78 kB / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.3481, allocations: 83.73 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3481, allocations: 4 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3481, allocations: 3.938 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.3481, allocations: 4 kB / 1.168 GB, free: 5.188 MB / 0.92 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.0006511/0.3488, allocations: 386.9 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3488, allocations: 15.97 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.3489, allocations: 38.73 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.829e-05/0.3489, allocations: 8.844 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.3491, allocations: 180.2 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.3491, allocations: 12.38 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.3491, allocations: 8.125 kB / 1.169 GB, free: 4.461 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.3495, allocations: 101.6 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3495, allocations: 0 / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.872e-05/0.3495, allocations: 11.98 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.3495, allocations: 7.984 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/0.3499, allocations: 91.91 kB / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005684/0.3505, allocations: 344.6 kB / 1.169 GB, free: 3.859 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.3511, allocations: 118.6 kB / 1.169 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.3513, allocations: 52.81 kB / 1.17 GB, free: 3.68 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.3513, allocations: 11.92 kB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/0.3514, allocations: 30.56 kB / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3514, allocations: 0 / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0006676/0.3521, allocations: 185.5 kB / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.3521, allocations: 51.41 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.3522, allocations: 129.7 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.3522, allocations: 25.7 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.1e-05/0.3523, allocations: 99.97 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.3523, allocations: 19.72 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.3524, allocations: 29.64 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3525, allocations: 322.8 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.3527, allocations: 43.95 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.3529, allocations: 47.89 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.3532, allocations: 105.2 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3533, allocations: 0 / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004171/0.3537, allocations: 133.6 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3537, allocations: 4 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3537, allocations: 0 / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3537, allocations: 0 / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.3539, allocations: 27.97 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.3539, allocations: 11.88 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.3541, allocations: 19.83 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.3541, allocations: 3.984 kB / 1.171 GB, free: 2.332 MB / 0.92 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,max1.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 9.054e-05/0.3542, allocations: 113.8 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.3542, allocations: 4 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004688/0.3547, allocations: 146 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3547, allocations: 0 / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3547, allocations: 3.938 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3547, allocations: 11.92 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.3549, allocations: 201.5 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3549, allocations: 0 / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.3551, allocations: 31.91 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3551, allocations: 0 / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.3551, allocations: 7.984 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3552, allocations: 0 / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3552, allocations: 3.938 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004581/0.3556, allocations: 227.5 kB / 1.171 GB, free: 1.516 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.995e-05/0.3557, allocations: 85.02 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.3557, allocations: 8 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.3559, allocations: 11.98 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.35e-05/0.356, allocations: 23.91 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.356, allocations: 4 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.02e-05/0.356, allocations: 95.2 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.356, allocations: 0 / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002497/0.3563, allocations: 16 kB / 1.172 GB, free: 1.258 MB / 0.92 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 (max1.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.00086/0.3572, allocations: 0.7748 MB / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004225/0.3576, allocations: 107.8 kB / 1.173 GB, free: 360 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3576, allocations: 0 / 1.173 GB, free: 360 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.3578, allocations: 63.94 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.3582, allocations: 11.94 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.3605, allocations: 1.551 MB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.3608, allocations: 0.6885 MB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.112e-05/0.3609, allocations: 15.94 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.627e-05/0.361, allocations: 31.42 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of SimCode: time 4.8e-07/0.361, allocations: 4 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.3828, allocations: 2.687 MB / 1.177 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.912, allocations: 11.95 kB / 1.178 GB, free: 11.28 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Max_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,max1.u1,max1.u2,max1.y Variables in the result:max1.u1,max1.u2,max1.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