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.001633/0.001633, allocations: 108 kB / 15.6 MB, free: 132 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.002235/0.002236, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.567/1.567, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.568/2.568, allocations: 390.2 MB / 0.6646 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.91 kB / 0.8125 GB, free: 14.44 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8414/0.8427, allocations: 140.4 MB / 0.9496 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002078/0.8448, allocations: 0.7792 MB / 0.9504 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009617/0.8458, allocations: 0.8633 MB / 0.9512 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.978e-05/0.8459, allocations: 1.438 kB / 0.9512 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.982e-05/0.8459, allocations: 3.938 kB / 0.9512 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.796e-05/0.846, allocations: 13.56 kB / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.8462, allocations: 43.69 kB / 0.9513 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.8463, allocations: 85.77 kB / 0.9513 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.8465, allocations: 26.97 kB / 0.9514 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.29e-05/0.8466, allocations: 37.53 kB / 0.9514 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.441e-05/0.8467, allocations: 56.84 kB / 0.9515 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.8467, allocations: 7.656 kB / 0.9515 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.09e-05/0.8467, allocations: 8.344 kB / 0.9515 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.419e-05/0.8468, allocations: 14.67 kB / 0.9515 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.354e-05/0.8468, allocations: 34.89 kB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.8469, allocations: 86.34 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.8469, allocations: 0 / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8469, allocations: 1.656 kB / 0.9516 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.847, allocations: 3.938 kB / 0.9516 GB, free: 7.543 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.0005927/0.8476, allocations: 396.6 kB / 0.952 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.8476, allocations: 8.969 kB / 0.952 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.51e-05/0.8476, allocations: 8.688 kB / 0.952 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.8478, allocations: 181.3 kB / 0.9522 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.8478, allocations: 2.719 kB / 0.9522 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.8478, allocations: 12.06 kB / 0.9522 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.8481, allocations: 109.2 kB / 0.9523 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.8481, allocations: 4 kB / 0.9523 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.8482, allocations: 1.469 kB / 0.9523 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.8482, allocations: 1.562 kB / 0.9523 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.8485, allocations: 102.9 kB / 0.9524 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00046/0.849, allocations: 343.8 kB / 0.9527 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005989/0.8496, allocations: 126 kB / 0.9528 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.8498, allocations: 54.25 kB / 0.9529 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.8499, allocations: 9.266 kB / 0.9529 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.8499, allocations: 31.84 kB / 0.9529 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.8499, allocations: 0 / 0.9529 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000648/0.8505, allocations: 180.9 kB / 0.9531 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.8506, allocations: 56.5 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.818e-05/0.8507, allocations: 121.5 kB / 0.9533 GB, free: 6 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.8507, allocations: 25.7 kB / 0.9533 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.062e-05/0.8507, allocations: 99.89 kB / 0.9534 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.8508, allocations: 17.81 kB / 0.9534 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.8508, allocations: 24.27 kB / 0.9534 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.8509, allocations: 324.6 kB / 0.9537 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.851, allocations: 48.55 kB / 0.9538 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.8512, allocations: 44.61 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.8516, allocations: 97.55 kB / 0.9539 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.8516, allocations: 0 / 0.9539 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004261/0.852, allocations: 144.3 kB / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.8521, allocations: 6.75 kB / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.8521, allocations: 0 / 0.9541 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.8521, allocations: 5.469 kB / 0.9541 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.8523, allocations: 23.34 kB / 0.9541 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.8523, allocations: 1.5 kB / 0.9541 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.8524, allocations: 18.61 kB / 0.9541 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.8524, allocations: 10.73 kB / 0.9541 GB, free: 5.293 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.393e-05/0.8525, allocations: 117.2 kB / 0.9542 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.8525, allocations: 6.75 kB / 0.9542 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004616/0.853, allocations: 151 kB / 0.9544 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.853, allocations: 5.516 kB / 0.9544 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.853, allocations: 0 / 0.9544 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.853, allocations: 5.125 kB / 0.9544 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.8532, allocations: 195.9 kB / 0.9546 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8532, allocations: 0 / 0.9546 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.8534, allocations: 24.12 kB / 0.9546 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.8534, allocations: 1.156 kB / 0.9546 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.8534, allocations: 7.922 kB / 0.9546 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.8534, allocations: 5.188 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.8534, allocations: 0 / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.8539, allocations: 240.2 kB / 0.9549 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.8539, allocations: 79.55 kB / 0.9549 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.854, allocations: 1.062 kB / 0.9549 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.8541, allocations: 15.08 kB / 0.9549 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9e-05/0.8542, allocations: 22.84 kB / 0.955 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.8542, allocations: 6.312 kB / 0.955 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.271e-05/0.8543, allocations: 96.61 kB / 0.9551 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8543, allocations: 0 / 0.9551 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002387/0.8545, allocations: 20.5 kB / 0.9551 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.0001578/0.8547, allocations: 102.6 kB / 0.9552 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004672/0.8552, allocations: 117.8 kB / 0.9553 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.8552, allocations: 0 / 0.9553 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002144/0.8554, allocations: 63.16 kB / 0.9554 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003883/0.8558, allocations: 8.594 kB / 0.9554 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005287/0.8563, allocations: 175.3 kB / 0.9555 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.8565, allocations: 0.6982 MB / 0.9562 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.14e-05/0.8566, allocations: 9.875 kB / 0.9562 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.232e-05/0.8567, allocations: 22.23 kB / 0.9562 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8567, allocations: 0 / 0.9562 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of Templates: time 0.004373/0.861, allocations: 1.579 MB / 0.9578 GB, free: 2.547 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