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.001161/0.001161, allocations: 102.2 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.001131/0.001131, allocations: 194.3 kB / 17.3 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.182/1.182, 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.175/2.175, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 69.73 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2775, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001492/0.279, allocations: 0.5259 MB / 1.027 GB, free: 1.547 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001964/0.281, allocations: 1.616 MB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.281, allocations: 0 / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.2812, allocations: 23.91 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.347e-05/0.2812, 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.0007308/0.2819, allocations: 247.1 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.872e-05/0.282, allocations: 27.89 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.282, allocations: 4 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.653e-05/0.2821, allocations: 15.98 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.508e-05/0.2821, allocations: 15.92 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.2821, allocations: 0 / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005199/0.2826, allocations: 327.5 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.32e-05/0.2827, allocations: 19.92 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.515e-05/0.2827, allocations: 19.81 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.2831, allocations: 279.4 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2831, allocations: 7.938 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2831, allocations: 0 / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.2831, allocations: 0 / 1.03 GB, free: 14.94 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.0003436/0.2834, allocations: 403.2 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.2835, allocations: 8.031 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.2835, allocations: 8.844 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.2836, allocations: 185 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.472e-06/0.2836, allocations: 384 / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-06/0.2837, allocations: 384 / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.022e-05/0.2837, allocations: 49.94 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.449e-06/0.2837, allocations: 0 / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-06/0.2838, allocations: 0 / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-06/0.2838, allocations: 0 / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.297e-05/0.2838, allocations: 16 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000131/0.2839, allocations: 173.6 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.883e-05/0.284, allocations: 30.56 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.732e-05/0.284, allocations: 8.922 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.284, allocations: 12 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.2841, allocations: 42.42 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.2841, allocations: 0 / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001304/0.2842, allocations: 61.53 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.2842, allocations: 51.41 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.2844, allocations: 177.4 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.2844, allocations: 25.7 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.2845, allocations: 92.27 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.714e-06/0.2845, allocations: 0 / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.2845, allocations: 25.7 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2847, allocations: 322.8 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.507e-05/0.2847, allocations: 39.98 kB / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.477e-05/0.2847, allocations: 35.98 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.2849, allocations: 80.69 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2849, allocations: 0 / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001251/0.285, allocations: 125.6 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2851, allocations: 12 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2851, allocations: 0 / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.418e-06/0.2851, allocations: 4 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.097e-06/0.2851, allocations: 0 / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.2851, allocations: 0 / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.09e-05/0.2851, allocations: 7.844 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.2851, allocations: 4 kB / 1.032 GB, free: 12.76 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 9.279e-05/0.2852, allocations: 125.8 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.2853, allocations: 15.84 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.175e-05/0.2854, allocations: 61.48 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.2854, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2854, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.2854, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.901e-05/0.2855, allocations: 173.6 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2855, allocations: 4 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-06/0.2855, allocations: 4 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2855, allocations: 3.938 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-06/0.2855, allocations: 0 / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.2855, allocations: 4.031 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2855, allocations: 0 / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.569e-05/0.2856, allocations: 84.95 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.579e-05/0.2856, allocations: 88.95 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.618e-06/0.2857, allocations: 0 / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.219e-05/0.2857, allocations: 3.984 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-06/0.2857, allocations: 0 / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.2857, allocations: 4.031 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.993e-05/0.2858, allocations: 125.1 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2858, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002668/0.2861, allocations: 83.98 kB / 1.032 GB, free: 11.89 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.0003996/0.2865, allocations: 238.5 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001364/0.2866, allocations: 101.7 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2866, allocations: 0 / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.575e-05/0.2866, allocations: 11.94 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.2868, allocations: 1.375 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002287/0.287, allocations: 165.4 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.2873, allocations: 0.6924 MB / 1.034 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.76e-05/0.2873, allocations: 8.109 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.372e-05/0.2874, allocations: 11.44 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.2874, allocations: 0 / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of Templates: time 0.004305/0.2917, allocations: 2.091 MB / 1.036 GB, free: 8.535 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 cvode -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