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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 109 kB / 17.08 MB, free: 5.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 195.6 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 245.7 MB, free: 4.238 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.904/2.904, allocations: 489.3 MB / 0.7687 GB, free: 3.77 MB / 0.6075 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 71.91 kB / 1.103 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9331/0.935, allocations: 163.8 MB / 1.263 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001545/0.9366, allocations: 0.5249 MB / 1.263 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002049/0.9387, allocations: 1.6 MB / 1.265 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.32e-05/0.9387, allocations: 0.875 kB / 1.265 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.9389, allocations: 23.7 kB / 1.265 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.758e-05/0.9389, allocations: 12.16 kB / 1.265 GB, free: 6.746 MB / 0.9981 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.0008684/0.9398, allocations: 243 kB / 1.265 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.723e-05/0.9399, allocations: 24.88 kB / 1.265 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.9399, allocations: 2.516 kB / 1.265 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.6e-05/0.94, allocations: 18.3 kB / 1.265 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.466e-05/0.94, allocations: 11.72 kB / 1.265 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.94, allocations: 4 kB / 1.265 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005679/0.9406, allocations: 331.8 kB / 1.265 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.059e-05/0.9407, allocations: 21.84 kB / 1.265 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.9407, allocations: 16.34 kB / 1.265 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004182/0.9411, allocations: 283.8 kB / 1.266 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.9411, allocations: 0 / 1.266 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9411, allocations: 0 / 1.266 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.9412, allocations: 0.8125 kB / 1.266 GB, free: 6.43 MB / 0.9981 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.0003469/0.9415, allocations: 408.7 kB / 1.266 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.9415, allocations: 13.8 kB / 1.266 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/0.9416, allocations: 11.27 kB / 1.266 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.9417, allocations: 178.8 kB / 1.266 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-06/0.9417, allocations: 1.125 kB / 1.266 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.9417, allocations: 4.812 kB / 1.266 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.577e-05/0.9418, allocations: 48.22 kB / 1.266 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.9418, allocations: 0 / 1.266 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.9419, allocations: 0.9375 kB / 1.266 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.9419, allocations: 0 / 1.266 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.31e-05/0.9419, allocations: 24.3 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.942, allocations: 178.6 kB / 1.266 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.482e-05/0.9421, allocations: 24.16 kB / 1.266 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.253e-05/0.9421, allocations: 13.84 kB / 1.266 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.9421, allocations: 5.812 kB / 1.266 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.312e-05/0.9422, allocations: 39.78 kB / 1.266 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.9422, allocations: 0 / 1.266 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.9423, allocations: 67.59 kB / 1.267 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.89e-05/0.9423, allocations: 51.92 kB / 1.267 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.9425, allocations: 165.5 kB / 1.267 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.9425, allocations: 26.67 kB / 1.267 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.9426, allocations: 98.78 kB / 1.267 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.767e-06/0.9426, allocations: 0 / 1.267 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.9426, allocations: 25.86 kB / 1.267 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.767e-05/0.9427, allocations: 325.2 kB / 1.267 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.56e-05/0.9427, allocations: 41.52 kB / 1.267 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.333e-05/0.9428, allocations: 45.42 kB / 1.267 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.466e-05/0.9429, allocations: 63.34 kB / 1.267 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.9429, allocations: 0.6875 kB / 1.267 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001616/0.9431, allocations: 122.7 kB / 1.267 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.9431, allocations: 9.094 kB / 1.267 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.9431, allocations: 2.484 kB / 1.267 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.9431, allocations: 0 / 1.267 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.214e-05/0.9431, allocations: 1.641 kB / 1.267 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.9431, allocations: 4.062 kB / 1.267 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.203e-05/0.9432, allocations: 14.33 kB / 1.267 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.9432, allocations: 1.672 kB / 1.267 GB, free: 4.688 MB / 0.9981 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.0001032/0.9433, allocations: 124.1 kB / 1.268 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.9433, allocations: 15.7 kB / 1.268 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.995e-05/0.9434, allocations: 57.19 kB / 1.268 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.9434, allocations: 0.875 kB / 1.268 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.9434, allocations: 4.641 kB / 1.268 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.9434, allocations: 0.8125 kB / 1.268 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.798e-05/0.9435, allocations: 170 kB / 1.268 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.9435, allocations: 0 / 1.268 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-06/0.9435, allocations: 1.328 kB / 1.268 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.9435, allocations: 4.719 kB / 1.268 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.9435, allocations: 8.484 kB / 1.268 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.9436, allocations: 0.75 kB / 1.268 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.9436, allocations: 4.688 kB / 1.268 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.185e-05/0.9436, allocations: 81.81 kB / 1.268 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.179e-05/0.9437, allocations: 87.05 kB / 1.268 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.9437, allocations: 2.281 kB / 1.268 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.9437, allocations: 0 / 1.268 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.9437, allocations: 5.391 kB / 1.268 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.9437, allocations: 0.7812 kB / 1.268 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.094e-05/0.9438, allocations: 122.7 kB / 1.268 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9438, allocations: 0.7812 kB / 1.268 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003377/0.9442, allocations: 86.59 kB / 1.268 GB, free: 4.031 MB / 0.9981 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.000489/0.9447, allocations: 229.9 kB / 1.268 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001717/0.9448, allocations: 98 kB / 1.269 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9448, allocations: 4.062 kB / 1.269 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.885e-05/0.9449, allocations: 14.05 kB / 1.269 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.945, allocations: 5.5 kB / 1.269 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/0.9453, allocations: 198.4 kB / 1.269 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.9454, allocations: 0.6924 MB / 1.269 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.438e-05/0.9454, allocations: 8.859 kB / 1.269 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.9454, allocations: 0.5938 kB / 1.269 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of Templates: time 0.0049/0.9503, allocations: 2.259 MB / 1.272 GB, free: 2.781 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.533182587008923]