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.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.001801/0.001801, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.002357/0.002357, allocations: 217.5 kB / 22.25 MB, free: 5.121 MB / 14.72 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 1.505/1.505, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.426/3.426, allocations: 0.505 GB / 0.8101 GB, free: 22.02 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 61.94 kB / 1.177 GB, free: 17.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3492, allocations: 180.2 MB / 1.353 GB, free: 8.477 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.0023/0.3515, allocations: 0.8672 MB / 1.354 GB, free: 7.609 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002837/0.3517, allocations: 95.64 kB / 1.354 GB, free: 7.516 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.755e-05/0.3518, allocations: 3.938 kB / 1.354 GB, free: 7.512 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.3519, allocations: 27.73 kB / 1.354 GB, free: 7.484 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.3521, allocations: 23.84 kB / 1.354 GB, free: 7.461 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 8.108e-05/0.3522, allocations: 39.97 kB / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000316/0.3525, allocations: 251.5 kB / 1.354 GB, free: 7.176 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002998/0.3528, allocations: 175.1 kB / 1.354 GB, free: 7 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.3529, allocations: 139.5 kB / 1.354 GB, free: 6.863 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.3531, allocations: 139.3 kB / 1.355 GB, free: 6.727 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.912e-05/0.3532, allocations: 32 kB / 1.355 GB, free: 6.695 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.617e-05/0.3532, allocations: 32 kB / 1.355 GB, free: 6.664 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.92e-05/0.3533, allocations: 87.7 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.3534, allocations: 163.1 kB / 1.355 GB, free: 6.418 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.3539, allocations: 454.1 kB / 1.355 GB, free: 5.973 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3539, allocations: 0 / 1.355 GB, free: 5.973 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3539, allocations: 0 / 1.355 GB, free: 5.973 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.3539, allocations: 0 / 1.355 GB, free: 5.973 MB / 1.045 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.0007796/0.3547, allocations: 0.5285 MB / 1.356 GB, free: 5.41 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3547, allocations: 12.03 kB / 1.356 GB, free: 5.398 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.068e-05/0.3548, allocations: 74.66 kB / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.085e-05/0.3549, allocations: 40.66 kB / 1.356 GB, free: 5.277 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.3553, allocations: 278.5 kB / 1.356 GB, free: 4.98 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/0.3554, allocations: 33.03 kB / 1.356 GB, free: 4.949 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.857e-05/0.3554, allocations: 32.38 kB / 1.356 GB, free: 4.918 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.356, allocations: 396 kB / 1.357 GB, free: 4.52 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3561, allocations: 3.938 kB / 1.357 GB, free: 4.516 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.3561, allocations: 16 kB / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.3561, allocations: 8 kB / 1.357 GB, free: 4.492 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004865/0.3566, allocations: 303.7 kB / 1.357 GB, free: 4.195 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001539/0.3581, allocations: 1.028 MB / 1.358 GB, free: 3.117 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.3583, allocations: 89.16 kB / 1.358 GB, free: 3.012 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.679e-05/0.3583, allocations: 41.8 kB / 1.358 GB, free: 2.965 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.3584, allocations: 8 kB / 1.358 GB, free: 2.957 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.3584, allocations: 34.55 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.123e-06/0.3584, allocations: 0 / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003487/0.3588, allocations: 177.3 kB / 1.358 GB, free: 2.734 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.3588, allocations: 77.11 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005932/0.3594, allocations: 0.5053 MB / 1.359 GB, free: 2.129 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.3594, allocations: 25.7 kB / 1.359 GB, free: 2.098 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.3596, allocations: 203.7 kB / 1.359 GB, free: 1.895 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.3596, allocations: 19.84 kB / 1.359 GB, free: 1.875 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.3597, allocations: 57.66 kB / 1.359 GB, free: 1.812 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001804/0.3599, allocations: 346.7 kB / 1.359 GB, free: 1.465 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.36, allocations: 71.89 kB / 1.36 GB, free: 1.395 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.3601, allocations: 95.44 kB / 1.36 GB, free: 1.297 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.3603, allocations: 117.6 kB / 1.36 GB, free: 1.176 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.3603, allocations: 0 / 1.36 GB, free: 1.176 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003184/0.3606, allocations: 209.3 kB / 1.36 GB, free: 0.9648 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.3606, allocations: 4 kB / 1.36 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3607, allocations: 0 / 1.36 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3607, allocations: 7.938 kB / 1.36 GB, free: 0.9531 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.3608, allocations: 23.98 kB / 1.36 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.3608, allocations: 4.188 kB / 1.36 GB, free: 0.9258 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.62e-05/0.3609, allocations: 31.73 kB / 1.36 GB, free: 0.8945 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.3609, allocations: 11.94 kB / 1.36 GB, free: 0.8828 MB / 1.045 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.0002188/0.3611, allocations: 211.4 kB / 1.36 GB, free: 0.6641 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/0.3612, allocations: 31.77 kB / 1.36 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.3614, allocations: 114.1 kB / 1.36 GB, free: 0.5117 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3614, allocations: 3.938 kB / 1.36 GB, free: 0.5078 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3614, allocations: 4 kB / 1.36 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3614, allocations: 64 / 1.36 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006342/0.362, allocations: 0.6364 MB / 1.361 GB, free: 15.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.362, allocations: 0 / 1.361 GB, free: 15.8 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.405e-05/0.3621, allocations: 4 kB / 1.361 GB, free: 15.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3621, allocations: 4 kB / 1.361 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.3621, allocations: 4 kB / 1.361 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3621, allocations: 4.125 kB / 1.361 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3621, allocations: 4 kB / 1.361 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001589/0.3622, allocations: 135.3 kB / 1.361 GB, free: 15.62 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.682e-05/0.3623, allocations: 47.75 kB / 1.361 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.3624, allocations: 4 kB / 1.361 GB, free: 15.57 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.196e-05/0.3624, allocations: 8 kB / 1.361 GB, free: 15.56 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.942e-05/0.3624, allocations: 3.984 kB / 1.361 GB, free: 15.56 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.3624, allocations: 4 kB / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005235/0.363, allocations: 391 kB / 1.362 GB, free: 15.17 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.363, allocations: 0 / 1.362 GB, free: 15.17 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002455/0.3632, allocations: 43.89 kB / 1.362 GB, free: 15.13 MB / 1.061 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.0005124/0.3637, allocations: 0.6616 MB / 1.362 GB, free: 14.43 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002294/0.3639, allocations: 99.88 kB / 1.362 GB, free: 14.33 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.364, allocations: 3.938 kB / 1.362 GB, free: 14.32 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.354e-05/0.364, allocations: 23.94 kB / 1.362 GB, free: 14.3 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.3642, allocations: 29.64 kB / 1.362 GB, free: 14.27 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.3677, allocations: 2.914 MB / 1.365 GB, free: 11.26 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.3682, allocations: 0.7946 MB / 1.366 GB, free: 10.44 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000109/0.3683, allocations: 58.92 kB / 1.366 GB, free: 10.38 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.3684, allocations: 95.41 kB / 1.366 GB, free: 10.29 MB / 1.061 GB Notification: Performance of SimCode: time 2.81e-07/0.3684, allocations: 0 / 1.366 GB, free: 10.29 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03381/0.4022, allocations: 5.858 MB / 1.372 GB, free: 4.574 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.78, allocations: 7.797 kB / 1.372 GB, free: 4.57 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.785577580099925]