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: 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.007868/0.007868, allocations: 100 kB / 15.73 MB, free: 6.016 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.001507/0.001507, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.529/1.529, 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 10.1.1-maint.10.0.x/package.mo): time 2.707/2.707, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 63.91 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.26/1.261, allocations: 151.6 MB / 1.167 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002561/1.264, allocations: 0.781 MB / 1.167 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001496/1.266, allocations: 0.8725 MB / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.364e-05/1.266, allocations: 4 kB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.647e-05/1.266, allocations: 7.922 kB / 1.168 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000121/1.266, allocations: 11.81 kB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002372/1.266, allocations: 39.94 kB / 1.168 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001475/1.266, allocations: 79.83 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/1.266, allocations: 35.97 kB / 1.168 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/1.267, allocations: 35.86 kB / 1.168 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/1.267, allocations: 51.81 kB / 1.168 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/1.267, allocations: 8 kB / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.9e-05/1.267, allocations: 8 kB / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.39e-05/1.267, allocations: 19.91 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.256e-05/1.267, allocations: 31.86 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/1.267, allocations: 96.09 kB / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/1.267, allocations: 0 / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.783e-06/1.267, allocations: 4 kB / 1.169 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.143e-06/1.267, allocations: 0 / 1.169 GB, free: 1.793 MB / 0.8887 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.0007276/1.268, allocations: 395.1 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/1.268, allocations: 12.92 kB / 1.169 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/1.268, allocations: 8.891 kB / 1.169 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/1.268, allocations: 176.3 kB / 1.169 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/1.268, allocations: 384 / 1.169 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/1.268, allocations: 12.38 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/1.269, allocations: 111.1 kB / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/1.269, allocations: 0 / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/1.269, allocations: 0 / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/1.269, allocations: 4 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003801/1.269, allocations: 99.89 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/1.27, allocations: 340.6 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/1.27, allocations: 118.6 kB / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/1.27, allocations: 64.69 kB / 1.17 GB, free: 336 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/1.271, allocations: 7.984 kB / 1.17 GB, free: 328 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/1.271, allocations: 30.56 kB / 1.17 GB, free: 288 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/1.271, allocations: 0 / 1.17 GB, free: 288 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0006818/1.271, allocations: 189.4 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/1.271, allocations: 51.41 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/1.271, allocations: 125.7 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/1.271, allocations: 25.7 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/1.272, allocations: 104 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/1.272, allocations: 15.86 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.004e-05/1.272, allocations: 21.7 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.272, allocations: 326.8 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/1.272, allocations: 43.95 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/1.272, allocations: 43.95 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/1.272, allocations: 97.23 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.273, allocations: 4 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004446/1.273, allocations: 145.5 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/1.273, allocations: 4 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/1.273, allocations: 4 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/1.273, allocations: 0 / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/1.273, allocations: 23.97 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/1.273, allocations: 4 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/1.273, allocations: 19.86 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/1.273, allocations: 7.984 kB / 1.171 GB, free: 14.99 MB / 0.9044 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.0001027/1.273, allocations: 113.8 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.094e-05/1.273, allocations: 7.953 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004711/1.274, allocations: 149.9 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/1.274, allocations: 7.984 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.274, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/1.274, allocations: 11.86 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/1.274, allocations: 193.6 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.274, allocations: 4 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/1.274, allocations: 23.97 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/1.274, allocations: 4 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/1.274, allocations: 7.984 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/1.274, allocations: 0 / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/1.274, allocations: 0 / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/1.275, allocations: 239.3 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/1.275, allocations: 85.06 kB / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/1.275, allocations: 4 kB / 1.172 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/1.275, allocations: 11.98 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.035e-05/1.275, allocations: 23.91 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/1.275, allocations: 7.938 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.146e-05/1.275, allocations: 99.27 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/1.275, allocations: 0 / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002382/1.276, allocations: 12 kB / 1.172 GB, free: 13.9 MB / 0.9044 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.0001562/1.276, allocations: 103.2 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004383/1.276, allocations: 107.8 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.276, allocations: 0 / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002078/1.276, allocations: 59.95 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/1.277, allocations: 15.98 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005463/1.277, allocations: 176.8 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/1.278, allocations: 0.6923 MB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.544e-05/1.278, allocations: 15.98 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.327e-05/1.278, allocations: 19.42 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of SimCode: time 3.81e-07/1.278, allocations: 0 / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of Templates: time 0.005173/1.283, allocations: 1.578 MB / 1.175 GB, free: 11.09 MB / 0.9044 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/jenkins/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