Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009423/0.0009423, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009689/0.0009689, allocations: 173.3 kB / 23.03 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8779/0.8779, allocations: 177.2 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.969/1.969, allocations: 429.5 MB / 0.6733 GB, free: 3.996 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 0.8781 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.431e-05/2.565e-05, allocations: 5.266 kB / 0.8781 GB, free: 6.316 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001109/0.001135, allocations: 0.5427 MB / 0.8787 GB, free: 5.789 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.0028, allocations: 1.655 MB / 0.8803 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.002836, allocations: 0 / 0.8803 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.003013, allocations: 66.2 kB / 0.8803 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.741e-05/0.003041, allocations: 23.97 kB / 0.8804 GB, free: 4.039 MB / 0.8386 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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'. Notification: Performance of NFTyping.typeClassSections: time 0.0007823/0.003823, allocations: 289 kB / 0.8806 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.675e-05/0.0039, allocations: 35.91 kB / 0.8807 GB, free: 3.723 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.271e-05/0.003932, allocations: 0.7188 kB / 0.8807 GB, free: 3.723 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.73e-05/0.00398, allocations: 23.95 kB / 0.8807 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.389e-05/0.004034, allocations: 41.61 kB / 0.8807 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.004048, allocations: 0 / 0.8807 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000544/0.004592, allocations: 459 kB / 0.8812 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.389e-05/0.004646, allocations: 29.17 kB / 0.8812 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.004669, allocations: 11.94 kB / 0.8812 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.005066, allocations: 367 kB / 0.8816 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.005068, allocations: 0 / 0.8816 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.72e-07/0.005069, allocations: 0 / 0.8816 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.005074, allocations: 0 / 0.8816 GB, free: 2.812 MB / 0.8386 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.0003648/0.005439, allocations: 467.6 kB / 0.882 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.005474, allocations: 12.03 kB / 0.882 GB, free: 2.309 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.895e-05/0.005513, allocations: 12.83 kB / 0.882 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.005636, allocations: 141.3 kB / 0.8822 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.005645, allocations: 384 / 0.8822 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.005653, allocations: 4.375 kB / 0.8822 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.469e-05/0.005728, allocations: 34.19 kB / 0.8822 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.005734, allocations: 4.188 kB / 0.8822 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-06/0.005742, allocations: 384 / 0.8822 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.005751, allocations: 3.938 kB / 0.8822 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.136e-05/0.005762, allocations: 4 kB / 0.8822 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.005906, allocations: 152.6 kB / 0.8824 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.609e-05/0.005942, allocations: 23.06 kB / 0.8824 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.005958, allocations: 11.75 kB / 0.8824 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.005996, allocations: 4 kB / 0.8824 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.006016, allocations: 41.31 kB / 0.8824 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.006017, allocations: 0 / 0.8824 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001176/0.006134, allocations: 49.61 kB / 0.8825 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.006164, allocations: 59.34 kB / 0.8825 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.006306, allocations: 267.4 kB / 0.8828 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.418e-06/0.006315, allocations: 25.7 kB / 0.8828 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.381e-05/0.006369, allocations: 150.9 kB / 0.883 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.00638, allocations: 7.938 kB / 0.883 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.006417, allocations: 39.36 kB / 0.883 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.006532, allocations: 0.504 MB / 0.8835 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.254e-05/0.006554, allocations: 12 kB / 0.8835 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.556e-05/0.00657, allocations: 15.94 kB / 0.8835 GB, free: 0.6055 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.498e-05/0.006615, allocations: 42.92 kB / 0.8836 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.006618, allocations: 4 kB / 0.8836 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.982e-05/0.006698, allocations: 81.59 kB / 0.8837 GB, free: 484 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.006709, allocations: 8 kB / 0.8837 GB, free: 476 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.006721, allocations: 0 / 0.8837 GB, free: 476 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.006733, allocations: 0 / 0.8837 GB, free: 476 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.448e-05/0.006747, allocations: 3.984 kB / 0.8837 GB, free: 472 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.006754, allocations: 11.94 kB / 0.8837 GB, free: 460 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.006773, allocations: 7.891 kB / 0.8837 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.006781, allocations: 4 kB / 0.8837 GB, free: 448 kB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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 7.45e-05/0.006856, allocations: 160.6 kB / 0.8838 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-06/0.006865, allocations: 15.84 kB / 0.8839 GB, free: 260 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.641e-05/0.006941, allocations: 42.19 kB / 0.8839 GB, free: 212 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.006943, allocations: 0 / 0.8839 GB, free: 212 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.006947, allocations: 7.938 kB / 0.8839 GB, free: 204 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.006949, allocations: 0 / 0.8839 GB, free: 204 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.609e-05/0.007025, allocations: 148.6 kB / 0.884 GB, free: 20 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.007026, allocations: 0 / 0.884 GB, free: 20 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-06/0.007031, allocations: 3.984 kB / 0.884 GB, free: 16 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.007033, allocations: 4.031 kB / 0.8841 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-06/0.007038, allocations: 0 / 0.8841 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.007039, allocations: 0 / 0.8841 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.00704, allocations: 0 / 0.8841 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.574e-05/0.007106, allocations: 88.28 kB / 0.8841 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.062e-05/0.007116, allocations: 11.89 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.817e-06/0.007125, allocations: 0 / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.724e-06/0.007133, allocations: 0 / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.371e-05/0.007146, allocations: 0 / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.007149, allocations: 3.938 kB / 0.8842 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.634e-05/0.007216, allocations: 167.2 kB / 0.8843 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.007216, allocations: 4.031 kB / 0.8843 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002387/0.007455, allocations: 91.8 kB / 0.8844 GB, free: 15.63 MB / 0.8542 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.0004161/0.007871, allocations: 267.2 kB / 0.8847 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001277/0.007998, allocations: 81.36 kB / 0.8847 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.008, allocations: 0 / 0.8847 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.047e-06/0.008009, allocations: 19.62 kB / 0.8848 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001062/0.008115, allocations: 0 / 0.8848 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002387/0.008354, allocations: 190.7 kB / 0.8849 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.53e-05/0.008389, allocations: 67.33 kB / 0.885 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.551e-05/0.008405, allocations: 0 / 0.885 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.431e-05/0.008419, allocations: 12.5 kB / 0.885 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of SimCode: time 6.91e-07/0.00842, allocations: 0 / 0.885 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of Templates: time 0.004903/0.01332, allocations: 2.628 MB / 0.8876 GB, free: 12.34 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0590027859434485]