Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_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.001135/0.001135, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001265/0.001264, allocations: 196 kB / 16.14 MB, free: 6.727 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.316/1.316, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.493/2.493, allocations: 461.9 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 66.94 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2792, allocations: 157.4 MB / 1.052 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002047/0.2813, allocations: 0.8381 MB / 1.053 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.2823, allocations: 0.8741 MB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.604e-05/0.2824, allocations: 0 / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.011e-05/0.2824, allocations: 3.938 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.442e-05/0.2825, allocations: 7.922 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.2827, allocations: 39.97 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.2828, allocations: 83.77 kB / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.2829, allocations: 19.98 kB / 1.054 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.066e-05/0.283, allocations: 31.91 kB / 1.054 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.13e-05/0.2831, allocations: 47.81 kB / 1.054 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.2832, allocations: 4 kB / 1.054 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.755e-05/0.2832, allocations: 8 kB / 1.054 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.7e-05/0.2832, allocations: 19.92 kB / 1.054 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.603e-05/0.2833, allocations: 35.78 kB / 1.054 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.2834, allocations: 75.72 kB / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2834, allocations: 0 / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2834, allocations: 4 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2834, allocations: 0 / 1.054 GB, free: 6.062 MB / 0.8106 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.0006365/0.2841, allocations: 391.5 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.2841, allocations: 15.97 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.2842, allocations: 42.67 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.2842, allocations: 8.844 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.2844, allocations: 180.2 kB / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.2844, allocations: 384 / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.2844, allocations: 4.375 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.2847, allocations: 112.7 kB / 1.055 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2847, allocations: 0 / 1.055 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.2848, allocations: 4 kB / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2848, allocations: 4 kB / 1.055 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.2851, allocations: 99.83 kB / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/0.2857, allocations: 344.6 kB / 1.055 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.2863, allocations: 126.5 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.2865, allocations: 60.69 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2866, allocations: 4 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.2866, allocations: 34.56 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.2866, allocations: 0 / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006374/0.2872, allocations: 177.5 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.2873, allocations: 63.39 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.461e-05/0.2874, allocations: 125.7 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2874, allocations: 25.7 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.981e-05/0.2874, allocations: 99.97 kB / 1.056 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.2875, allocations: 15.81 kB / 1.056 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.2875, allocations: 21.7 kB / 1.056 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.388e-05/0.2876, allocations: 318.8 kB / 1.056 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.2878, allocations: 51.94 kB / 1.056 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.288, allocations: 43.95 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.2883, allocations: 92.78 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2883, allocations: 0 / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003844/0.2887, allocations: 141.5 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.2887, allocations: 4 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2887, allocations: 4 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.2888, allocations: 3.938 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.2889, allocations: 23.97 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.289, allocations: 0 / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.2891, allocations: 19.92 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.2891, allocations: 3.984 kB / 1.057 GB, free: 3.219 MB / 0.8106 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 8.549e-05/0.2892, allocations: 113.8 kB / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.309e-05/0.2892, allocations: 7.906 kB / 1.057 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004477/0.2897, allocations: 157.9 kB / 1.057 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2897, allocations: 7.984 kB / 1.057 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.2897, allocations: 4 kB / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2897, allocations: 7.875 kB / 1.057 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.2899, allocations: 197.5 kB / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2899, allocations: 0 / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.2901, allocations: 23.97 kB / 1.057 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.2901, allocations: 4 kB / 1.057 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.2901, allocations: 3.984 kB / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2901, allocations: 0 / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2901, allocations: 4 kB / 1.057 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004328/0.2905, allocations: 239.9 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.6e-05/0.2906, allocations: 85.02 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.2906, allocations: 0 / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.2908, allocations: 19.92 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.483e-05/0.2909, allocations: 23.91 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.2909, allocations: 7.938 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.647e-05/0.2909, allocations: 91.7 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2909, allocations: 4 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002236/0.2912, allocations: 12 kB / 1.058 GB, free: 2.125 MB / 0.8106 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.0007056/0.2919, allocations: 0.773 MB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003873/0.2923, allocations: 103.8 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2923, allocations: 4 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.2925, allocations: 67.92 kB / 1.059 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.2928, allocations: 13.98 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.2948, allocations: 1.545 MB / 1.06 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.295, allocations: 0.6926 MB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.023e-05/0.2951, allocations: 11.98 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.68e-05/0.2952, allocations: 27.42 kB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2952, allocations: 0 / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.123/0.4182, allocations: 2.333 MB / 1.063 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/0.4184, allocations: 206.7 kB / 1.063 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.534/1.952, allocations: 64 / 1.063 GB, free: 12.27 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches