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.001312/0.001312, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001353/0.001353, allocations: 192.2 kB / 16.14 MB, free: 6.691 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.48/1.48, allocations: 222.9 MB / 239.8 MB, free: 4.504 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.817/2.817, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.89 kB / 0.8686 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7704/0.7719, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.003384/0.7754, allocations: 0.8436 MB / 1.017 GB, free: 1.93 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00151/0.7769, allocations: 0.8623 MB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.662e-05/0.777, allocations: 0 / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.524e-05/0.7771, allocations: 3.984 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.7773, allocations: 11.92 kB / 1.018 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.7775, allocations: 39.97 kB / 1.018 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.7776, allocations: 75.83 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.7778, allocations: 31.91 kB / 1.018 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.7779, allocations: 31.91 kB / 1.018 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.778, allocations: 43.81 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.7781, allocations: 8 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2.078e-05/0.7781, allocations: 8 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.582e-05/0.7781, allocations: 19.86 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.7782, allocations: 31.8 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.7784, allocations: 87.7 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.7784, allocations: 0 / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.22e-07/0.7784, allocations: 0 / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.7784, allocations: 0 / 1.019 GB, free: 0.668 MB / 0.7637 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.0007973/0.7792, allocations: 399.4 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.7792, allocations: 15.92 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.474e-05/0.7793, allocations: 8.844 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.7795, allocations: 176.2 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.403e-05/0.7795, allocations: 8.422 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.7796, allocations: 4.375 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.7799, allocations: 113.6 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.7799, allocations: 0 / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.78, allocations: 4 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.78, allocations: 8 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00036/0.7803, allocations: 95.89 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005988/0.7809, allocations: 348.6 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006352/0.7816, allocations: 118.5 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.7818, allocations: 52.81 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.7818, allocations: 11.98 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.7819, allocations: 34.55 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.7819, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006679/0.7826, allocations: 181.4 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.7826, allocations: 55.41 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.7827, allocations: 125.8 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.7827, allocations: 29.7 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.7828, allocations: 88.14 kB / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.7828, allocations: 27.64 kB / 1.02 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/0.7829, allocations: 25.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.783, allocations: 322.8 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.7832, allocations: 47.95 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.7834, allocations: 47.94 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.7838, allocations: 96.77 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.7838, allocations: 0 / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003987/0.7842, allocations: 137.5 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.7842, allocations: 7.984 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.7842, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.7842, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.7844, allocations: 27.97 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.7844, allocations: 4 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.7846, allocations: 15.92 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.7846, allocations: 4 kB / 1.021 GB, free: 13.86 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 0.0001042/0.7847, allocations: 113.8 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.534e-05/0.7847, allocations: 11.89 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004687/0.7852, allocations: 145.9 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.7852, allocations: 4 kB / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7852, allocations: 0 / 1.021 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.7852, allocations: 7.938 kB / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.7855, allocations: 201.5 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.7855, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.7856, allocations: 23.97 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.7856, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.7857, allocations: 8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7857, allocations: 3.938 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7857, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004532/0.7861, allocations: 239.9 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.763e-05/0.7862, allocations: 89 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.7862, allocations: 4 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.7864, allocations: 15.98 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.954e-05/0.7865, allocations: 19.97 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.7865, allocations: 7.938 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.991e-05/0.7866, allocations: 99.64 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7866, allocations: 0 / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002366/0.7868, allocations: 15.94 kB / 1.022 GB, free: 12.77 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.0001484/0.787, allocations: 103.2 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004269/0.7874, allocations: 119.9 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.7874, allocations: 0 / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.7876, allocations: 59.95 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.788, allocations: 11.98 kB / 1.022 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005019/0.7885, allocations: 188 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.7888, allocations: 0.6887 MB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.767e-05/0.7889, allocations: 15.94 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.578e-05/0.7889, allocations: 19.42 kB / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of SimCode: time 1.603e-06/0.7889, allocations: 0 / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of Templates: time 0.004041/0.793, allocations: 1.345 MB / 1.025 GB, free: 10.16 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/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