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.00129/0.00129, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001253/0.001253, allocations: 181 kB / 23.35 MB, free: 1.137 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 1.099/1.099, allocations: 177.1 MB / 203.8 MB, free: 5.465 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 2.324/2.324, allocations: 438.8 MB / 0.6827 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.883e-06/1.883e-06, allocations: 0 / 0.8385 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.583e-05, allocations: 2.312 kB / 0.8385 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.005974/0.005999, allocations: 0.5343 MB / 0.8391 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.005565/0.01156, allocations: 1.664 MB / 0.8407 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.578e-05/0.01162, allocations: 3.938 kB / 0.8407 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.01179, allocations: 23.97 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 2.878e-05/0.01182, allocations: 11.92 kB / 0.8407 GB, free: 12.03 MB / 0.8073 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.001087/0.0129, allocations: 279 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 7.839e-05/0.01298, allocations: 23.91 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.01302, allocations: 4 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 5.099e-05/0.01307, allocations: 11.98 kB / 0.841 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.097e-05/0.01311, allocations: 11.98 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.01313, allocations: 0 / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007437/0.01387, allocations: 459 kB / 0.8415 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 5.208e-05/0.01392, allocations: 15.94 kB / 0.8415 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.171e-05/0.01394, allocations: 11.97 kB / 0.8415 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.003598/0.01754, allocations: 355 kB / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.01755, allocations: 0 / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.974e-06/0.01755, allocations: 0 / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.01755, allocations: 4 kB / 0.8418 GB, free: 10.88 MB / 0.8073 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.0004964/0.01805, allocations: 308.2 kB / 0.8421 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.01809, allocations: 12.62 kB / 0.8421 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.884e-05/0.01812, allocations: 0.9375 kB / 0.8422 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.01826, allocations: 130.1 kB / 0.8423 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.01827, allocations: 8.297 kB / 0.8423 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.01828, allocations: 4.375 kB / 0.8423 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.127e-05/0.01835, allocations: 41.08 kB / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.01836, allocations: 192 / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-06/0.01837, allocations: 384 / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.01837, allocations: 3.938 kB / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.935e-06/0.01838, allocations: 0 / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.01848, allocations: 66.7 kB / 0.8424 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.054e-05/0.01852, allocations: 22.52 kB / 0.8424 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.109e-05/0.01853, allocations: 4.859 kB / 0.8424 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.155e-05/0.01857, allocations: 12.08 kB / 0.8424 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.0186, allocations: 30.56 kB / 0.8425 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.0186, allocations: 4 kB / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 9.553e-05/0.01869, allocations: 29.7 kB / 0.8425 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.01873, allocations: 59.39 kB / 0.8425 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.01885, allocations: 153.8 kB / 0.8427 GB, free: 9.887 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.01886, allocations: 33.64 kB / 0.8427 GB, free: 9.848 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.692e-05/0.0189, allocations: 92.11 kB / 0.8428 GB, free: 9.754 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.01891, allocations: 7.953 kB / 0.8428 GB, free: 9.746 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.01894, allocations: 21.69 kB / 0.8428 GB, free: 9.719 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.869e-05/0.01903, allocations: 330.7 kB / 0.8432 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.451e-05/0.01906, allocations: 10.83 kB / 0.8432 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.536e-05/0.01907, allocations: 12.12 kB / 0.8432 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.802e-05/0.01912, allocations: 31.66 kB / 0.8432 GB, free: 9.328 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.01912, allocations: 0 / 0.8432 GB, free: 9.328 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.998e-05/0.01921, allocations: 61.8 kB / 0.8433 GB, free: 9.262 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.01923, allocations: 4 kB / 0.8433 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.01924, allocations: 0 / 0.8433 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.01925, allocations: 0 / 0.8433 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.671e-05/0.01927, allocations: 7.922 kB / 0.8433 GB, free: 9.25 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.565e-06/0.01927, allocations: 4 kB / 0.8433 GB, free: 9.246 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.474e-05/0.01929, allocations: 11.83 kB / 0.8433 GB, free: 9.234 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.0193, allocations: 0 / 0.8433 GB, free: 9.234 MB / 0.8073 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 7.76e-05/0.01938, allocations: 116.7 kB / 0.8434 GB, free: 9.109 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.01939, allocations: 4 kB / 0.8434 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.829e-05/0.01947, allocations: 41.5 kB / 0.8435 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01947, allocations: 0 / 0.8435 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.01947, allocations: 0 / 0.8435 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.01947, allocations: 0 / 0.8435 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.322e-05/0.01955, allocations: 81.81 kB / 0.8435 GB, free: 8.961 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.01955, allocations: 4 kB / 0.8435 GB, free: 8.957 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.027e-06/0.01955, allocations: 0 / 0.8435 GB, free: 8.957 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.01956, allocations: 4.031 kB / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-06/0.01956, allocations: 0 / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.01956, allocations: 0 / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.01956, allocations: 7.922 kB / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.56e-05/0.01962, allocations: 62.73 kB / 0.8436 GB, free: 8.863 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.337e-05/0.01963, allocations: 11.89 kB / 0.8436 GB, free: 8.852 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.001e-05/0.01964, allocations: 3.984 kB / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.093e-05/0.01965, allocations: 0 / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-06/0.01966, allocations: 0 / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.01966, allocations: 4 kB / 0.8436 GB, free: 8.844 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.836e-05/0.0197, allocations: 35.5 kB / 0.8437 GB, free: 8.809 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.0197, allocations: 4 kB / 0.8437 GB, free: 8.805 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.003332/0.02303, allocations: 83.8 kB / 0.8437 GB, free: 8.723 MB / 0.8073 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.0005885/0.02362, allocations: 264.8 kB / 0.844 GB, free: 8.488 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001148/0.02374, allocations: 62.48 kB / 0.8441 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.02374, allocations: 0 / 0.8441 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.386e-06/0.02375, allocations: 8.859 kB / 0.8441 GB, free: 8.406 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.231e-05/0.02383, allocations: 10.12 kB / 0.8441 GB, free: 8.398 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002538/0.02409, allocations: 150.5 kB / 0.8442 GB, free: 8.219 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.96e-05/0.02413, allocations: 59.34 kB / 0.8443 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.839e-05/0.02414, allocations: 0 / 0.8443 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.02418, allocations: 55.36 kB / 0.8443 GB, free: 8.086 MB / 0.8073 GB Notification: Performance of SimCode: time 6.91e-07/0.02418, allocations: 0 / 0.8443 GB, free: 8.086 MB / 0.8073 GB Notification: Performance of Templates: time 0.01401/0.03819, allocations: 2.588 MB / 0.8469 GB, free: 5.5 MB / 0.8073 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.400545891840011]