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.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.0009661/0.0009661, 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.000923/0.000923, allocations: 173 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.9185/0.9185, allocations: 177.1 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.983/1.983, allocations: 429.5 MB / 0.6733 GB, free: 4.035 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_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 1.743e-06/1.743e-06, allocations: 0.6562 kB / 0.8781 GB, free: 6.371 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.78e-05/1.955e-05, allocations: 6.906 kB / 0.8781 GB, free: 6.363 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001061/0.001081, allocations: 0.5446 MB / 0.8787 GB, free: 5.84 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001719/0.0028, allocations: 1.656 MB / 0.8803 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.66e-05/0.002836, allocations: 5.281 kB / 0.8803 GB, free: 4.168 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.002987, allocations: 15.97 kB / 0.8803 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.21e-05/0.003009, allocations: 7.984 kB / 0.8803 GB, free: 4.145 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.000738/0.003747, allocations: 286.9 kB / 0.8806 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.21e-05/0.003809, allocations: 23.89 kB / 0.8806 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.307e-05/0.003842, allocations: 4 kB / 0.8806 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 3.985e-05/0.003882, allocations: 15.98 kB / 0.8806 GB, free: 3.824 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.444e-05/0.003916, allocations: 18.8 kB / 0.8806 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.00393, allocations: 0 / 0.8806 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005093/0.004439, allocations: 455 kB / 0.8811 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.004486, allocations: 23.92 kB / 0.8811 GB, free: 3.34 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.873e-05/0.004505, allocations: 7.938 kB / 0.8811 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.004835, allocations: 351.1 kB / 0.8814 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004838, allocations: 0.7188 kB / 0.8814 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.11e-07/0.004838, allocations: 0 / 0.8814 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.004842, allocations: 1.344 kB / 0.8814 GB, free: 2.988 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.0003247/0.005166, allocations: 435.9 kB / 0.8819 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.005199, allocations: 8.031 kB / 0.8819 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.699e-05/0.005236, allocations: 12.84 kB / 0.8819 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.005353, allocations: 136.4 kB / 0.882 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.005364, allocations: 4.375 kB / 0.882 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-06/0.005371, allocations: 4.312 kB / 0.882 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.761e-05/0.005439, allocations: 30.27 kB / 0.882 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.005445, allocations: 192 / 0.882 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.005453, allocations: 4.359 kB / 0.882 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.005461, allocations: 3.938 kB / 0.882 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.087e-06/0.00547, allocations: 0 / 0.882 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001151/0.005585, allocations: 136.7 kB / 0.8822 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.538e-05/0.00562, allocations: 23.06 kB / 0.8822 GB, free: 2.094 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.005636, allocations: 19.69 kB / 0.8822 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.005674, allocations: 7.984 kB / 0.8822 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.005693, allocations: 33.39 kB / 0.8823 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.005694, allocations: 0 / 0.8823 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001056/0.005799, allocations: 37.66 kB / 0.8823 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.005827, allocations: 59.34 kB / 0.8824 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.005941, allocations: 227.6 kB / 0.8826 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.326e-06/0.005949, allocations: 29.7 kB / 0.8826 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.005995, allocations: 138.9 kB / 0.8827 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.006004, allocations: 4.078 kB / 0.8827 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.00604, allocations: 39.36 kB / 0.8828 GB, free: 1.441 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.006147, allocations: 0.5 MB / 0.8833 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.666e-05/0.006164, allocations: 8 kB / 0.8833 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.146e-05/0.006176, allocations: 8 kB / 0.8833 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.326e-05/0.006219, allocations: 35.67 kB / 0.8833 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.006221, allocations: 0 / 0.8833 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 6.618e-05/0.006287, allocations: 77.64 kB / 0.8834 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.006297, allocations: 4 kB / 0.8834 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.00631, allocations: 4 kB / 0.8834 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.006321, allocations: 0 / 0.8834 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.22e-05/0.006334, allocations: 8.047 kB / 0.8834 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.00634, allocations: 7.875 kB / 0.8834 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.006355, allocations: 3.953 kB / 0.8834 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.006364, allocations: 8 kB / 0.8834 GB, free: 0.7578 MB / 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: 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 6.528e-05/0.006429, allocations: 156.6 kB / 0.8836 GB, free: 0.5938 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-06/0.006435, allocations: 3.953 kB / 0.8836 GB, free: 0.5898 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.433e-05/0.006499, allocations: 45.5 kB / 0.8836 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.006501, allocations: 0 / 0.8836 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.006504, allocations: 3.938 kB / 0.8836 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.006507, allocations: 4.031 kB / 0.8836 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.772e-05/0.006574, allocations: 140.6 kB / 0.8838 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.006575, allocations: 0 / 0.8838 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-06/0.006577, allocations: 0 / 0.8838 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.006578, allocations: 0 / 0.8838 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-06/0.006582, allocations: 0 / 0.8838 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.006583, allocations: 0 / 0.8838 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.006583, allocations: 3.938 kB / 0.8838 GB, free: 364 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.673e-05/0.00663, allocations: 88.25 kB / 0.8838 GB, free: 252 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-06/0.006637, allocations: 3.953 kB / 0.8838 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-06/0.006645, allocations: 4.031 kB / 0.8839 GB, free: 244 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.71e-06/0.006651, allocations: 4 kB / 0.8839 GB, free: 240 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.229e-05/0.006663, allocations: 4 kB / 0.8839 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-06/0.006665, allocations: 3.938 kB / 0.8839 GB, free: 232 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.006716, allocations: 153.6 kB / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.006716, allocations: 4 kB / 0.884 GB, free: 76 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002681/0.006984, allocations: 83.84 kB / 0.8841 GB, free: 15.99 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.0003693/0.007354, allocations: 258.9 kB / 0.8843 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001096/0.007463, allocations: 73.31 kB / 0.8844 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.007465, allocations: 0 / 0.8844 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.496e-06/0.007474, allocations: 11.69 kB / 0.8844 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.968e-05/0.007573, allocations: 4 kB / 0.8844 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001953/0.007768, allocations: 150.6 kB / 0.8846 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.992e-05/0.007798, allocations: 63.41 kB / 0.8846 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.518e-05/0.007814, allocations: 8 kB / 0.8846 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.442e-05/0.007828, allocations: 8.5 kB / 0.8846 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of SimCode: time 5.51e-07/0.007829, allocations: 0 / 0.8846 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of Templates: time 0.004052/0.01188, allocations: 2.619 MB / 0.8872 GB, free: 12.77 MB / 0.8542 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.032616707962006]