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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: 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_latest_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_latest_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.001014/0.001014, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.01066/0.01066, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.504/1.504, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.812/2.812, allocations: 443.3 MB / 0.7175 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003973, allocations: 15.06 kB / 0.8796 GB, free: 41.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4017, allocations: 155.2 MB / 1.031 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.001248/0.403, allocations: 0.4959 MB / 1.032 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.4043, allocations: 0.859 MB / 1.032 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.201e-05/0.4043, allocations: 4 kB / 1.032 GB, free: 2.969 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.546e-05/0.4044, allocations: 3.938 kB / 1.032 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.4045, allocations: 3.938 kB / 1.032 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.4047, allocations: 39.91 kB / 1.032 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.4048, allocations: 79.81 kB / 1.033 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.405, allocations: 23.98 kB / 1.033 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.961e-05/0.4051, allocations: 35.84 kB / 1.033 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.4052, allocations: 39.83 kB / 1.033 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.4053, allocations: 4 kB / 1.033 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.4053, allocations: 4 kB / 1.033 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.4053, allocations: 15.92 kB / 1.033 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.336e-05/0.4054, allocations: 57.55 kB / 1.033 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.4055, allocations: 87.86 kB / 1.033 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.4055, allocations: 0 / 1.033 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.865e-06/0.4055, allocations: 0 / 1.033 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.548e-06/0.4056, allocations: 0 / 1.033 GB, free: 2.574 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.0006577/0.4062, allocations: 387.2 kB / 1.033 GB, free: 2.148 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.4063, allocations: 8.031 kB / 1.033 GB, free: 2.141 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.719e-05/0.4063, allocations: 20.83 kB / 1.033 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.4065, allocations: 176.2 kB / 1.033 GB, free: 1.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.4065, allocations: 4.375 kB / 1.033 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.4066, allocations: 8.375 kB / 1.033 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.4069, allocations: 121.7 kB / 1.034 GB, free: 1.773 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.4069, allocations: 3.938 kB / 1.034 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.407, allocations: 0 / 1.034 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.407, allocations: 7.938 kB / 1.034 GB, free: 1.762 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.4074, allocations: 123.9 kB / 1.034 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006165/0.408, allocations: 340.7 kB / 1.034 GB, free: 1.258 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006747/0.4087, allocations: 134.5 kB / 1.034 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.4089, allocations: 64.81 kB / 1.034 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.409, allocations: 3.984 kB / 1.034 GB, free: 1.047 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.409, allocations: 34.56 kB / 1.034 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.409, allocations: 4 kB / 1.034 GB, free: 1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000784/0.4098, allocations: 213.4 kB / 1.034 GB, free: 0.7852 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.4099, allocations: 55.41 kB / 1.034 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.41, allocations: 125.8 kB / 1.035 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.41, allocations: 25.7 kB / 1.035 GB, free: 0.5547 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.488e-05/0.4101, allocations: 103.9 kB / 1.035 GB, free: 460 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.4102, allocations: 23.7 kB / 1.035 GB, free: 436 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.4102, allocations: 17.72 kB / 1.035 GB, free: 412 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4104, allocations: 322.8 kB / 1.035 GB, free: 80 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.4106, allocations: 55.95 kB / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.4108, allocations: 55.95 kB / 1.035 GB, free: 15.97 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.4112, allocations: 120.8 kB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4112, allocations: 0 / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004418/0.4116, allocations: 154 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.4117, allocations: 5.719 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4117, allocations: 4 kB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.4117, allocations: 4 kB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.4119, allocations: 27.97 kB / 1.035 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.4119, allocations: 4.062 kB / 1.035 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.412, allocations: 31.81 kB / 1.035 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.4121, allocations: 4 kB / 1.035 GB, free: 15.61 MB / 0.795 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 0.0001521/0.4122, allocations: 127.2 kB / 1.036 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.4123, allocations: 0 / 1.036 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005258/0.4128, allocations: 181.9 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4128, allocations: 0 / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4128, allocations: 0 / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4128, allocations: 3.938 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002335/0.4131, allocations: 197.5 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4131, allocations: 3.984 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.4133, allocations: 31.97 kB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4133, allocations: 0 / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.4133, allocations: 4 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4133, allocations: 4 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.4133, allocations: 3.938 kB / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005129/0.4138, allocations: 259.3 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.4139, allocations: 81.02 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.4139, allocations: 8 kB / 1.036 GB, free: 14.63 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.4141, allocations: 19.98 kB / 1.036 GB, free: 14.61 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.4141, allocations: 19.97 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.4142, allocations: 11.92 kB / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.042e-05/0.4142, allocations: 99.64 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4142, allocations: 0 / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002237/0.4145, allocations: 12 kB / 1.036 GB, free: 14.47 MB / 0.795 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.0001555/0.4146, allocations: 103.2 kB / 1.037 GB, free: 14.36 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004669/0.4151, allocations: 127.9 kB / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4151, allocations: 3.938 kB / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002169/0.4153, allocations: 71.94 kB / 1.037 GB, free: 14.16 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.4157, allocations: 8 kB / 1.037 GB, free: 14.15 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004836/0.4162, allocations: 194.9 kB / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.4165, allocations: 0.6965 MB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.687e-05/0.4166, allocations: 8 kB / 1.038 GB, free: 13.2 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.4166, allocations: 23.42 kB / 1.038 GB, free: 13.18 MB / 0.795 GB Notification: Performance of SimCode: time 3.1e-07/0.4167, allocations: 0 / 1.038 GB, free: 13.18 MB / 0.795 GB Notification: Performance of Templates: time 0.004022/0.4207, allocations: 1.338 MB / 1.039 GB, free: 11.85 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches