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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_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.00112/0.00112, allocations: 102.5 kB / 16.35 MB, free: 5.875 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.001303/0.001303, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.442/2.442, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 68.66 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2643, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001707/0.266, allocations: 0.5259 MB / 1.027 GB, free: 1.535 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002225/0.2683, allocations: 1.612 MB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.914e-05/0.2683, allocations: 0 / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.2685, allocations: 23.91 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.538e-05/0.2685, allocations: 7.984 kB / 1.029 GB, free: 15.88 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.0-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.0008509/0.2694, allocations: 247.2 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.176e-05/0.2695, allocations: 27.91 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.2695, allocations: 4 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.818e-05/0.2695, allocations: 11.98 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.303e-05/0.2696, allocations: 15.92 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.2696, allocations: 4 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005233/0.2701, allocations: 327.5 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.864e-05/0.2702, allocations: 23.92 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.872e-05/0.2702, allocations: 19.8 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.2706, allocations: 279.4 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2706, allocations: 0 / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2706, allocations: 7.938 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.2707, allocations: 0 / 1.03 GB, free: 14.93 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.0004644/0.2711, allocations: 404.5 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2712, allocations: 8.031 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.015e-05/0.2712, allocations: 8.844 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.2715, allocations: 181.4 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.2715, allocations: 4.375 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.2715, allocations: 384 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.2717, allocations: 49.94 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2717, allocations: 0 / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.2717, allocations: 0 / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2717, allocations: 0 / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.375e-05/0.2717, allocations: 19.97 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002175/0.272, allocations: 177.6 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.123e-05/0.272, allocations: 22.56 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.2721, allocations: 12.92 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.2721, allocations: 11.94 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.2722, allocations: 42.48 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.2722, allocations: 3.938 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001873/0.2724, allocations: 57.59 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.2724, allocations: 51.41 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.2726, allocations: 171.8 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.2726, allocations: 25.7 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.2727, allocations: 92.27 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.2727, allocations: 11.98 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.2727, allocations: 25.7 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2729, allocations: 318.8 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.531e-05/0.2729, allocations: 39.98 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.701e-05/0.273, allocations: 39.92 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.721e-05/0.2731, allocations: 72.92 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2731, allocations: 3.938 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001644/0.2732, allocations: 129.5 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2733, allocations: 12 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.2733, allocations: 0 / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.2733, allocations: 0 / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.069e-05/0.2733, allocations: 4 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2734, allocations: 0 / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.863e-05/0.2734, allocations: 7.844 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.2734, allocations: 0 / 1.032 GB, free: 12.74 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.0001106/0.2735, allocations: 133.7 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.2735, allocations: 11.84 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.2737, allocations: 65.55 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2737, allocations: 0 / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.2737, allocations: 0 / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2737, allocations: 0 / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.2738, allocations: 169.6 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2738, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-06/0.2738, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.2738, allocations: 7.938 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.2738, allocations: 0 / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2738, allocations: 4.031 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2739, allocations: 0 / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.407e-05/0.2739, allocations: 80.97 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.274, allocations: 88.95 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.274, allocations: 7.984 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.274, allocations: 0 / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.274, allocations: 0 / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.274, allocations: 0 / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.568e-05/0.2741, allocations: 129.9 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2741, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003221/0.2745, allocations: 87.92 kB / 1.032 GB, free: 11.87 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.0004728/0.275, allocations: 235 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.2751, allocations: 101.7 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2751, allocations: 0 / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.626e-05/0.2752, allocations: 11.94 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.2753, allocations: 4 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.2756, allocations: 161.4 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.2758, allocations: 0.6924 MB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.159e-05/0.2759, allocations: 8.109 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.2759, allocations: 11.44 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of SimCode: time 4.51e-07/0.2759, allocations: 7.938 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of Templates: time 0.005623/0.2815, allocations: 2.079 MB / 1.036 GB, free: 8.523 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (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 & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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