Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001131/0.001131, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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: 192.9 kB / 16.14 MB, free: 6.695 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.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.907/2.907, allocations: 472.6 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.2 kB / 0.9113 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2848, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001716/0.2866, allocations: 0.5832 MB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002213/0.2888, allocations: 1.632 MB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.23e-05/0.2889, allocations: 3.938 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.289, allocations: 27.97 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.391e-05/0.2891, allocations: 7.984 kB / 1.07 GB, free: 8.602 MB / 0.8262 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007926/0.2899, allocations: 202.7 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.904e-05/0.2899, allocations: 15.97 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.435e-05/0.29, allocations: 7.984 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.165e-05/0.29, allocations: 7.938 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.521e-05/0.2901, allocations: 23.98 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.2901, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000457/0.2906, allocations: 271.5 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.746e-05/0.2906, allocations: 27.91 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.793e-05/0.2907, allocations: 19.8 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.2911, allocations: 267.4 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2911, allocations: 0 / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2911, allocations: 0 / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.2911, allocations: 0 / 1.071 GB, free: 7.777 MB / 0.8262 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.0004911/0.2916, allocations: 411.5 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2916, allocations: 11.97 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.503e-05/0.2917, allocations: 8.844 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.2918, allocations: 176.2 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.2919, allocations: 4.359 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.2919, allocations: 4.312 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.985e-05/0.292, allocations: 42.02 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.292, allocations: 0 / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-06/0.292, allocations: 0 / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.292, allocations: 4 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.186e-05/0.2921, allocations: 19.98 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.2923, allocations: 169.7 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.293e-05/0.2923, allocations: 26.52 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.112e-05/0.2923, allocations: 12.91 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.2924, allocations: 8 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.2924, allocations: 34.5 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.2924, allocations: 4 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001446/0.2926, allocations: 61.59 kB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.2926, allocations: 55.34 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.2927, allocations: 173 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.2928, allocations: 25.7 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.077e-05/0.2928, allocations: 100.1 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.078e-05/0.2929, allocations: 3.906 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.2929, allocations: 25.83 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.293, allocations: 322.8 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.905e-05/0.2931, allocations: 39.92 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.446e-05/0.2931, allocations: 43.97 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.67e-05/0.2932, allocations: 68.77 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2932, allocations: 0 / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001504/0.2934, allocations: 133.5 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.2934, allocations: 11.88 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.2934, allocations: 0 / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.2934, allocations: 8 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.309e-05/0.2934, allocations: 4.062 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.2935, allocations: 0 / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.634e-05/0.2935, allocations: 11.83 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.2935, allocations: 4 kB / 1.072 GB, free: 5.57 MB / 0.8262 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.0001441/0.2936, allocations: 117.8 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.131e-05/0.2937, allocations: 11.84 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.2938, allocations: 57.56 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.2938, allocations: 4.031 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2938, allocations: 0 / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.2938, allocations: 0 / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.2939, allocations: 173.6 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2939, allocations: 4 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.2939, allocations: 3.938 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.294, allocations: 3.938 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.294, allocations: 0 / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.294, allocations: 0 / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.294, allocations: 0 / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.996e-05/0.2941, allocations: 85.02 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.2941, allocations: 88.95 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.2941, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.152e-05/0.2941, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.635e-05/0.2942, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.2942, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.291e-05/0.2943, allocations: 123.2 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2943, allocations: 0 / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003241/0.2946, allocations: 92.02 kB / 1.073 GB, free: 4.715 MB / 0.8262 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.0005079/0.2951, allocations: 231.2 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.2953, allocations: 101.6 kB / 1.073 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2953, allocations: 4.062 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.614e-05/0.2953, allocations: 11.98 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.2955, allocations: 4 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002662/0.2957, allocations: 171.1 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.296, allocations: 0.6966 MB / 1.074 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.749e-05/0.296, allocations: 4 kB / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.538e-05/0.296, allocations: 7.438 kB / 1.074 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.296, allocations: 3.938 kB / 1.074 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of Templates: time 0.004445/0.3005, allocations: 2.077 MB / 1.076 GB, free: 1.367 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)