Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001348/0.001348, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001452/0.001452, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.573/1.573, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.149/3.149, allocations: 0.5003 GB / 0.8026 GB, free: 6.914 MB / 0.6387 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.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",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.002058/0.002058, allocations: 65.47 kB / 1.165 GB, free: 0.5625 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9681/0.9702, allocations: 178.9 MB / 1.34 GB, free: 16.23 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001621/0.9718, allocations: 0.5215 MB / 1.341 GB, free: 15.91 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002019/0.9738, allocations: 1.683 MB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.579e-05/0.9739, allocations: 3.938 kB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.9741, allocations: 62.92 kB / 1.342 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.8e-05/0.9741, allocations: 31.44 kB / 1.342 GB, free: 14.7 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0007886/0.9749, allocations: 260.4 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.437e-05/0.975, allocations: 30.61 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.848e-05/0.975, allocations: 2.516 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.104e-05/0.975, allocations: 26.8 kB / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.506e-05/0.9751, allocations: 43.06 kB / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.9751, allocations: 0 / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006018/0.9757, allocations: 385.5 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.785e-05/0.9758, allocations: 34.23 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.921e-05/0.9758, allocations: 26.58 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004207/0.9762, allocations: 307.5 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.9762, allocations: 0 / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.423e-06/0.9762, allocations: 0 / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.9763, allocations: 1.375 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000402/0.9767, allocations: 437.9 kB / 1.344 GB, free: 13.91 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.9767, allocations: 13.62 kB / 1.344 GB, free: 13.91 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.354e-05/0.9767, allocations: 1.562 kB / 1.344 GB, free: 13.91 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.641e-05/0.9767, allocations: 31.55 kB / 1.344 GB, free: 13.87 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.9768, allocations: 12.97 kB / 1.344 GB, free: 13.86 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.9769, allocations: 194.6 kB / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.9769, allocations: 384 / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.9769, allocations: 9.625 kB / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.896e-05/0.977, allocations: 44.64 kB / 1.344 GB, free: 13.6 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.977, allocations: 4 kB / 1.344 GB, free: 13.59 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.977, allocations: 5.375 kB / 1.344 GB, free: 13.59 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.977, allocations: 0 / 1.344 GB, free: 13.59 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.048e-05/0.977, allocations: 18.41 kB / 1.344 GB, free: 13.59 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.9772, allocations: 181 kB / 1.344 GB, free: 13.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 4.622e-05/0.9772, allocations: 30.16 kB / 1.344 GB, free: 13.36 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.118e-05/0.9772, allocations: 14.56 kB / 1.344 GB, free: 13.36 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.554e-05/0.9773, allocations: 9.891 kB / 1.344 GB, free: 13.35 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.9773, allocations: 39.94 kB / 1.344 GB, free: 13.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.9773, allocations: 3.938 kB / 1.344 GB, free: 13.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001488/0.9774, allocations: 68.62 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.366e-05/0.9775, allocations: 52.78 kB / 1.345 GB, free: 13.2 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.9776, allocations: 210.3 kB / 1.345 GB, free: 13.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.935e-06/0.9776, allocations: 27.08 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.887e-05/0.9777, allocations: 101.6 kB / 1.345 GB, free: 12.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.014e-05/0.9777, allocations: 4.078 kB / 1.345 GB, free: 12.94 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.9777, allocations: 37.73 kB / 1.345 GB, free: 12.91 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.345e-05/0.9778, allocations: 326.9 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.038e-05/0.9779, allocations: 53.88 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.9779, allocations: 53.78 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.761e-05/0.978, allocations: 99.08 kB / 1.345 GB, free: 12.55 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.978, allocations: 0 / 1.345 GB, free: 12.55 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001762/0.9782, allocations: 162.6 kB / 1.346 GB, free: 12.49 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.9782, allocations: 3.781 kB / 1.346 GB, free: 12.49 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.9782, allocations: 7.281 kB / 1.346 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.9782, allocations: 0 / 1.346 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.336e-05/0.9782, allocations: 1.906 kB / 1.346 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.9782, allocations: 0 / 1.346 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.54e-05/0.9783, allocations: 10.81 kB / 1.346 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.9783, allocations: 1.344 kB / 1.346 GB, free: 12.48 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001273/0.9784, allocations: 133.2 kB / 1.346 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.9784, allocations: 11.67 kB / 1.346 GB, free: 12.35 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.9785, allocations: 71.98 kB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.9785, allocations: 0 / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.9785, allocations: 5.469 kB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.9785, allocations: 0.6094 kB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.23e-05/0.9786, allocations: 181.6 kB / 1.346 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.9786, allocations: 3.938 kB / 1.346 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-06/0.9786, allocations: 0.6094 kB / 1.346 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.9786, allocations: 0.7188 kB / 1.346 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.9786, allocations: 5.781 kB / 1.346 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.9786, allocations: 0 / 1.346 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.9786, allocations: 4.641 kB / 1.346 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.161e-05/0.9787, allocations: 89.34 kB / 1.346 GB, free: 12.01 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/0.9787, allocations: 89.17 kB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.9787, allocations: 0.6562 kB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.443e-05/0.9788, allocations: 5.594 kB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.046e-05/0.9788, allocations: 0.5625 kB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.9788, allocations: 0 / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001046/0.9789, allocations: 158.1 kB / 1.346 GB, free: 11.81 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9789, allocations: 1.281 kB / 1.346 GB, free: 11.81 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003419/0.9792, allocations: 88.89 kB / 1.346 GB, free: 11.79 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0006609/0.9799, allocations: 0.7518 MB / 1.347 GB, free: 11.15 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001782/0.9801, allocations: 118.5 kB / 1.347 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.9801, allocations: 0 / 1.347 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.658e-05/0.9801, allocations: 11.22 kB / 1.347 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001441/0.9802, allocations: 6.938 kB / 1.347 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.9817, allocations: 1.814 MB / 1.349 GB, free: 9.832 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.9818, allocations: 0.7074 MB / 1.35 GB, free: 9.133 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.936e-05/0.9818, allocations: 1.891 kB / 1.35 GB, free: 9.133 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.57e-05/0.9819, allocations: 27.34 kB / 1.35 GB, free: 9.109 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.9819, allocations: 1.281 kB / 1.35 GB, free: 9.109 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/1.003, allocations: 4.029 MB / 1.354 GB, free: 8.512 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.592/9.595, allocations: 14.28 kB / 1.354 GB, free: 8.504 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 16.508512346015777]