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.001519/0.001519, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001793/0.001793, allocations: 194.2 kB / 16.25 MB, free: 6.629 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.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.376/2.376, allocations: 437 MB / 0.7101 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 56.09 kB / 0.8688 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4954/0.4967, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001474/0.4982, allocations: 0.5811 MB / 1.017 GB, free: 2.238 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.4998, allocations: 1.602 MB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.452e-05/0.4999, allocations: 7.875 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.5, allocations: 19.97 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.209e-05/0.5, allocations: 7.984 kB / 1.019 GB, free: 0.582 MB / 0.7637 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.0006665/0.5007, allocations: 219.5 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.768e-05/0.5008, allocations: 23.91 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.227e-05/0.5008, allocations: 8 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.344e-05/0.5008, allocations: 11.98 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.423e-05/0.5009, allocations: 23.92 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.5009, allocations: 3.938 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003751/0.5013, allocations: 287.6 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.845e-05/0.5013, allocations: 19.91 kB / 1.02 GB, free: 16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.5013, allocations: 19.81 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.5016, allocations: 271.5 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.5017, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.374e-06/0.5017, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.5017, allocations: 3.938 kB / 1.02 GB, free: 15.71 MB / 0.7794 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.0003323/0.502, allocations: 417.3 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.502, allocations: 12.03 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.907e-05/0.5021, allocations: 30.75 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.152e-05/0.5021, allocations: 4.844 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.5022, allocations: 180.2 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.593e-06/0.5022, allocations: 384 / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-06/0.5022, allocations: 384 / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.26e-05/0.5023, allocations: 41.81 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.219e-06/0.5023, allocations: 0 / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.5023, allocations: 8 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-06/0.5024, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.505e-05/0.5024, allocations: 12 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001316/0.5025, allocations: 185.5 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.337e-05/0.5026, allocations: 26.56 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.837e-05/0.5026, allocations: 12.92 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.5026, allocations: 4 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.5026, allocations: 38.5 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.5026, allocations: 0 / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001149/0.5028, allocations: 65.52 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.5028, allocations: 55.41 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.5029, allocations: 167.5 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.5029, allocations: 25.7 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.503, allocations: 99.97 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.564e-06/0.503, allocations: 4 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.503, allocations: 29.83 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.5031, allocations: 318.8 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.215e-05/0.5032, allocations: 39.98 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.501e-05/0.5032, allocations: 39.98 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.588e-05/0.5033, allocations: 72.81 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.5033, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001213/0.5034, allocations: 133.4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.5034, allocations: 7.984 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.5034, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.245e-06/0.5034, allocations: 4.062 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.437e-06/0.5035, allocations: 3.984 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.5035, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.127e-05/0.5035, allocations: 11.91 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.5035, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 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 9.364e-05/0.5036, allocations: 126.4 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.13e-05/0.5036, allocations: 11.78 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.18e-05/0.5037, allocations: 65.55 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.5037, allocations: 3.938 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.5037, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.5037, allocations: 4 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.565e-05/0.5038, allocations: 161.7 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5038, allocations: 3.984 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.24e-06/0.5038, allocations: 3.938 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.5038, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-06/0.5039, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.5039, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5039, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.407e-05/0.5039, allocations: 77.06 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.504, allocations: 88.95 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.001e-05/0.504, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.065e-05/0.504, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.504, allocations: 3.984 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.504, allocations: 4 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.782e-05/0.5041, allocations: 121.3 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.182e-06/0.5041, allocations: 4.031 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002662/0.5044, allocations: 83.92 kB / 1.023 GB, free: 12.61 MB / 0.7794 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.0005872/0.505, allocations: 0.7471 MB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.5051, allocations: 101.7 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5051, allocations: 3.938 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.427e-05/0.5051, allocations: 11.94 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.5053, allocations: 9.703 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.5063, allocations: 1.535 MB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.5065, allocations: 0.6885 MB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.598e-05/0.5065, allocations: 4 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.599e-05/0.5065, allocations: 23.61 kB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.5065, allocations: 0 / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6575/1.164, allocations: 3.372 MB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/1.164, allocations: 243.9 kB / 1.029 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.863, allocations: 4 kB / 1.029 GB, free: 5.855 MB / 0.7794 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=50 --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