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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006747/0.006747, allocations: 97.64 kB / 15.73 MB, free: 6.047 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.001772/0.001772, allocations: 197.2 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.699/2.699, allocations: 469.4 MB / 0.7421 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 59.91 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2493, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.001849/0.2511, allocations: 0.8531 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002393/0.2514, allocations: 103.6 kB / 1.221 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.947e-05/0.2515, allocations: 0 / 1.221 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.2516, allocations: 19.8 kB / 1.221 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.2517, allocations: 15.86 kB / 1.221 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 7.45e-05/0.2518, allocations: 43.95 kB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.2521, allocations: 255.4 kB / 1.221 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003598/0.2524, allocations: 286.3 kB / 1.221 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.2526, allocations: 135.5 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.2527, allocations: 143.3 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.546e-05/0.2528, allocations: 32 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 3.999e-05/0.2528, allocations: 40 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.909e-05/0.2529, allocations: 83.77 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.253, allocations: 151.1 kB / 1.222 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.2534, allocations: 466 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.2534, allocations: 4 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2534, allocations: 0 / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.2534, allocations: 0 / 1.222 GB, free: 12.06 MB / 0.9825 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.0006122/0.254, allocations: 0.6055 MB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2541, allocations: 8.031 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.773e-05/0.2542, allocations: 70.72 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.211e-05/0.2542, allocations: 44.7 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.2546, allocations: 340.2 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.2547, allocations: 33.02 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.2547, allocations: 36.38 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005728/0.2553, allocations: 396.2 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.2553, allocations: 3.938 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.2554, allocations: 16 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2554, allocations: 12 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.2558, allocations: 299.6 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.2571, allocations: 1.054 MB / 1.225 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.2573, allocations: 97.16 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.781e-05/0.2573, allocations: 41.8 kB / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.2574, allocations: 0 / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.2574, allocations: 42.55 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.2574, allocations: 0 / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003041/0.2577, allocations: 169.6 kB / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.2578, allocations: 77.11 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005018/0.2583, allocations: 0.5169 MB / 1.226 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.2583, allocations: 29.7 kB / 1.226 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.2584, allocations: 207.7 kB / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.395e-05/0.2584, allocations: 11.89 kB / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.092e-05/0.2585, allocations: 53.66 kB / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2586, allocations: 350.8 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.2587, allocations: 63.95 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.2589, allocations: 99.75 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.259, allocations: 117.6 kB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.259, allocations: 0 / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002856/0.2593, allocations: 205.4 kB / 1.227 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.2594, allocations: 4 kB / 1.227 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.2594, allocations: 192 / 1.227 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.2594, allocations: 3.984 kB / 1.227 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.2595, allocations: 43.84 kB / 1.227 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.2595, allocations: 0 / 1.227 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.819e-05/0.2596, allocations: 35.69 kB / 1.227 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.2597, allocations: 8 kB / 1.227 GB, free: 6.754 MB / 0.9825 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.0001779/0.2598, allocations: 207.9 kB / 1.227 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.781e-05/0.2599, allocations: 35.81 kB / 1.227 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001996/0.2601, allocations: 114 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2601, allocations: 4 kB / 1.228 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.2601, allocations: 4 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.2601, allocations: 4 kB / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005102/0.2607, allocations: 0.6564 MB / 1.228 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2607, allocations: 0 / 1.228 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.227e-05/0.2607, allocations: 4 kB / 1.228 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2607, allocations: 8.125 kB / 1.228 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.2607, allocations: 4 kB / 1.228 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2607, allocations: 0 / 1.228 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.2607, allocations: 7.938 kB / 1.228 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.2609, allocations: 123.5 kB / 1.228 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.261, allocations: 124.9 kB / 1.228 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.261, allocations: 0 / 1.228 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.66e-05/0.2611, allocations: 4 kB / 1.228 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.2611, allocations: 7.984 kB / 1.228 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.2611, allocations: 4 kB / 1.228 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003823/0.2615, allocations: 391 kB / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2615, allocations: 0 / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002468/0.2617, allocations: 47.89 kB / 1.229 GB, free: 4.891 MB / 0.9825 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.0003627/0.2621, allocations: 0.6655 MB / 1.23 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002015/0.2623, allocations: 111.8 kB / 1.23 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2623, allocations: 0 / 1.23 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.545e-05/0.2624, allocations: 16 kB / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.2626, allocations: 35.98 kB / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.2655, allocations: 2.912 MB / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.2658, allocations: 0.787 MB / 1.233 GB, free: 200 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001033/0.2659, allocations: 58.92 kB / 1.233 GB, free: 144 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.266, allocations: 95.41 kB / 1.233 GB, free: 48 kB / 0.9825 GB Notification: Performance of SimCode: time 3.91e-07/0.266, allocations: 0 / 1.233 GB, free: 48 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.2861, allocations: 5.683 MB / 1.239 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/7.944, allocations: 4.5 kB / 1.239 GB, free: 10.52 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 & 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