Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_MultiMaxInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_MultiMaxInteger",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.007219/0.007219, allocations: 103.7 kB / 15.74 MB, free: 6.039 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.001729/0.001729, allocations: 201.8 kB / 16.68 MB, free: 5.965 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.851/2.851, allocations: 469.4 MB / 0.7422 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 67.89 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2617, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger): time 0.001705/0.2635, allocations: 0.6063 MB / 1.22 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001298/0.2636, allocations: 13.77 kB / 1.22 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.602e-05/0.2637, allocations: 7.828 kB / 1.22 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.094e-05/0.2638, allocations: 4 kB / 1.22 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.489e-05/0.2638, allocations: 3.938 kB / 1.22 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 6.245e-05/0.2639, allocations: 4 kB / 1.22 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.456e-05/0.264, allocations: 23.98 kB / 1.22 GB, free: 14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.2641, allocations: 27.98 kB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.625e-05/0.2641, allocations: 19.92 kB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.95e-05/0.2642, allocations: 15.92 kB / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.2642, allocations: 0 / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.2642, allocations: 4 kB / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.2642, allocations: 8 kB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.683e-05/0.2643, allocations: 19.86 kB / 1.22 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.427e-05/0.2644, allocations: 55.69 kB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2644, allocations: 4 kB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2644, allocations: 0 / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.2644, allocations: 0 / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003213/0.2647, allocations: 343.4 kB / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2648, allocations: 12.03 kB / 1.221 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.434e-05/0.2648, allocations: 38.73 kB / 1.221 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.2648, allocations: 8.891 kB / 1.221 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.2651, allocations: 188.2 kB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.2651, allocations: 4.375 kB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.2651, allocations: 4.375 kB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.2652, allocations: 74.17 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2653, allocations: 7.938 kB / 1.221 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.2653, allocations: 4 kB / 1.221 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.2653, allocations: 0 / 1.221 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.331e-05/0.2654, allocations: 47.97 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004488/0.2658, allocations: 487.1 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.861e-05/0.2659, allocations: 173.1 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.676e-05/0.2659, allocations: 80.14 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.266, allocations: 79.28 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.266, allocations: 105.8 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=0): time 3.386e-06/0.266, allocations: 7.922 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of matching and sorting (n=0): time 6.934e-05/0.2661, allocations: 41.62 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.2662, allocations: 130.6 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.2663, allocations: 167.7 kB / 1.222 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.2663, allocations: 29.81 kB / 1.222 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.2664, allocations: 96.03 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-06/0.2664, allocations: 0 / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.2664, allocations: 17.7 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.608e-05/0.2665, allocations: 322.8 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.775e-05/0.2665, allocations: 7.984 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.211e-05/0.2666, allocations: 4 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.664e-05/0.2666, allocations: 20.78 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2666, allocations: 0 / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001131/0.2667, allocations: 49.69 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.2668, allocations: 4 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2668, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.2668, allocations: 96 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.506e-05/0.2668, allocations: 11.94 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.2669, allocations: 3.984 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.726e-05/0.2669, allocations: 7.953 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.2669, allocations: 4 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (mulMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 9.075e-05/0.267, allocations: 193.1 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.2671, allocations: 112.9 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.2671, allocations: 108.9 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-05/0.2672, allocations: 188.2 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.305e-05/0.2672, allocations: 188.2 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.247e-05/0.2673, allocations: 176.3 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.2675, allocations: 421.1 kB / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.492e-05/0.2676, allocations: 105 kB / 1.224 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.288e-05/0.2676, allocations: 109 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.667e-05/0.2677, allocations: 180.2 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.2677, allocations: 180.2 kB / 1.225 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.114e-05/0.2678, allocations: 188.1 kB / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.82e-05/0.2678, allocations: 176.5 kB / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.268, allocations: 311.8 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-05/0.268, allocations: 190 kB / 1.226 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.753e-05/0.2681, allocations: 188.2 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.221e-05/0.2682, allocations: 104.9 kB / 1.226 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.2683, allocations: 184.2 kB / 1.226 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.2683, allocations: 109 kB / 1.226 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.258e-05/0.2684, allocations: 133 kB / 1.226 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2684, allocations: 3.938 kB / 1.226 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002256/0.2686, allocations: 7.938 kB / 1.226 GB, free: 7.379 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0003705/0.269, allocations: 0.8234 MB / 1.227 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 6.024e-05/0.2691, allocations: 7.984 kB / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2691, allocations: 0 / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.823e-06/0.2691, allocations: 0 / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.2695, allocations: 465.7 kB / 1.228 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.2706, allocations: 1.495 MB / 1.229 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.2708, allocations: 0.6846 MB / 1.23 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.487e-05/0.2708, allocations: 8 kB / 1.23 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.2709, allocations: 11.44 kB / 1.23 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.2709, allocations: 0 / 1.23 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.2873, allocations: 1.581 MB / 1.231 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.25/7.537, allocations: 19.19 kB / 1.231 GB, free: 2.309 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_MultiMaxInteger.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_MultiMaxInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.MultiMaxInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches