Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001438/0.001438, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001742/0.001742, allocations: 193.7 kB / 16.25 MB, free: 6.637 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.44/1.44, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.541/2.541, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 68.14 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9512/0.9533, allocations: 140.4 MB / 0.9491 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.00215/0.9555, allocations: 0.8331 MB / 0.9499 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000982/0.9565, allocations: 0.865 MB / 0.9508 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.956e-05/0.9566, allocations: 1.375 kB / 0.9508 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.006e-05/0.9566, allocations: 3.938 kB / 0.9508 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.082e-05/0.9567, allocations: 9.297 kB / 0.9508 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.9569, allocations: 34.88 kB / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.9571, allocations: 87.55 kB / 0.9509 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.9572, allocations: 23.11 kB / 0.9509 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.9573, allocations: 40.84 kB / 0.951 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.9574, allocations: 51.97 kB / 0.951 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.9575, allocations: 7.906 kB / 0.951 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.419e-05/0.9575, allocations: 8.406 kB / 0.951 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.419e-05/0.9575, allocations: 18.67 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.9576, allocations: 38.94 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.9578, allocations: 86.44 kB / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.9578, allocations: 0 / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.245e-06/0.9578, allocations: 1.156 kB / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.9578, allocations: 0 / 0.9512 GB, free: 7.551 MB / 0.7169 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.0006508/0.9585, allocations: 389.2 kB / 0.9515 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.9585, allocations: 8.812 kB / 0.9515 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.568e-05/0.9586, allocations: 13.12 kB / 0.9516 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.9587, allocations: 189.1 kB / 0.9517 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.9587, allocations: 2.938 kB / 0.9517 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.9588, allocations: 7.969 kB / 0.9517 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003113/0.9591, allocations: 108.4 kB / 0.9518 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.9591, allocations: 0 / 0.9518 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.9591, allocations: 1.25 kB / 0.9518 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.9591, allocations: 1.219 kB / 0.9518 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003498/0.9595, allocations: 100.2 kB / 0.9519 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004875/0.96, allocations: 351.1 kB / 0.9523 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/0.9606, allocations: 121.5 kB / 0.9524 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.9608, allocations: 51.09 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.9608, allocations: 1.406 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.9609, allocations: 43.84 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.9609, allocations: 0 / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006459/0.9615, allocations: 180.4 kB / 0.9527 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.9616, allocations: 52.34 kB / 0.9527 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.889e-05/0.9617, allocations: 129.9 kB / 0.9528 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.9617, allocations: 25.7 kB / 0.9529 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.9617, allocations: 96 kB / 0.953 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.9618, allocations: 25.14 kB / 0.953 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.394e-05/0.9618, allocations: 20.72 kB / 0.953 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.496e-05/0.9619, allocations: 324 kB / 0.9533 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.9621, allocations: 44.67 kB / 0.9533 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.9622, allocations: 48.33 kB / 0.9534 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.9626, allocations: 102.5 kB / 0.9535 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.9626, allocations: 0 / 0.9535 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003761/0.963, allocations: 140.2 kB / 0.9536 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.963, allocations: 5.219 kB / 0.9536 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.963, allocations: 3.938 kB / 0.9536 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.963, allocations: 5.297 kB / 0.9536 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.9632, allocations: 24.25 kB / 0.9537 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.9632, allocations: 0 / 0.9537 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.9633, allocations: 19.73 kB / 0.9537 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.9634, allocations: 5.562 kB / 0.9537 GB, free: 5.305 MB / 0.7169 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 7.247e-05/0.9634, allocations: 122 kB / 0.9538 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.9635, allocations: 6.281 kB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.9639, allocations: 156.3 kB / 0.954 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.9639, allocations: 1.469 kB / 0.954 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.9639, allocations: 4 kB / 0.954 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.9639, allocations: 3.938 kB / 0.954 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.9641, allocations: 195.9 kB / 0.9542 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.9641, allocations: 0 / 0.9542 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.9643, allocations: 24.03 kB / 0.9542 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.9643, allocations: 5.031 kB / 0.9542 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.9643, allocations: 1.438 kB / 0.9542 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.9643, allocations: 0 / 0.9542 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.9643, allocations: 1.375 kB / 0.9542 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.9647, allocations: 243.4 kB / 0.9544 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.936e-05/0.9648, allocations: 79.27 kB / 0.9545 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.9648, allocations: 4.984 kB / 0.9545 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.965, allocations: 10.48 kB / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.966e-05/0.9651, allocations: 19.3 kB / 0.9545 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.9651, allocations: 14.23 kB / 0.9545 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.381e-05/0.9651, allocations: 101.2 kB / 0.9546 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9651, allocations: 1.281 kB / 0.9546 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002312/0.9654, allocations: 18.78 kB / 0.9547 GB, free: 4.414 MB / 0.7169 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.0001266/0.9655, allocations: 102.8 kB / 0.9547 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004205/0.9659, allocations: 110 kB / 0.9549 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.9659, allocations: 1.438 kB / 0.9549 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.9661, allocations: 66.91 kB / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.9665, allocations: 11.72 kB / 0.9549 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004332/0.9669, allocations: 196.1 kB / 0.9551 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.9671, allocations: 0.6936 MB / 0.9558 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.053e-05/0.9672, allocations: 11.22 kB / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.999e-05/0.9672, allocations: 18.64 kB / 0.9558 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.9672, allocations: 0 / 0.9558 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of Templates: time 0.003616/0.9708, allocations: 1.408 MB / 0.9572 GB, free: 2.613 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches