Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Max,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_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.007313/0.007313, allocations: 100.6 kB / 15.73 MB, free: 5.996 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.001707/0.001707, allocations: 201.1 kB / 16.68 MB, free: 5.918 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.819/2.819, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.89 kB / 1.054 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8844/0.8858, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002074/0.8879, allocations: 0.7806 MB / 1.208 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001148/0.8891, allocations: 0.8662 MB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.128e-05/0.8892, allocations: 4 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.777e-05/0.8892, allocations: 3.938 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.736e-05/0.8893, allocations: 11.88 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001935/0.8895, allocations: 47.88 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.8896, allocations: 79.83 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.8898, allocations: 23.98 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.427e-05/0.8899, allocations: 43.77 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.89, allocations: 55.83 kB / 1.209 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.666e-05/0.89, allocations: 8 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.669e-05/0.89, allocations: 8 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.812e-05/0.8901, allocations: 19.91 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.806e-05/0.8901, allocations: 31.86 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.8903, allocations: 91.66 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.8903, allocations: 0 / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8903, allocations: 0 / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.8903, allocations: 0 / 1.209 GB, free: 11.47 MB / 0.9356 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.0006458/0.891, allocations: 389.5 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.891, allocations: 12.03 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.406e-05/0.8911, allocations: 38.73 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.8911, allocations: 8.844 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.8913, allocations: 180.2 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.8913, allocations: 8.375 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.8913, allocations: 8.125 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.8916, allocations: 109.6 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.8917, allocations: 3.984 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.8917, allocations: 4 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.8917, allocations: 0 / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003889/0.8921, allocations: 95.89 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.8926, allocations: 356.5 kB / 1.21 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006178/0.8933, allocations: 118.5 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.8935, allocations: 52.81 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.8935, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.8935, allocations: 38.56 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.001e-06/0.8935, allocations: 0 / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0006831/0.8942, allocations: 177.5 kB / 1.211 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.8943, allocations: 63.33 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.521e-05/0.8944, allocations: 125.8 kB / 1.211 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.8944, allocations: 33.64 kB / 1.211 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.053e-05/0.8945, allocations: 99.98 kB / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.669e-05/0.8945, allocations: 19.66 kB / 1.211 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.973e-05/0.8946, allocations: 25.7 kB / 1.211 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.8947, allocations: 318.8 kB / 1.211 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.8948, allocations: 51.94 kB / 1.212 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.895, allocations: 43.95 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.8954, allocations: 96.78 kB / 1.212 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.8954, allocations: 0 / 1.212 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004186/0.8958, allocations: 138 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.8958, allocations: 4 kB / 1.212 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.8959, allocations: 0 / 1.212 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.8959, allocations: 0 / 1.212 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.896, allocations: 31.91 kB / 1.212 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.8961, allocations: 8 kB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.8962, allocations: 15.89 kB / 1.212 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.8962, allocations: 11.98 kB / 1.212 GB, free: 8.609 MB / 0.9356 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 8.682e-05/0.8963, allocations: 113.8 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.8964, allocations: 0 / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004739/0.8968, allocations: 146 kB / 1.212 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.8968, allocations: 4 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.8969, allocations: 3.938 kB / 1.212 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.8969, allocations: 0 / 1.212 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.8971, allocations: 205.5 kB / 1.212 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8971, allocations: 3.938 kB / 1.212 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.8972, allocations: 27.97 kB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.8973, allocations: 0 / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.8973, allocations: 7.922 kB / 1.212 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.8973, allocations: 4 kB / 1.212 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8973, allocations: 3.938 kB / 1.212 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.8978, allocations: 227.5 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.8978, allocations: 85.02 kB / 1.213 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.8978, allocations: 4 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.898, allocations: 11.98 kB / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.01e-05/0.8981, allocations: 31.91 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.8981, allocations: 0 / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.265e-05/0.8981, allocations: 99.2 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8982, allocations: 0 / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002393/0.8984, allocations: 19.94 kB / 1.213 GB, free: 7.527 MB / 0.9356 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.0007421/0.8991, allocations: 0.7695 MB / 1.214 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004284/0.8996, allocations: 111.8 kB / 1.214 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8996, allocations: 0 / 1.214 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.8998, allocations: 63.95 kB / 1.214 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.9002, allocations: 17.64 kB / 1.214 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.9022, allocations: 1.537 MB / 1.215 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.9025, allocations: 0.6908 MB / 1.216 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.038e-05/0.9026, allocations: 15.98 kB / 1.216 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.077e-05/0.9027, allocations: 27.42 kB / 1.216 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of SimCode: time 3.3e-07/0.9027, allocations: 0 / 1.216 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.922, allocations: 2.738 MB / 1.219 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/8.574, allocations: 17.11 kB / 1.219 GB, free: 1.516 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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