Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008435/0.008435, allocations: 104.2 kB / 15.73 MB, free: 6.039 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.002004/0.002004, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.704/2.704, allocations: 461.9 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.11 kB / 1.054 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3089, allocations: 157.4 MB / 1.208 GB, free: 9.742 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001823/0.3107, allocations: 0.5148 MB / 1.208 GB, free: 9.227 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002227/0.313, allocations: 1.607 MB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.665e-05/0.313, allocations: 0 / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.3132, allocations: 59.86 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.958e-05/0.3133, allocations: 35.94 kB / 1.21 GB, free: 7.508 MB / 0.9669 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.0009736/0.3143, allocations: 242.2 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.938e-05/0.3144, allocations: 39.83 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.464e-05/0.3144, allocations: 3.984 kB / 1.21 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.01e-05/0.3145, allocations: 15.98 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.584e-05/0.3145, allocations: 43.89 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.3146, allocations: 4 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006022/0.3152, allocations: 339.5 kB / 1.211 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.846e-05/0.3152, allocations: 27.92 kB / 1.211 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.3153, allocations: 19.75 kB / 1.211 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.3157, allocations: 295.3 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3157, allocations: 0 / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3157, allocations: 0 / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.3157, allocations: 0 / 1.211 GB, free: 6.5 MB / 0.9669 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.0004815/0.3162, allocations: 426.9 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3163, allocations: 16.56 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.675e-05/0.3163, allocations: 8.844 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.3165, allocations: 204.5 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.3165, allocations: 384 / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.3165, allocations: 4.375 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.06e-05/0.3166, allocations: 45.94 kB / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-06/0.3166, allocations: 0 / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.3166, allocations: 0 / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-06/0.3167, allocations: 0 / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.237e-05/0.3167, allocations: 19.98 kB / 1.212 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/0.3169, allocations: 181.7 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.743e-05/0.3169, allocations: 34.56 kB / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.158e-05/0.317, allocations: 12.92 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.317, allocations: 11.89 kB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.317, allocations: 42.44 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.317, allocations: 3.938 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.3172, allocations: 69.58 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.3172, allocations: 55.53 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.3174, allocations: 210.3 kB / 1.212 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.3174, allocations: 25.7 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.824e-05/0.3175, allocations: 104.1 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.065e-05/0.3175, allocations: 3.906 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.393e-05/0.3176, allocations: 29.7 kB / 1.212 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3177, allocations: 330.8 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.104e-05/0.3177, allocations: 51.98 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.366e-05/0.3178, allocations: 55.97 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.431e-05/0.3179, allocations: 99.25 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3179, allocations: 0 / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000168/0.3181, allocations: 153.6 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.3181, allocations: 7.938 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.3181, allocations: 0 / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3182, allocations: 7.984 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.449e-05/0.3182, allocations: 0 / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3182, allocations: 0 / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.874e-05/0.3182, allocations: 11.78 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.495e-06/0.3182, allocations: 8.062 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001589/0.3184, allocations: 129.8 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.3184, allocations: 15.75 kB / 1.213 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.3185, allocations: 70.17 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3185, allocations: 0 / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3186, allocations: 0 / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.3186, allocations: 0 / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.3187, allocations: 181.7 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3187, allocations: 8 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-06/0.3187, allocations: 3.938 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3187, allocations: 3.938 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3187, allocations: 0 / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3187, allocations: 0 / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3187, allocations: 4 kB / 1.213 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.059e-05/0.3188, allocations: 80.97 kB / 1.213 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.39e-05/0.3189, allocations: 96.89 kB / 1.214 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.3189, allocations: 0 / 1.214 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.595e-05/0.3189, allocations: 3.984 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.12e-05/0.3189, allocations: 0 / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.3189, allocations: 4 kB / 1.214 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001132/0.3191, allocations: 152.1 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3191, allocations: 0 / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000336/0.3194, allocations: 91.98 kB / 1.214 GB, free: 3.16 MB / 0.9669 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.0005407/0.32, allocations: 227.1 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001924/0.3202, allocations: 129.7 kB / 1.214 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3202, allocations: 0 / 1.214 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.848e-05/0.3202, allocations: 11.94 kB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.3204, allocations: 5.688 kB / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003126/0.3207, allocations: 218 kB / 1.214 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.3209, allocations: 0.708 MB / 1.215 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.921e-05/0.321, allocations: 3.953 kB / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.652e-05/0.321, allocations: 7.438 kB / 1.215 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.321, allocations: 0 / 1.215 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of Templates: time 0.005436/0.3264, allocations: 2.119 MB / 1.217 GB, free: 15.69 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches