Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_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.005723/0.005723, allocations: 103.5 kB / 15.74 MB, free: 6.035 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.001492/0.001492, allocations: 194.7 kB / 16.68 MB, free: 5.953 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.494/1.494, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.767/2.767, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 71.88 kB / 1.054 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8069/0.8089, allocations: 157.4 MB / 1.207 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001542/0.8105, allocations: 0.5198 MB / 1.208 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00213/0.8126, allocations: 1.604 MB / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.285e-05/0.8127, allocations: 0 / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.8128, allocations: 27.91 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.736e-05/0.8129, allocations: 11.97 kB / 1.209 GB, free: 11.36 MB / 0.9356 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 11.0.1-master/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.0009493/0.8138, allocations: 239.3 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.261e-05/0.8139, allocations: 23.92 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.814, allocations: 7.984 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.317e-05/0.814, allocations: 19.91 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.279e-05/0.8141, allocations: 15.94 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.8141, allocations: 0 / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005804/0.8147, allocations: 327.5 kB / 1.21 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.453e-05/0.8147, allocations: 27.91 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.8148, allocations: 11.88 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.8152, allocations: 279.4 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8152, allocations: 0 / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.442e-06/0.8152, allocations: 0 / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.8153, allocations: 4 kB / 1.21 GB, free: 10.43 MB / 0.9356 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.0004505/0.8157, allocations: 409.4 kB / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.8158, allocations: 8.031 kB / 1.211 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.036e-05/0.8158, allocations: 34.75 kB / 1.211 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.8158, allocations: 4.844 kB / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.816, allocations: 182.7 kB / 1.211 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.214e-06/0.816, allocations: 384 / 1.211 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.816, allocations: 8.297 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.908e-05/0.8161, allocations: 45.81 kB / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.8161, allocations: 0 / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.8161, allocations: 0 / 1.211 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.8162, allocations: 4 kB / 1.211 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.842e-05/0.8162, allocations: 12 kB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/0.8164, allocations: 181.5 kB / 1.211 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.381e-05/0.8164, allocations: 26.56 kB / 1.211 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.186e-05/0.8165, allocations: 20.8 kB / 1.211 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.8165, allocations: 8 kB / 1.211 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.8165, allocations: 34.5 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.8165, allocations: 0 / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001535/0.8167, allocations: 61.58 kB / 1.211 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.8167, allocations: 51.41 kB / 1.211 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.8169, allocations: 176 kB / 1.211 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.8169, allocations: 25.7 kB / 1.211 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.134e-05/0.817, allocations: 92.25 kB / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.817, allocations: 11.91 kB / 1.212 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.817, allocations: 25.7 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.8172, allocations: 318.8 kB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.301e-05/0.8172, allocations: 43.92 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.251e-05/0.8173, allocations: 39.98 kB / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.96e-05/0.8174, allocations: 72.81 kB / 1.212 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.8174, allocations: 0 / 1.212 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001674/0.8175, allocations: 129.4 kB / 1.212 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.8176, allocations: 10.41 kB / 1.212 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.8176, allocations: 4 kB / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.8176, allocations: 0 / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-05/0.8176, allocations: 0 / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.8176, allocations: 0 / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.899e-05/0.8177, allocations: 7.906 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.8177, allocations: 3.938 kB / 1.212 GB, free: 8.191 MB / 0.9356 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.0001403/0.8178, allocations: 125.8 kB / 1.212 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.8178, allocations: 7.844 kB / 1.212 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.818, allocations: 65.55 kB / 1.212 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.818, allocations: 0 / 1.212 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.818, allocations: 0 / 1.212 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.818, allocations: 0 / 1.212 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.8181, allocations: 169.7 kB / 1.213 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.8181, allocations: 0 / 1.213 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-06/0.8181, allocations: 3.938 kB / 1.213 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.8181, allocations: 4 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.8181, allocations: 0 / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.8181, allocations: 3.938 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8182, allocations: 4.031 kB / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.916e-05/0.8182, allocations: 80.97 kB / 1.213 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.8183, allocations: 88.95 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.8183, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.315e-05/0.8183, allocations: 0 / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.8183, allocations: 3.984 kB / 1.213 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.8184, allocations: 7.938 kB / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.835e-05/0.8184, allocations: 125.9 kB / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8184, allocations: 0 / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003313/0.8188, allocations: 83.98 kB / 1.213 GB, free: 7.328 MB / 0.9356 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.0006752/0.8195, allocations: 0.7407 MB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001542/0.8196, allocations: 97.67 kB / 1.214 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8196, allocations: 4 kB / 1.214 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.836e-05/0.8197, allocations: 11.98 kB / 1.214 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.8198, allocations: 9.812 kB / 1.214 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.8212, allocations: 1.535 MB / 1.215 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.8214, allocations: 0.7001 MB / 1.216 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.133e-05/0.8215, allocations: 4 kB / 1.216 GB, free: 4.113 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.8215, allocations: 15.44 kB / 1.216 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.8215, allocations: 0 / 1.216 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.8447, allocations: 3.492 MB / 1.219 GB, free: 0.6992 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/8.548, allocations: 13.77 kB / 1.219 GB, free: 0.6875 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches