Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",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.004855/0.004855, allocations: 104.7 kB / 15.74 MB, free: 6.02 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.001431/0.001431, allocations: 191.2 kB / 16.68 MB, free: 5.938 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.392/2.392, allocations: 437.1 MB / 0.7105 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 63.89 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6306/0.6325, allocations: 151.6 MB / 1.166 GB, free: 3.691 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001446/0.634, allocations: 0.501 MB / 1.167 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001933/0.6359, allocations: 1.614 MB / 1.168 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.81e-05/0.636, allocations: 4 kB / 1.168 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000113/0.6361, allocations: 19.91 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.234e-05/0.6361, allocations: 15.91 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0007361/0.6369, allocations: 249 kB / 1.168 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.388e-05/0.6369, allocations: 27.91 kB / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 2.877e-05/0.637, allocations: 0 / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.632e-05/0.637, allocations: 11.98 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.941e-05/0.637, allocations: 23.84 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.637, allocations: 0 / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004885/0.6375, allocations: 323.5 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.41e-05/0.6376, allocations: 27.91 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.828e-05/0.6376, allocations: 19.81 kB / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.638, allocations: 282.9 kB / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.638, allocations: 0 / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.042e-06/0.638, allocations: 0 / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.824e-06/0.638, allocations: 0 / 1.169 GB, free: 0.582 MB / 0.8887 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.000413/0.6384, allocations: 414.6 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.6385, allocations: 12.92 kB / 1.17 GB, free: 120 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.807e-05/0.6385, allocations: 30.75 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.327e-05/0.6385, allocations: 4.891 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.6387, allocations: 180.3 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.772e-06/0.6387, allocations: 384 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.106e-06/0.6387, allocations: 4.375 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.241e-05/0.6388, allocations: 45.81 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.6388, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-06/0.6388, allocations: 0 / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.6388, allocations: 4 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.804e-05/0.6389, allocations: 19.92 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.639, allocations: 169.6 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.196e-05/0.6391, allocations: 26.56 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.027e-05/0.6391, allocations: 20.92 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.6392, allocations: 7.984 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.6392, allocations: 34.5 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.6392, allocations: 0 / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001293/0.6393, allocations: 65.58 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.6394, allocations: 51.41 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.6395, allocations: 172.2 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.6395, allocations: 29.83 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.6396, allocations: 96.12 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.012e-05/0.6396, allocations: 7.938 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.6396, allocations: 21.72 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.6398, allocations: 326.8 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.926e-05/0.6398, allocations: 35.98 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.222e-05/0.6399, allocations: 43.98 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.742e-05/0.64, allocations: 64.83 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.64, allocations: 7.969 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000145/0.6401, allocations: 137.5 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.6401, allocations: 4 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.6402, allocations: 4 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.6402, allocations: 0 / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.986e-06/0.6402, allocations: 0 / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.6402, allocations: 0 / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.529e-05/0.6402, allocations: 11.89 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.086e-06/0.6402, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001099/0.6403, allocations: 129.8 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.6404, allocations: 7.891 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.6405, allocations: 65.48 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.6405, allocations: 0 / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.6405, allocations: 0 / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.6405, allocations: 4 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.6406, allocations: 169.7 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.6406, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-06/0.6406, allocations: 3.938 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.6406, allocations: 4.031 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-06/0.6407, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.6407, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.6407, allocations: 4 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.616e-05/0.6407, allocations: 73.08 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.6408, allocations: 89 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.6408, allocations: 11.91 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.035e-05/0.6408, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.6409, allocations: 4.031 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.6409, allocations: 4 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.265e-05/0.641, allocations: 117.7 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.641, allocations: 0 / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002753/0.6412, allocations: 87.8 kB / 1.172 GB, free: 13.47 MB / 0.9044 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.0007058/0.6419, allocations: 0.7458 MB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001493/0.6421, allocations: 105.5 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.6421, allocations: 0 / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.806e-05/0.6421, allocations: 16.05 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.6423, allocations: 6.344 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.6435, allocations: 1.533 MB / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.6438, allocations: 0.6885 MB / 1.175 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.41e-05/0.6438, allocations: 0 / 1.175 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.6439, allocations: 27.42 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.6439, allocations: 0 / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2219/0.8658, allocations: 3.485 MB / 1.178 GB, free: 6.84 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.732/8.598, allocations: 12.55 kB / 1.178 GB, free: 6.828 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches