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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.004081/0.004081, allocations: 96.7 kB / 15.73 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.001177/0.001177, allocations: 197.8 kB / 16.68 MB, free: 5.969 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.291/1.291, 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 12.0.0-master/package.mo): time 2.71/2.71, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 67.89 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2626, allocations: 162.3 MB / 1.242 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.001799/0.2645, allocations: 0.8552 MB / 1.243 GB, free: 8.961 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000243/0.2647, allocations: 91.64 kB / 1.243 GB, free: 8.871 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.145e-05/0.2648, allocations: 4 kB / 1.243 GB, free: 8.867 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2649, allocations: 23.73 kB / 1.243 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.2651, allocations: 19.78 kB / 1.243 GB, free: 8.824 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 7.402e-05/0.2651, allocations: 39.97 kB / 1.243 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.2654, allocations: 247.5 kB / 1.243 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003614/0.2658, allocations: 298.3 kB / 1.243 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.2659, allocations: 135.5 kB / 1.244 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.266, allocations: 135.3 kB / 1.244 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.148e-05/0.2661, allocations: 32 kB / 1.244 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.641e-05/0.2661, allocations: 36 kB / 1.244 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.207e-05/0.2662, allocations: 87.75 kB / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.2664, allocations: 151.1 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003913/0.2668, allocations: 462 kB / 1.244 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2668, allocations: 4 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2668, allocations: 0 / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.2668, allocations: 0 / 1.244 GB, free: 7.219 MB / 0.9981 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.0006511/0.2674, allocations: 0.6077 MB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2675, allocations: 8.031 kB / 1.245 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.526e-05/0.2676, allocations: 74.72 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.076e-05/0.2676, allocations: 44.66 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.268, allocations: 340.2 kB / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.2681, allocations: 29.03 kB / 1.245 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.2681, allocations: 36.38 kB / 1.245 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.2687, allocations: 400.2 kB / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2687, allocations: 3.938 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.2687, allocations: 12 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.2687, allocations: 8 kB / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.2692, allocations: 307.5 kB / 1.246 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.2704, allocations: 1.05 MB / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.2706, allocations: 93.22 kB / 1.247 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.382e-05/0.2706, allocations: 49.78 kB / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.2707, allocations: 3.938 kB / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.2707, allocations: 38.5 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.2707, allocations: 0 / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0002929/0.271, allocations: 173.3 kB / 1.248 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.2711, allocations: 81.11 kB / 1.248 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005233/0.2716, allocations: 0.5052 MB / 1.248 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.2716, allocations: 33.7 kB / 1.248 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2718, allocations: 199.8 kB / 1.248 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.2718, allocations: 19.84 kB / 1.248 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.452e-05/0.2719, allocations: 57.64 kB / 1.248 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.272, allocations: 346.8 kB / 1.249 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.2721, allocations: 67.95 kB / 1.249 GB, free: 2.422 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.2722, allocations: 87.06 kB / 1.249 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.2724, allocations: 117.6 kB / 1.249 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2724, allocations: 0 / 1.249 GB, free: 2.211 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002838/0.2727, allocations: 213.2 kB / 1.249 GB, free: 1.996 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.2727, allocations: 4 kB / 1.249 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.2727, allocations: 0 / 1.249 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.2727, allocations: 3.938 kB / 1.249 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.2729, allocations: 35.92 kB / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2729, allocations: 0 / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.821e-05/0.2729, allocations: 31.73 kB / 1.249 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.273, allocations: 8 kB / 1.249 GB, free: 1.914 MB / 0.9981 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.0001808/0.2731, allocations: 207.4 kB / 1.249 GB, free: 1.703 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.2732, allocations: 36.14 kB / 1.25 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.2734, allocations: 118 kB / 1.25 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2734, allocations: 3.938 kB / 1.25 GB, free: 1.539 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.2734, allocations: 3.984 kB / 1.25 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2734, allocations: 4 kB / 1.25 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005256/0.274, allocations: 0.6566 MB / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.274, allocations: 0 / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.923e-05/0.274, allocations: 7.938 kB / 1.25 GB, free: 0.7969 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.274, allocations: 4 kB / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-06/0.274, allocations: 0 / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.274, allocations: 0 / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.274, allocations: 4 kB / 1.25 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.2742, allocations: 139.5 kB / 1.25 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.754e-05/0.2743, allocations: 116.9 kB / 1.251 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.2743, allocations: 3.984 kB / 1.251 GB, free: 500 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.508e-05/0.2744, allocations: 4 kB / 1.251 GB, free: 496 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.2744, allocations: 8 kB / 1.251 GB, free: 488 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.2744, allocations: 4 kB / 1.251 GB, free: 484 kB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003944/0.2748, allocations: 395 kB / 1.251 GB, free: 88 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2748, allocations: 0 / 1.251 GB, free: 88 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002184/0.275, allocations: 43.89 kB / 1.251 GB, free: 44 kB / 0.9981 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.4625/0.7375, allocations: 0.6639 MB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002141/0.7378, allocations: 104.2 kB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.7378, allocations: 0.9375 kB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.532e-05/0.7378, allocations: 20.61 kB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.7381, allocations: 27.05 kB / 1.252 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/0.7406, allocations: 2.916 MB / 1.255 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001763/0.7408, allocations: 0.7899 MB / 1.255 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001044/0.7409, allocations: 56.8 kB / 1.255 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.741, allocations: 91.72 kB / 1.256 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.741, allocations: 1.344 kB / 1.256 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4127/1.154, allocations: 5.672 MB / 1.261 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.032/9.186, allocations: 11.33 kB / 1.261 GB, free: 11.33 MB / 0.9981 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=400 --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