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.001966/0.001966, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00254/0.00254, allocations: 191.9 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.535/2.535, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.999/4.999, allocations: 461.9 MB / 0.7344 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002903/0.002903, allocations: 67.88 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5051/0.508, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.003053/0.5111, allocations: 0.5755 MB / 1.053 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004053/0.5152, allocations: 1.622 MB / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.432e-05/0.5153, allocations: 0 / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.5156, allocations: 15.98 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.686e-05/0.5156, allocations: 11.92 kB / 1.055 GB, free: 6.406 MB / 0.8106 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.001641/0.5173, allocations: 222.7 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.5174, allocations: 27.91 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.439e-05/0.5175, allocations: 7.984 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.858e-05/0.5176, allocations: 7.938 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.195e-05/0.5176, allocations: 15.92 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.5177, allocations: 4 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000888/0.5186, allocations: 283.6 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.326e-05/0.5187, allocations: 27.91 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.486e-05/0.5187, allocations: 19.81 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007496/0.5195, allocations: 275.4 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.5195, allocations: 0 / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.864e-06/0.5195, allocations: 0 / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.5196, allocations: 0 / 1.055 GB, free: 5.535 MB / 0.8106 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.0006907/0.5203, allocations: 407.4 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.5203, allocations: 8.625 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.57e-05/0.5204, allocations: 30.75 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.5204, allocations: 12.84 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.5207, allocations: 184.2 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.5207, allocations: 384 / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.5207, allocations: 384 / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.5209, allocations: 41.81 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.5209, allocations: 0 / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.455e-06/0.5209, allocations: 0 / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.5209, allocations: 3.984 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.714e-05/0.521, allocations: 23.92 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002788/0.5213, allocations: 177.6 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.731e-05/0.5214, allocations: 22.58 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.202e-05/0.5214, allocations: 12.86 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.81e-05/0.5215, allocations: 11.98 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.5215, allocations: 38.5 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.5216, allocations: 0 / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002305/0.5218, allocations: 61.53 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.5219, allocations: 55.53 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.5221, allocations: 173 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.5222, allocations: 25.7 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.454e-05/0.5222, allocations: 100.1 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.291e-05/0.5223, allocations: 0 / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.787e-05/0.5224, allocations: 21.72 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.5225, allocations: 322.8 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.805e-05/0.5226, allocations: 35.98 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.786e-05/0.5227, allocations: 43.98 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.5229, allocations: 72.86 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.5229, allocations: 0 / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002723/0.5232, allocations: 141.4 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.5232, allocations: 4 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.5232, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.5233, allocations: 4 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.946e-05/0.5233, allocations: 0 / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.5233, allocations: 0 / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.235e-05/0.5234, allocations: 3.969 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.5234, allocations: 8 kB / 1.057 GB, free: 3.301 MB / 0.8106 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.000249/0.5237, allocations: 125.7 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.5237, allocations: 15.83 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001883/0.5239, allocations: 61.5 kB / 1.058 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.5239, allocations: 0 / 1.058 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.5239, allocations: 4 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.524, allocations: 0 / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.5242, allocations: 173.7 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.5242, allocations: 4 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.125e-05/0.5242, allocations: 3.938 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.197e-06/0.5242, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.5242, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.5242, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.5242, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.5244, allocations: 77.03 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.438e-05/0.5245, allocations: 96.97 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.5245, allocations: 0 / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.366e-05/0.5246, allocations: 3.938 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.871e-05/0.5246, allocations: 0 / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.5246, allocations: 3.938 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001602/0.5248, allocations: 119.9 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of sort global known variables: time 6.21e-07/0.5248, allocations: 0 / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006804/0.5255, allocations: 87.98 kB / 1.058 GB, free: 2.438 MB / 0.8106 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.001288/0.5268, allocations: 0.7349 MB / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002706/0.5271, allocations: 109.6 kB / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5271, allocations: 0 / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.509e-05/0.5272, allocations: 15.98 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.5274, allocations: 7.938 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.5297, allocations: 1.525 MB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.5301, allocations: 0.6924 MB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.139e-05/0.5302, allocations: 8.016 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.5302, allocations: 19.44 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of SimCode: time 2.916e-06/0.5303, allocations: 0 / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/0.9133, allocations: 3.371 MB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004126/0.9139, allocations: 251.1 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.812/4.725, allocations: 0 / 1.065 GB, free: 11.7 MB / 0.8262 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