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.001685/0.001685, allocations: 108 kB / 15.6 MB, free: 124 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.001938/0.001938, allocations: 194.8 kB / 16.54 MB, free: 6.668 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.68/2.68, allocations: 469.4 MB / 0.742 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 64.44 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2837, allocations: 159.1 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002465/0.2862, allocations: 0.8651 MB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003462/0.2866, allocations: 99.52 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2867, allocations: 3.938 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.2869, allocations: 19.8 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.287, allocations: 15.86 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 8.959e-05/0.2871, allocations: 39.97 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002895/0.2874, allocations: 251.4 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004193/0.2879, allocations: 298.3 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.288, allocations: 131.6 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.2882, allocations: 135.3 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.664e-05/0.2883, allocations: 36 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.808e-05/0.2883, allocations: 32 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.936e-05/0.2884, allocations: 91.69 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.2886, allocations: 151.1 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.289, allocations: 442.6 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.289, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.873e-06/0.289, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.536e-05/0.289, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 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.0008274/0.2899, allocations: 0.5928 MB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2899, allocations: 8.031 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.773e-05/0.29, allocations: 74.66 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.093e-05/0.2901, allocations: 40.47 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.2905, allocations: 328.1 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.083e-05/0.2906, allocations: 41.02 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.2906, allocations: 32.31 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006242/0.2913, allocations: 404.2 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2913, allocations: 7.875 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.2913, allocations: 16 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2913, allocations: 8 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004896/0.2918, allocations: 291.8 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.2933, allocations: 1.057 MB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.2935, allocations: 89.16 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.471e-05/0.2936, allocations: 53.78 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.2936, allocations: 0 / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.2936, allocations: 30.56 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.2936, allocations: 0 / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0003555/0.294, allocations: 173.1 kB / 1.069 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.294, allocations: 77.11 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.2946, allocations: 0.513 MB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.2946, allocations: 25.7 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.2948, allocations: 215.4 kB / 1.07 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.2948, allocations: 7.812 kB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-05/0.2949, allocations: 61.62 kB / 1.07 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.2951, allocations: 346.8 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.2952, allocations: 67.95 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.2953, allocations: 83.55 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.2955, allocations: 117.6 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2955, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003276/0.2958, allocations: 213.1 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2959, allocations: 4 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2959, allocations: 4.562 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2959, allocations: 3.938 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.2961, allocations: 31.88 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2961, allocations: 7.969 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.2962, allocations: 39.53 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.2962, allocations: 12 kB / 1.071 GB, free: 6.691 MB / 0.8262 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.0002001/0.2964, allocations: 199.5 kB / 1.071 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.2965, allocations: 31.61 kB / 1.071 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.2967, allocations: 117.9 kB / 1.071 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2967, allocations: 7.938 kB / 1.071 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.2968, allocations: 4.062 kB / 1.071 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2968, allocations: 0 / 1.071 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005628/0.2973, allocations: 0.6525 MB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2973, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.748e-05/0.2974, allocations: 7.984 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2974, allocations: 128 / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2974, allocations: 4 kB / 1.072 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2974, allocations: 4 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2974, allocations: 0 / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.2976, allocations: 135.1 kB / 1.072 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.2977, allocations: 128.7 kB / 1.072 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.2977, allocations: 0 / 1.072 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.698e-05/0.2978, allocations: 4 kB / 1.072 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.917e-05/0.2978, allocations: 0 / 1.072 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.2978, allocations: 4 kB / 1.072 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004319/0.2983, allocations: 391 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.71e-07/0.2983, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000269/0.2986, allocations: 39.91 kB / 1.073 GB, free: 4.844 MB / 0.8262 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.0004487/0.299, allocations: 0.6711 MB / 1.073 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002238/0.2993, allocations: 111.8 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2993, allocations: 4 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.751e-05/0.2993, allocations: 12 kB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.2996, allocations: 29.94 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.303, allocations: 2.919 MB / 1.076 GB, free: 0.957 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.3034, allocations: 0.7909 MB / 1.077 GB, free: 144 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.3035, allocations: 58.94 kB / 1.077 GB, free: 84 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.3036, allocations: 91.45 kB / 1.077 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.3036, allocations: 0 / 1.077 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.3271, allocations: 5.561 MB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/7.783, allocations: 8 kB / 1.083 GB, free: 10.56 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_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_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.csv","/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