Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00177/0.00177, 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.002507/0.002507, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.551/1.551, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.993/2.993, allocations: 437 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002953/0.002953, allocations: 63.91 kB / 0.8692 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9278/0.9307, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002653/0.9335, allocations: 0.7731 MB / 1.018 GB, free: 1.699 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.935, allocations: 0.8741 MB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.729e-05/0.9351, allocations: 0 / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.073e-05/0.9351, allocations: 15.86 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.827e-05/0.9353, allocations: 7.938 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.9355, allocations: 39.88 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.9356, allocations: 79.84 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.9358, allocations: 27.97 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.9359, allocations: 47.77 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.9361, allocations: 51.77 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.531e-05/0.9361, allocations: 8 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.946e-05/0.9361, allocations: 8 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.63e-05/0.9362, allocations: 23.91 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.305e-05/0.9362, allocations: 31.86 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.9364, allocations: 87.66 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.9364, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.605e-06/0.9364, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.9364, allocations: 0 / 1.019 GB, free: 400 kB / 0.7637 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.0008556/0.9373, allocations: 401.1 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.9374, allocations: 8.031 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.144e-05/0.9374, allocations: 8.844 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.9376, allocations: 180.2 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.9377, allocations: 8.375 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.9377, allocations: 4.375 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000363/0.9381, allocations: 109.7 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.9381, allocations: 0 / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.9381, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.9381, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.9385, allocations: 95.89 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007309/0.9393, allocations: 352.5 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/0.9399, allocations: 114.6 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.9402, allocations: 56.81 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.9402, allocations: 4 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.9402, allocations: 34.5 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.9402, allocations: 0 / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007147/0.941, allocations: 189.4 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.941, allocations: 51.41 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.9411, allocations: 129.8 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.9412, allocations: 25.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.9412, allocations: 88.14 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.506e-05/0.9413, allocations: 31.58 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.9413, allocations: 21.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.9415, allocations: 326.8 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.9417, allocations: 43.95 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.9419, allocations: 43.95 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.9423, allocations: 104.7 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.9423, allocations: 0 / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004436/0.9427, allocations: 133.5 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.9428, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.9428, allocations: 3.984 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.9428, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.943, allocations: 35.91 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.943, allocations: 4 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.9432, allocations: 15.92 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.9432, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 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 0.0001426/0.9433, allocations: 121.8 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.9434, allocations: 7.906 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.9439, allocations: 149.9 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.9439, allocations: 3.984 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.9439, allocations: 4 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.9439, allocations: 3.938 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.9442, allocations: 197.6 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.9442, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.9444, allocations: 27.97 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.9444, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.9444, allocations: 11.94 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.9444, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.9444, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005286/0.945, allocations: 231.9 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.29e-05/0.9451, allocations: 85.02 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.9451, allocations: 11.98 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.9452, allocations: 11.98 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.9453, allocations: 15.98 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.9454, allocations: 11.92 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.175e-05/0.9454, allocations: 95.2 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9454, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002339/0.9457, allocations: 19.94 kB / 1.023 GB, free: 12.5 MB / 0.7794 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.0001641/0.9459, allocations: 107.2 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004983/0.9464, allocations: 108 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.9464, allocations: 0 / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.9466, allocations: 63.89 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.947, allocations: 8 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/0.9475, allocations: 166.4 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.9479, allocations: 0.6924 MB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.783e-05/0.948, allocations: 12 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/0.9481, allocations: 19.42 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of SimCode: time 5.61e-07/0.9481, allocations: 4 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of Templates: time 0.005185/0.9533, allocations: 1.586 MB / 1.026 GB, free: 9.684 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches