Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.CountTrue,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",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.006582/0.006582, allocations: 98.45 kB / 15.73 MB, free: 6.066 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.001499/0.001499, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.702/2.702, allocations: 461.9 MB / 0.7348 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 67.89 kB / 1.054 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8509/0.8522, allocations: 157.4 MB / 1.207 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002364/0.8547, allocations: 0.8682 MB / 1.208 GB, free: 12.6 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003024/0.855, allocations: 87.64 kB / 1.208 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.8551, allocations: 4 kB / 1.208 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.8553, allocations: 19.8 kB / 1.208 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.8554, allocations: 19.86 kB / 1.208 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 8.701e-05/0.8555, allocations: 35.97 kB / 1.208 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002823/0.8558, allocations: 255.4 kB / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.8562, allocations: 294.3 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.8564, allocations: 135.5 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.8566, allocations: 139.3 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.8566, allocations: 36 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.8567, allocations: 32 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.8568, allocations: 83.77 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.8569, allocations: 151.1 kB / 1.209 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000415/0.8574, allocations: 470.3 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.8574, allocations: 0 / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8574, allocations: 0 / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.229e-05/0.8574, allocations: 0 / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0007561/0.8582, allocations: 0.6025 MB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.8582, allocations: 8.031 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.169e-05/0.8583, allocations: 70.72 kB / 1.21 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/0.8584, allocations: 44.41 kB / 1.21 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.8588, allocations: 328.2 kB / 1.211 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.378e-05/0.8588, allocations: 33.03 kB / 1.211 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.8589, allocations: 32.38 kB / 1.211 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005979/0.8595, allocations: 404.2 kB / 1.211 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.8595, allocations: 3.938 kB / 1.211 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.8595, allocations: 12 kB / 1.211 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.8595, allocations: 8 kB / 1.211 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004399/0.86, allocations: 303.6 kB / 1.212 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.8614, allocations: 1.053 MB / 1.213 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.8616, allocations: 97.16 kB / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.574e-05/0.8616, allocations: 45.78 kB / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.8617, allocations: 4 kB / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.8617, allocations: 34.5 kB / 1.213 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 2.936e-06/0.8617, allocations: 4 kB / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003276/0.862, allocations: 165.2 kB / 1.213 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.8621, allocations: 85.05 kB / 1.213 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005367/0.8626, allocations: 0.5052 MB / 1.214 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.8627, allocations: 25.7 kB / 1.214 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.8628, allocations: 203.5 kB / 1.214 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.8628, allocations: 19.75 kB / 1.214 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.562e-05/0.8629, allocations: 53.69 kB / 1.214 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.8631, allocations: 346.8 kB / 1.214 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.8632, allocations: 67.95 kB / 1.214 GB, free: 6.102 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.8633, allocations: 95.91 kB / 1.214 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.8635, allocations: 117.5 kB / 1.214 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.8635, allocations: 0 / 1.214 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003174/0.8638, allocations: 205.2 kB / 1.215 GB, free: 5.676 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.8638, allocations: 4 kB / 1.215 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.8638, allocations: 4 kB / 1.215 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.8638, allocations: 11.94 kB / 1.215 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.864, allocations: 27.92 kB / 1.215 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.864, allocations: 4 kB / 1.215 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.997e-05/0.8641, allocations: 31.59 kB / 1.215 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.8641, allocations: 11.94 kB / 1.215 GB, free: 5.582 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (couTru.booToInt[1].y,couTru.booToInt[2].y,couTru.booToInt[3].y,couTru.booToInt[4].y,couTru.booToInt[5].y,couTru.booToInt[6].y,couTru.intEqu.y,couTru.mulMin.y,couTru.y,couTruAllFal.booToInt[1].y,couTruAllFal.booToInt[2].y,couTruAllFal.booToInt[3].y,couTruAllFal.booToInt[4].y,couTruAllFal.booToInt[5].y,couTruAllFal.booToInt[6].y,couTruAllFal.intEqu.y,couTruAllFal.mulMin.y,couTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001814/0.8643, allocations: 199.5 kB / 1.215 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.069e-05/0.8644, allocations: 31.62 kB / 1.215 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002033/0.8646, allocations: 114.4 kB / 1.215 GB, free: 5.223 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.8646, allocations: 7.875 kB / 1.215 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.8646, allocations: 4 kB / 1.215 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.8646, allocations: 3.984 kB / 1.215 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/0.8652, allocations: 0.6564 MB / 1.216 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.8652, allocations: 0 / 1.216 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.342e-05/0.8652, allocations: 4 kB / 1.216 GB, free: 4.477 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.8653, allocations: 4 kB / 1.216 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.8653, allocations: 0 / 1.216 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.8653, allocations: 3.938 kB / 1.216 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.8653, allocations: 4 kB / 1.216 GB, free: 4.465 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.8654, allocations: 135.3 kB / 1.216 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.8656, allocations: 112.7 kB / 1.216 GB, free: 4.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.182e-05/0.8656, allocations: 11.98 kB / 1.216 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.011e-05/0.8656, allocations: 0 / 1.216 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.8657, allocations: 8.125 kB / 1.216 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.8657, allocations: 4 kB / 1.216 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004185/0.8661, allocations: 395 kB / 1.216 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8661, allocations: 0 / 1.216 GB, free: 3.77 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002613/0.8664, allocations: 47.84 kB / 1.216 GB, free: 3.723 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (couTru.y,couTru.intEqu.y,couTruAllFal.y,couTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000468/0.8669, allocations: 0.6615 MB / 1.217 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.8671, allocations: 111.8 kB / 1.217 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.8671, allocations: 0 / 1.217 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.775e-05/0.8671, allocations: 15.98 kB / 1.217 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.8674, allocations: 33.48 kB / 1.217 GB, free: 2.863 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00324/0.8706, allocations: 2.894 MB / 1.22 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.8711, allocations: 0.7987 MB / 1.221 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001182/0.8712, allocations: 58.88 kB / 1.221 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.8713, allocations: 91.41 kB / 1.221 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of SimCode: time 6.61e-07/0.8714, allocations: 4 kB / 1.221 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.8977, allocations: 5.657 MB / 1.226 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.781/8.679, allocations: 24.47 kB / 1.226 GB, free: 9.367 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches