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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001256/0.001256, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.319/1.319, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 472.6 MB / 0.7451 GB, free: 4.785 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 58.84 kB / 0.912 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2617, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001651/0.2634, allocations: 0.5128 MB / 1.069 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2654, allocations: 1.608 MB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.015e-05/0.2655, allocations: 0 / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.2656, allocations: 27.91 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.309e-05/0.2657, allocations: 8 kB / 1.07 GB, free: 8.301 MB / 0.8262 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 12.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.0008568/0.2665, allocations: 255.1 kB / 1.071 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.033e-05/0.2666, allocations: 19.91 kB / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.308e-05/0.2666, allocations: 4 kB / 1.071 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.532e-05/0.2666, allocations: 11.98 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.732e-05/0.2667, allocations: 19.92 kB / 1.071 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.2667, allocations: 4 kB / 1.071 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004746/0.2672, allocations: 283.6 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.2672, allocations: 27.91 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.2673, allocations: 15.81 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.2677, allocations: 275.4 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2677, allocations: 0 / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2677, allocations: 3.938 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2677, allocations: 0 / 1.071 GB, free: 7.398 MB / 0.8262 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.0003923/0.2681, allocations: 407.4 kB / 1.072 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2682, allocations: 12.03 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.2682, allocations: 8.844 kB / 1.072 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.2683, allocations: 180.2 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.2684, allocations: 384 / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.704e-06/0.2684, allocations: 384 / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.226e-05/0.2685, allocations: 45.94 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-06/0.2685, allocations: 0 / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.2685, allocations: 4 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2685, allocations: 0 / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.95e-05/0.2685, allocations: 19.98 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.2687, allocations: 177.6 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.883e-05/0.2687, allocations: 26.58 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.162e-05/0.2688, allocations: 12.91 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.2688, allocations: 8 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.2688, allocations: 34.5 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.2688, allocations: 3.938 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001326/0.269, allocations: 65.58 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.269, allocations: 51.41 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.2691, allocations: 172.8 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.2692, allocations: 25.7 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.567e-05/0.2692, allocations: 96.11 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.046e-05/0.2692, allocations: 3.906 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.2693, allocations: 29.7 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.254e-05/0.2694, allocations: 319 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.073e-05/0.2694, allocations: 43.98 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.881e-05/0.2695, allocations: 35.98 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.59e-05/0.2696, allocations: 76.75 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2696, allocations: 3.938 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001427/0.2697, allocations: 125.6 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.2698, allocations: 7.938 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.2698, allocations: 0 / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.2698, allocations: 7.984 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.21e-05/0.2698, allocations: 0 / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.647e-06/0.2698, allocations: 4.062 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.494e-05/0.2698, allocations: 7.844 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.2699, allocations: 4 kB / 1.073 GB, free: 5.199 MB / 0.8262 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.0001161/0.27, allocations: 121.8 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.27, allocations: 11.84 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2701, allocations: 61.5 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2701, allocations: 0 / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2701, allocations: 3.984 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.2701, allocations: 4.031 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.2702, allocations: 165.6 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2702, allocations: 4 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-06/0.2703, allocations: 0 / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2703, allocations: 3.938 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.2703, allocations: 3.984 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2703, allocations: 0 / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2703, allocations: 0 / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.127e-05/0.2704, allocations: 84.97 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.2704, allocations: 88.95 kB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.2704, allocations: 0 / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.347e-05/0.2704, allocations: 4 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.798e-06/0.2705, allocations: 0 / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.2705, allocations: 0 / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.519e-05/0.2706, allocations: 130.1 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2706, allocations: 0 / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003136/0.2709, allocations: 79.98 kB / 1.074 GB, free: 4.344 MB / 0.8262 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.0004632/0.2713, allocations: 237.4 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001522/0.2715, allocations: 105.7 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2715, allocations: 0 / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.654e-05/0.2715, allocations: 16 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.2717, allocations: 4 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002514/0.2719, allocations: 161.4 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.2722, allocations: 0.6924 MB / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.981e-05/0.2722, allocations: 4.062 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.431e-05/0.2722, allocations: 11.44 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2722, allocations: 0 / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of Templates: time 0.00468/0.2769, allocations: 2.091 MB / 1.077 GB, free: 0.9883 MB / 0.8262 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 -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/jenkins/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