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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001693/0.001693, 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.001979/0.001979, allocations: 191.9 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.423/1.423, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.368/2.368, allocations: 390.3 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6393/0.6407, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.001955/0.6427, allocations: 0.771 MB / 0.9505 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008894/0.6436, allocations: 0.8647 MB / 0.9513 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.566e-05/0.6437, allocations: 1.656 kB / 0.9513 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.568e-05/0.6437, allocations: 7.875 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.075e-05/0.6438, allocations: 9.719 kB / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001576/0.644, allocations: 46.81 kB / 0.9514 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.702e-05/0.6441, allocations: 85.89 kB / 0.9515 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.6442, allocations: 22.98 kB / 0.9515 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.774e-05/0.6443, allocations: 37.03 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.037e-05/0.6444, allocations: 49.05 kB / 0.9516 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.6444, allocations: 12.66 kB / 0.9516 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.837e-05/0.6444, allocations: 7.906 kB / 0.9516 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.699e-05/0.6445, allocations: 21.58 kB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.187e-05/0.6445, allocations: 38.67 kB / 0.9517 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.6446, allocations: 87.75 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6446, allocations: 0 / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6446, allocations: 0 / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.6447, allocations: 1.406 kB / 0.9517 GB, free: 7.605 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.0005091/0.6452, allocations: 392.5 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.6452, allocations: 9.188 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.107e-05/0.6452, allocations: 41.19 kB / 0.9522 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.031e-05/0.6453, allocations: 8.094 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.658e-05/0.6454, allocations: 186.1 kB / 0.9524 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.6454, allocations: 7.312 kB / 0.9524 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.6454, allocations: 2.719 kB / 0.9524 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.6457, allocations: 109.3 kB / 0.9525 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.6457, allocations: 0 / 0.9525 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.6457, allocations: 9.094 kB / 0.9525 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-06/0.6458, allocations: 1.156 kB / 0.9525 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00037/0.6461, allocations: 95.5 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004274/0.6466, allocations: 347.5 kB / 0.9529 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006219/0.6472, allocations: 118.1 kB / 0.953 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.6474, allocations: 55.22 kB / 0.9531 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.6474, allocations: 9.328 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.6474, allocations: 31.56 kB / 0.9531 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.6474, allocations: 0 / 0.9531 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006333/0.6481, allocations: 176.3 kB / 0.9533 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.488e-05/0.6481, allocations: 56.94 kB / 0.9533 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.527e-05/0.6482, allocations: 141.3 kB / 0.9535 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.6482, allocations: 25.7 kB / 0.9535 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.6483, allocations: 90.97 kB / 0.9536 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.6483, allocations: 22.66 kB / 0.9536 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.6484, allocations: 23.95 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4e-05/0.6484, allocations: 321.8 kB / 0.9539 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.6486, allocations: 46.58 kB / 0.954 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.6488, allocations: 45.36 kB / 0.954 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.6491, allocations: 97.52 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.6491, allocations: 1.188 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003959/0.6495, allocations: 136.3 kB / 0.9542 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.6496, allocations: 8.219 kB / 0.9542 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.6496, allocations: 1.188 kB / 0.9542 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.6496, allocations: 3.938 kB / 0.9542 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.6498, allocations: 28.75 kB / 0.9543 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.6498, allocations: 0 / 0.9543 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.6499, allocations: 24.22 kB / 0.9543 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.6499, allocations: 5.25 kB / 0.9543 GB, free: 5.312 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 6.094e-05/0.65, allocations: 117.8 kB / 0.9544 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.65, allocations: 6.688 kB / 0.9544 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004504/0.6505, allocations: 155.1 kB / 0.9546 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.6505, allocations: 1.438 kB / 0.9546 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6505, allocations: 0 / 0.9546 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.6505, allocations: 5 kB / 0.9546 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.6507, allocations: 199.9 kB / 0.9548 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6507, allocations: 0 / 0.9548 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.6509, allocations: 27.97 kB / 0.9548 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.6509, allocations: 1.469 kB / 0.9548 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.6509, allocations: 0 / 0.9548 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6509, allocations: 1.438 kB / 0.9548 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.6509, allocations: 7.984 kB / 0.9548 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004286/0.6513, allocations: 232.7 kB / 0.955 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/0.6514, allocations: 82.23 kB / 0.9551 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.6514, allocations: 5.406 kB / 0.9551 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.6515, allocations: 22.84 kB / 0.9551 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.967e-05/0.6516, allocations: 22.77 kB / 0.9552 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.6516, allocations: 2.969 kB / 0.9552 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.442e-05/0.6517, allocations: 92.55 kB / 0.9552 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6517, allocations: 0 / 0.9552 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002419/0.652, allocations: 20.59 kB / 0.9553 GB, free: 4.43 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.0006651/0.6526, allocations: 0.7762 MB / 0.956 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004387/0.6531, allocations: 106.3 kB / 0.9561 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6531, allocations: 0 / 0.9561 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.6533, allocations: 62.66 kB / 0.9562 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.6537, allocations: 18.19 kB / 0.9562 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.6555, allocations: 1.527 MB / 0.9577 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.6557, allocations: 0.6977 MB / 0.9584 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.843e-05/0.6557, allocations: 11.14 kB / 0.9584 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/0.6558, allocations: 34.8 kB / 0.9584 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.6558, allocations: 192 / 0.9584 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.6735, allocations: 2.652 MB / 0.961 GB, free: 104 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.799/8.472, allocations: 8.984 kB / 0.961 GB, free: 100 kB / 0.7169 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/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