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.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_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.005416/0.005416, allocations: 108.3 kB / 15.74 MB, free: 6.441 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.001172/0.001172, allocations: 194.2 kB / 16.67 MB, free: 6.355 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.732/2.732, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 59.91 kB / 1.054 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3058, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001444/0.3073, allocations: 0.5105 MB / 1.208 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.3092, allocations: 1.607 MB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.151e-05/0.3093, allocations: 0 / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.3094, allocations: 23.91 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.824e-05/0.3095, allocations: 11.92 kB / 1.21 GB, free: 7.512 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.0007605/0.3102, allocations: 238 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.762e-05/0.3103, allocations: 31.84 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.029e-05/0.3104, allocations: 8 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.924e-05/0.3104, allocations: 11.97 kB / 1.21 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.147e-05/0.3104, allocations: 19.92 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3105, allocations: 0 / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004675/0.3109, allocations: 331.5 kB / 1.21 GB, free: 6.887 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.579e-05/0.311, allocations: 23.92 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.061e-05/0.311, allocations: 19.81 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003303/0.3114, allocations: 271.5 kB / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3114, allocations: 0 / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3114, allocations: 0 / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.3114, allocations: 4 kB / 1.211 GB, free: 6.574 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.0004281/0.3118, allocations: 407.1 kB / 1.211 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3119, allocations: 12.56 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.3119, allocations: 8.844 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.3121, allocations: 192.1 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3121, allocations: 384 / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.3121, allocations: 4.375 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.903e-05/0.3122, allocations: 42 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.3122, allocations: 4 kB / 1.211 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.3123, allocations: 0 / 1.211 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3123, allocations: 0 / 1.211 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.093e-05/0.3123, allocations: 15.98 kB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.3125, allocations: 173.6 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.541e-05/0.3125, allocations: 34.5 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.245e-05/0.3126, allocations: 12.86 kB / 1.212 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.3126, allocations: 4 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.3126, allocations: 46.48 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3126, allocations: 0 / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.3128, allocations: 61.59 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.3129, allocations: 51.41 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.313, allocations: 169.1 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.313, allocations: 29.7 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.3131, allocations: 96.05 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.377e-06/0.3131, allocations: 8.062 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.3131, allocations: 25.7 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3132, allocations: 322.8 kB / 1.212 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.895e-05/0.3133, allocations: 35.98 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.981e-05/0.3133, allocations: 39.98 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.528e-05/0.3134, allocations: 68.81 kB / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3134, allocations: 0 / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001438/0.3136, allocations: 133.5 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.3136, allocations: 9.656 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.3136, allocations: 4.062 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.3136, allocations: 4 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.417e-05/0.3137, allocations: 0 / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.3137, allocations: 3.938 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.065e-05/0.3137, allocations: 3.906 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.3137, allocations: 4 kB / 1.213 GB, free: 4.371 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: 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.0001053/0.3138, allocations: 117.8 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.347e-05/0.3138, allocations: 11.84 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.931e-05/0.3139, allocations: 65.55 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.314, allocations: 0 / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.314, allocations: 3.938 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.314, allocations: 0 / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001143/0.3141, allocations: 177.5 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3141, allocations: 0 / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-06/0.3141, allocations: 4 kB / 1.213 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3141, allocations: 3.938 kB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.3141, allocations: 0 / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3141, allocations: 0 / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3141, allocations: 7.969 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.632e-05/0.3142, allocations: 77.03 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.3143, allocations: 96.94 kB / 1.213 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.3143, allocations: 3.984 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.3143, allocations: 0 / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.3143, allocations: 0 / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.3143, allocations: 0 / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.906e-05/0.3144, allocations: 123.3 kB / 1.213 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3144, allocations: 0 / 1.213 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003043/0.3147, allocations: 87.98 kB / 1.213 GB, free: 3.504 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.0004429/0.3152, allocations: 226.8 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.3153, allocations: 105.6 kB / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3153, allocations: 0 / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.407e-05/0.3154, allocations: 8 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.3155, allocations: 4 kB / 1.214 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.3158, allocations: 165.3 kB / 1.214 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.316, allocations: 0.6924 MB / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.903e-05/0.316, allocations: 7.938 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.498e-05/0.316, allocations: 15.56 kB / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.316, allocations: 0 / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of Templates: time 0.004674/0.3207, allocations: 2.084 MB / 1.217 GB, free: 160 kB / 0.9669 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