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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007037/0.007037, allocations: 95.41 kB / 15.73 MB, free: 6.062 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.001617/0.001617, allocations: 197.6 kB / 16.68 MB, free: 5.984 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.601/2.601, allocations: 437 MB / 0.7105 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.91 kB / 1.019 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2918, allocations: 151.6 MB / 1.167 GB, free: 6.863 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001505/0.2933, allocations: 0.5084 MB / 1.167 GB, free: 6.355 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002002/0.2953, allocations: 1.614 MB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.747e-05/0.2954, allocations: 0 / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.2955, allocations: 23.91 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.407e-05/0.2955, allocations: 11.92 kB / 1.169 GB, free: 4.688 MB / 0.92 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.0008078/0.2963, allocations: 248.8 kB / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.3e-05/0.2964, allocations: 23.92 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.384e-05/0.2965, allocations: 4 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.964e-05/0.2965, allocations: 11.92 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 3.71e-05/0.2965, allocations: 15.97 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.2965, allocations: 7.938 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005345/0.2971, allocations: 339.5 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.2971, allocations: 15.98 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.947e-05/0.2972, allocations: 23.8 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.2976, allocations: 279.2 kB / 1.17 GB, free: 3.738 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2976, allocations: 0 / 1.17 GB, free: 3.738 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2976, allocations: 0 / 1.17 GB, free: 3.738 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.2976, allocations: 0 / 1.17 GB, free: 3.738 MB / 0.92 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.0004064/0.298, allocations: 414.6 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.298, allocations: 8.031 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.2981, allocations: 8.891 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.2982, allocations: 186.1 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.2982, allocations: 4.312 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.2983, allocations: 8.375 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.825e-05/0.2984, allocations: 38.02 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.2984, allocations: 0 / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.682e-06/0.2984, allocations: 0 / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.2984, allocations: 0 / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.708e-05/0.2984, allocations: 15.98 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.2986, allocations: 173.7 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.178e-05/0.2986, allocations: 22.58 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.077e-05/0.2987, allocations: 24.84 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.2987, allocations: 4 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.2987, allocations: 38.5 kB / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.2987, allocations: 0 / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.2989, allocations: 57.64 kB / 1.171 GB, free: 2.59 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.2989, allocations: 55.39 kB / 1.171 GB, free: 2.523 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.2991, allocations: 163.8 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.2991, allocations: 29.83 kB / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.2992, allocations: 100.1 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.2992, allocations: 11.89 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.2992, allocations: 29.64 kB / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2993, allocations: 322.8 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.07e-05/0.2994, allocations: 43.97 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.982e-05/0.2994, allocations: 39.92 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.392e-05/0.2995, allocations: 72.77 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2995, allocations: 4.031 kB / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001319/0.2997, allocations: 121.6 kB / 1.172 GB, free: 1.559 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2997, allocations: 7.938 kB / 1.172 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.2997, allocations: 0 / 1.172 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2997, allocations: 3.984 kB / 1.172 GB, free: 1.547 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.381e-05/0.2997, allocations: 7.984 kB / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.2998, allocations: 0 / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.198e-05/0.2998, allocations: 11.83 kB / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2998, allocations: 4 kB / 1.172 GB, free: 1.523 MB / 0.92 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.0001247/0.2999, allocations: 121.9 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.2999, allocations: 15.89 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.3, allocations: 53.56 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.3001, allocations: 0 / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3001, allocations: 0 / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3001, allocations: 3.984 kB / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.3002, allocations: 165.7 kB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3002, allocations: 0 / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-06/0.3002, allocations: 4 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3002, allocations: 7.969 kB / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.3002, allocations: 3.984 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3002, allocations: 0 / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3002, allocations: 0 / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.56e-05/0.3003, allocations: 81.02 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.3004, allocations: 85 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.3004, allocations: 8 kB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.141e-05/0.3004, allocations: 32 / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.3004, allocations: 4 kB / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3004, allocations: 0 / 1.172 GB, free: 0.875 MB / 0.92 GB Notification: Performance of sorting global known variables: time 9.219e-05/0.3005, allocations: 125.1 kB / 1.172 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3005, allocations: 0 / 1.172 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002925/0.3008, allocations: 91.73 kB / 1.172 GB, free: 0.6641 MB / 0.92 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.0004608/0.3013, allocations: 229.8 kB / 1.173 GB, free: 464 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00015/0.3015, allocations: 109.6 kB / 1.173 GB, free: 348 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3015, allocations: 0 / 1.173 GB, free: 348 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 2.398e-05/0.3015, allocations: 8 kB / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.3016, allocations: 0 / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002386/0.3019, allocations: 169.2 kB / 1.173 GB, free: 144 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.3021, allocations: 0.6964 MB / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.678e-05/0.3022, allocations: 0 / 1.173 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.346e-05/0.3022, allocations: 7.438 kB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.3022, allocations: 0 / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of Templates: time 0.004764/0.307, allocations: 2.095 MB / 1.176 GB, free: 13.32 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (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 & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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