Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008359/0.0008359, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009302/0.0009302, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8805/0.8805, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.713/1.713, allocations: 377.8 MB / 0.6221 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 0.9809 GB, free: 2.633 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.708e-05/1.92e-05, allocations: 6.219 kB / 0.9809 GB, free: 2.625 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.0014/0.001419, allocations: 0.8397 MB / 0.9818 GB, free: 1.785 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002284/0.001648, allocations: 95.69 kB / 0.9819 GB, free: 1.691 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.821e-05/0.001726, allocations: 3.938 kB / 0.9819 GB, free: 1.688 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.001841, allocations: 23.78 kB / 0.9819 GB, free: 1.664 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.001966, allocations: 11.92 kB / 0.9819 GB, free: 1.652 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 6.468e-05/0.00203, allocations: 43.95 kB / 0.9819 GB, free: 1.609 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.002226, allocations: 251.4 kB / 0.9822 GB, free: 1.363 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.002459, allocations: 182.8 kB / 0.9824 GB, free: 1.18 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.002588, allocations: 191.6 kB / 0.9825 GB, free: 0.9922 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.002708, allocations: 123.6 kB / 0.9827 GB, free: 0.8711 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.00275, allocations: 36 kB / 0.9827 GB, free: 0.8359 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.689e-05/0.002776, allocations: 32 kB / 0.9827 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 6.441e-05/0.002841, allocations: 91.67 kB / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 6.51e-05/0.002906, allocations: 83.77 kB / 0.9829 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.003199, allocations: 470.4 kB / 0.9833 GB, free: 176 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.003202, allocations: 0 / 0.9833 GB, free: 176 kB / 0.9323 GB Notification: Performance of FrontEnd: time 8.51e-07/0.003203, allocations: 0 / 0.9833 GB, free: 176 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.003208, allocations: 4 kB / 0.9833 GB, free: 172 kB / 0.9323 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.0004979/0.003706, allocations: 0.5312 MB / 0.9839 GB, free: 15.61 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.003746, allocations: 8.031 kB / 0.9839 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.596e-05/0.003801, allocations: 74.72 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.003847, allocations: 44.7 kB / 0.984 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.004148, allocations: 266.5 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.004191, allocations: 37.02 kB / 0.9843 GB, free: 15.15 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.004219, allocations: 32.38 kB / 0.9843 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004046/0.004623, allocations: 400.2 kB / 0.9847 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.004632, allocations: 4.125 kB / 0.9847 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.004651, allocations: 12.38 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.004659, allocations: 12.12 kB / 0.9847 GB, free: 14.69 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/0.004954, allocations: 307.5 kB / 0.985 GB, free: 14.39 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008951/0.005849, allocations: 0.9657 MB / 0.9859 GB, free: 13.38 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.005955, allocations: 85.16 kB / 0.986 GB, free: 13.27 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.005999, allocations: 49.78 kB / 0.9861 GB, free: 13.22 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.00602, allocations: 7.984 kB / 0.9861 GB, free: 13.21 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.006038, allocations: 34.56 kB / 0.9861 GB, free: 13.17 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.00604, allocations: 0 / 0.9861 GB, free: 13.17 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002364/0.006276, allocations: 165.3 kB / 0.9863 GB, free: 13 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.006311, allocations: 81.11 kB / 0.9863 GB, free: 12.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.006803, allocations: 0.5169 MB / 0.9869 GB, free: 12.38 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.006815, allocations: 29.7 kB / 0.9869 GB, free: 12.34 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.006917, allocations: 203.7 kB / 0.9871 GB, free: 12.14 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.006929, allocations: 19.89 kB / 0.9871 GB, free: 12.12 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/0.006981, allocations: 57.69 kB / 0.9871 GB, free: 12.05 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.519e-05/0.007067, allocations: 338.8 kB / 0.9875 GB, free: 11.71 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.239e-05/0.007139, allocations: 67.95 kB / 0.9875 GB, free: 11.65 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.773e-05/0.007217, allocations: 93.59 kB / 0.9876 GB, free: 11.55 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.007322, allocations: 109.7 kB / 0.9877 GB, free: 11.44 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.007325, allocations: 0 / 0.9877 GB, free: 11.44 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001867/0.007512, allocations: 221.2 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.007524, allocations: 4 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.00753, allocations: 4 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.007541, allocations: 0 / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.916e-05/0.00764, allocations: 31.92 kB / 0.988 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.007645, allocations: 0 / 0.988 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.854e-05/0.007694, allocations: 39.61 kB / 0.988 GB, free: 11.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.007709, allocations: 8 kB / 0.988 GB, free: 11.13 MB / 0.948 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.0001308/0.007839, allocations: 203.8 kB / 0.9882 GB, free: 10.92 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.434e-05/0.007874, allocations: 31.77 kB / 0.9882 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.008017, allocations: 118.1 kB / 0.9884 GB, free: 10.77 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.008019, allocations: 0 / 0.9884 GB, free: 10.77 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.008023, allocations: 0 / 0.9884 GB, free: 10.77 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.008026, allocations: 3.938 kB / 0.9884 GB, free: 10.76 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/0.008367, allocations: 0.6049 MB / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.008368, allocations: 192 / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.477e-05/0.008383, allocations: 8 kB / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.008386, allocations: 7.875 kB / 0.989 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.008392, allocations: 4 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.008394, allocations: 0 / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.008395, allocations: 0 / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.546e-05/0.00848, allocations: 135.5 kB / 0.9891 GB, free: 9.914 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.419e-05/0.008525, allocations: 55.62 kB / 0.9892 GB, free: 9.859 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.008542, allocations: 0 / 0.9892 GB, free: 9.859 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.255e-05/0.008574, allocations: 4.422 kB / 0.9892 GB, free: 9.855 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.06e-05/0.008595, allocations: 7.984 kB / 0.9892 GB, free: 9.848 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.008597, allocations: 4 kB / 0.9892 GB, free: 9.844 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002653/0.008862, allocations: 391 kB / 0.9895 GB, free: 9.465 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.008862, allocations: 0 / 0.9895 GB, free: 9.465 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000155/0.009017, allocations: 36 kB / 0.9896 GB, free: 9.43 MB / 0.948 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.0002695/0.009287, allocations: 0.6799 MB / 0.9902 GB, free: 8.715 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001506/0.009437, allocations: 107.9 kB / 0.9903 GB, free: 8.609 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.009439, allocations: 0 / 0.9903 GB, free: 8.609 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.841e-05/0.009457, allocations: 19.94 kB / 0.9904 GB, free: 8.59 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.009654, allocations: 29.64 kB / 0.9904 GB, free: 8.562 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.01176, allocations: 2.906 MB / 0.9932 GB, free: 5.547 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.01187, allocations: 187.8 kB / 0.9934 GB, free: 5.348 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 7.335e-05/0.01195, allocations: 58.94 kB / 0.9935 GB, free: 5.289 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.01205, allocations: 92.47 kB / 0.9936 GB, free: 5.199 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.01205, allocations: 0 / 0.9936 GB, free: 5.199 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.02975, allocations: 6.464 MB / 0.9999 GB, free: 14.89 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.622/6.652, allocations: 7.109 kB / 0.9999 GB, free: 14.89 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.582805178128183]