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.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.Integers.Validation.Max,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|max1.u1|max1.u2|max1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Max,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|max1.u1|max1.u2|max1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 172.2 kB / 16.92 MB, free: 6.652 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.47/1.47, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.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.835/2.835, allocations: 437.8 MB / 0.7128 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000408/0.0004081, allocations: 19.94 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.703/0.7034, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.001146/0.7046, allocations: 0.501 MB / 1.024 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.7057, allocations: 0.8507 MB / 1.025 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.179e-05/0.7057, allocations: 4 kB / 1.025 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.317e-05/0.7058, allocations: 7.922 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.782e-05/0.7059, allocations: 11.94 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001633/0.706, allocations: 35.91 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.7062, allocations: 79.81 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.7063, allocations: 27.97 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.058e-05/0.7064, allocations: 31.86 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.065e-05/0.7065, allocations: 43.81 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.7065, allocations: 4 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.419e-05/0.7065, allocations: 4 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.451e-05/0.7066, allocations: 15.92 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.352e-05/0.7066, allocations: 53.55 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.754e-05/0.7067, allocations: 63.84 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7067, allocations: 3.938 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.084e-06/0.7067, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.7067, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.7794 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.0005964/0.7073, allocations: 387 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.7074, allocations: 8.031 kB / 1.026 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.755e-05/0.7074, allocations: 8.844 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.7076, allocations: 180.2 kB / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.7076, allocations: 8.375 kB / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.7076, allocations: 8.375 kB / 1.026 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.708, allocations: 117.5 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.708, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.708, allocations: 8 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.708, allocations: 0 / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.7084, allocations: 119.9 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.7089, allocations: 348.5 kB / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.7096, allocations: 130.6 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.7098, allocations: 76.72 kB / 1.027 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.7098, allocations: 4 kB / 1.027 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.7099, allocations: 34.5 kB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.7099, allocations: 0 / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000711/0.7106, allocations: 213.5 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.7106, allocations: 59.41 kB / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.623e-05/0.7107, allocations: 129.8 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.7108, allocations: 25.7 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.287e-05/0.7108, allocations: 92.05 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.7108, allocations: 15.75 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.7109, allocations: 25.64 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.711, allocations: 310.8 kB / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.7112, allocations: 63.89 kB / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.7114, allocations: 63.92 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.7118, allocations: 116.8 kB / 1.028 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.7118, allocations: 4 kB / 1.028 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000442/0.7123, allocations: 157.5 kB / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.7123, allocations: 8 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.7123, allocations: 0 / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.7123, allocations: 0 / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.7125, allocations: 31.91 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.7125, allocations: 0 / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.7126, allocations: 31.83 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.7127, allocations: 4 kB / 1.028 GB, free: 11.16 MB / 0.7794 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.681e-05/0.7128, allocations: 117.8 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.7128, allocations: 0 / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005135/0.7133, allocations: 170 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.7133, allocations: 0 / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.7134, allocations: 4 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.7134, allocations: 7.938 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.7136, allocations: 205.5 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7136, allocations: 0 / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.7138, allocations: 31.91 kB / 1.029 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.7138, allocations: 0 / 1.029 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.7138, allocations: 4 kB / 1.029 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.7138, allocations: 3.984 kB / 1.029 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.7138, allocations: 0 / 1.029 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004892/0.7143, allocations: 264 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.7144, allocations: 81.02 kB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.7144, allocations: 4 kB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.7146, allocations: 15.98 kB / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.334e-05/0.7146, allocations: 23.91 kB / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.7147, allocations: 4 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.868e-05/0.7147, allocations: 99.2 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7147, allocations: 3.938 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002415/0.715, allocations: 19.94 kB / 1.029 GB, free: 10.02 MB / 0.7794 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.0001187/0.7151, allocations: 111.2 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004697/0.7156, allocations: 127.9 kB / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7156, allocations: 0 / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.7158, allocations: 72.12 kB / 1.029 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.7161, allocations: 11.98 kB / 1.029 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004487/0.7166, allocations: 219.1 kB / 1.03 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.7168, allocations: 0.6926 MB / 1.03 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.616e-05/0.7169, allocations: 15.42 kB / 1.03 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of SimCode: time 4.71e-07/0.7169, allocations: 0 / 1.03 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of Templates: time 0.00291/0.7198, allocations: 1.222 MB / 1.031 GB, free: 7.504 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches