Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.0009413/0.0009413, allocations: 81.86 kB / 20.68 MB, free: 3.816 MB / 18.57 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.001028/0.001028, allocations: 181 kB / 24.09 MB, free: 416 kB / 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.9834/0.9834, allocations: 177.1 MB / 204.5 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.821/1.821, allocations: 377.9 MB / 0.624 GB, free: 8.375 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 0.812 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.717e-05/1.856e-05, allocations: 6.25 kB / 0.812 GB, free: 1.477 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001138/0.001157, allocations: 0.5379 MB / 0.8125 GB, free: 0.957 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.00288, allocations: 1.636 MB / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.951e-05/0.002919, allocations: 0 / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.003057, allocations: 23.91 kB / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.291e-05/0.00308, allocations: 13.08 kB / 0.8141 GB, free: 15.27 MB / 0.7761 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.0007041/0.003784, allocations: 284.9 kB / 0.8144 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 5.828e-05/0.003842, allocations: 25.25 kB / 0.8144 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.109e-05/0.003873, allocations: 4 kB / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 3.894e-05/0.003912, allocations: 15.92 kB / 0.8144 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 2.976e-05/0.003942, allocations: 12.52 kB / 0.8145 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.003954, allocations: 0 / 0.8145 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004782/0.004432, allocations: 457 kB / 0.8149 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.023e-05/0.004472, allocations: 19.92 kB / 0.8149 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.346e-05/0.004486, allocations: 11.94 kB / 0.8149 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003249/0.004811, allocations: 348.8 kB / 0.8153 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.004813, allocations: 0 / 0.8153 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.41e-07/0.004813, allocations: 0 / 0.8153 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.004817, allocations: 0 / 0.8153 GB, free: 14.12 MB / 0.7761 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.0003011/0.005118, allocations: 443.8 kB / 0.8157 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.005151, allocations: 12.94 kB / 0.8157 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.47e-05/0.005176, allocations: 4.891 kB / 0.8157 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.666e-05/0.005273, allocations: 131.5 kB / 0.8158 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.707e-06/0.005281, allocations: 4.375 kB / 0.8158 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-06/0.005287, allocations: 1 kB / 0.8158 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.123e-05/0.005338, allocations: 30.73 kB / 0.8159 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.005344, allocations: 1.469 kB / 0.8159 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-06/0.005348, allocations: 384 / 0.8159 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.005354, allocations: 3.938 kB / 0.8159 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.715e-06/0.005361, allocations: 4.531 kB / 0.8159 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.88e-05/0.00546, allocations: 113.2 kB / 0.816 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 2.745e-05/0.005488, allocations: 28.44 kB / 0.816 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.043e-05/0.005498, allocations: 7.688 kB / 0.816 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.005531, allocations: 8.047 kB / 0.816 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.005551, allocations: 42.48 kB / 0.8161 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.005552, allocations: 3.938 kB / 0.8161 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 8.647e-05/0.005639, allocations: 38.5 kB / 0.8161 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.005665, allocations: 51.41 kB / 0.8161 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.979e-05/0.005765, allocations: 230.6 kB / 0.8164 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.236e-06/0.005773, allocations: 25.7 kB / 0.8164 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.378e-05/0.005817, allocations: 142.8 kB / 0.8165 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.943e-06/0.005824, allocations: 1.281 kB / 0.8165 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.005856, allocations: 39.34 kB / 0.8166 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.005966, allocations: 0.4962 MB / 0.817 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.005978, allocations: 4.844 kB / 0.8171 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.768e-06/0.005987, allocations: 8 kB / 0.8171 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.202e-05/0.006019, allocations: 28.81 kB / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.006021, allocations: 0 / 0.8171 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.747e-05/0.006099, allocations: 73.58 kB / 0.8172 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.006108, allocations: 5.344 kB / 0.8172 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.00612, allocations: 4 kB / 0.8172 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/0.006129, allocations: 0 / 0.8172 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.158e-05/0.006141, allocations: 0 / 0.8172 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.006143, allocations: 1.531 kB / 0.8172 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.006159, allocations: 15.88 kB / 0.8172 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.006165, allocations: 0 / 0.8172 GB, free: 11.96 MB / 0.7761 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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 6.2e-05/0.006227, allocations: 163.4 kB / 0.8173 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-06/0.006235, allocations: 7.953 kB / 0.8173 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.947e-05/0.006294, allocations: 45.44 kB / 0.8174 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.006296, allocations: 0 / 0.8174 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.006297, allocations: 0 / 0.8174 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.006302, allocations: 7.938 kB / 0.8174 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.847e-05/0.00636, allocations: 105.2 kB / 0.8175 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.006362, allocations: 8.438 kB / 0.8175 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.863e-06/0.006364, allocations: 1.312 kB / 0.8175 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.01e-07/0.006365, allocations: 0 / 0.8175 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-06/0.006368, allocations: 0 / 0.8175 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.22e-07/0.006368, allocations: 4 kB / 0.8175 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.006369, allocations: 0.875 kB / 0.8175 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.101e-05/0.00645, allocations: 85.61 kB / 0.8176 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.576e-06/0.006459, allocations: 11.94 kB / 0.8176 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.392e-06/0.006465, allocations: 0 / 0.8176 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.002e-06/0.006471, allocations: 0 / 0.8176 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-06/0.006479, allocations: 0.9062 kB / 0.8176 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.52e-07/0.00648, allocations: 0 / 0.8176 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.362e-05/0.006524, allocations: 154 kB / 0.8178 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of sort global known variables: time 4e-08/0.006524, allocations: 0.6562 kB / 0.8178 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002139/0.006738, allocations: 92.45 kB / 0.8178 GB, free: 11.24 MB / 0.7761 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.0003499/0.007088, allocations: 258.8 kB / 0.8181 GB, free: 11 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.01e-05/0.007178, allocations: 72 kB / 0.8182 GB, free: 10.92 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.007179, allocations: 0 / 0.8182 GB, free: 10.92 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.382e-06/0.007185, allocations: 11.62 kB / 0.8182 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.416e-05/0.00728, allocations: 4.703 kB / 0.8182 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001739/0.007454, allocations: 146.6 kB / 0.8183 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.662e-05/0.00748, allocations: 63.34 kB / 0.8184 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.553e-05/0.007496, allocations: 4.875 kB / 0.8184 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.007601, allocations: 70.2 kB / 0.8184 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of SimCode: time 6.71e-07/0.007602, allocations: 1.094 kB / 0.8184 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of Templates: time 0.003885/0.01149, allocations: 2.603 MB / 0.821 GB, free: 7.984 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.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: 4.897036673035473]