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.002459/0.002459, allocations: 83.69 kB / 20.24 MB, free: 4.184 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.002831/0.002831, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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.6/1.6, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 3.036/3.036, allocations: 377.8 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] 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 2.094e-06/2.094e-06, allocations: 0 / 0.8108 GB, free: 2.168 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.954e-05/3.163e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.164 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002512/0.002544, allocations: 0.5319 MB / 0.8113 GB, free: 1.656 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.00461/0.007154, allocations: 1.636 MB / 0.8129 GB, free: 4 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.007191, allocations: 0.9062 kB / 0.8129 GB, free: 4 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.007408, allocations: 19.92 kB / 0.8129 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 5.135e-05/0.007459, allocations: 12.77 kB / 0.8129 GB, free: 15.97 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.001605/0.009064, allocations: 285.3 kB / 0.8132 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.81e-05/0.009162, allocations: 21.11 kB / 0.8132 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.731e-05/0.0092, allocations: 0 / 0.8132 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.161e-05/0.009271, allocations: 23.91 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.314e-05/0.009334, allocations: 21.09 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.009353, allocations: 0 / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.0107, allocations: 451.8 kB / 0.8137 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.179e-05/0.01079, allocations: 23.92 kB / 0.8137 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.627e-05/0.01083, allocations: 9.281 kB / 0.8137 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0008562/0.01168, allocations: 343.1 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.01169, allocations: 0 / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.152e-06/0.01169, allocations: 0.5312 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.01169, allocations: 0 / 0.814 GB, free: 14.82 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.000775/0.01247, allocations: 445.4 kB / 0.8145 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.01251, allocations: 12.03 kB / 0.8145 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.623e-05/0.01257, allocations: 8.891 kB / 0.8145 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.01282, allocations: 124.5 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.01284, allocations: 384 / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.01285, allocations: 2.094 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.01296, allocations: 38.2 kB / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.01297, allocations: 192 / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.01298, allocations: 384 / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.01299, allocations: 4.812 kB / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.166e-05/0.01301, allocations: 0 / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002902/0.0133, allocations: 148.5 kB / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.948e-05/0.01339, allocations: 23.59 kB / 0.8148 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.271e-05/0.01342, allocations: 8.406 kB / 0.8148 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 4.901e-05/0.01347, allocations: 8.594 kB / 0.8148 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.66e-05/0.01353, allocations: 37.33 kB / 0.8149 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.01353, allocations: 1.312 kB / 0.8149 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0002286/0.01376, allocations: 45.64 kB / 0.8149 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.01382, allocations: 55.88 kB / 0.815 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.01416, allocations: 220.7 kB / 0.8152 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.01419, allocations: 27.08 kB / 0.8152 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.01435, allocations: 146.8 kB / 0.8153 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.273e-05/0.01436, allocations: 0 / 0.8153 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.61e-05/0.01446, allocations: 35.38 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0006652/0.01512, allocations: 0.4934 MB / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.251e-05/0.01517, allocations: 8 kB / 0.8159 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.511e-05/0.0152, allocations: 8 kB / 0.8159 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.0153, allocations: 36.45 kB / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.01531, allocations: 0 / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002038/0.01551, allocations: 78.42 kB / 0.816 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.01553, allocations: 4 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.01555, allocations: 1.281 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.01557, allocations: 4 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.571e-05/0.01559, allocations: 0 / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.0156, allocations: 4.781 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.334e-05/0.01563, allocations: 3.953 kB / 0.816 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.01565, allocations: 4 kB / 0.816 GB, free: 12.63 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 (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.0001991/0.01585, allocations: 165.8 kB / 0.8161 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.01587, allocations: 3.953 kB / 0.8162 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001483/0.01602, allocations: 50.69 kB / 0.8162 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.01602, allocations: 3.984 kB / 0.8162 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.01603, allocations: 5.562 kB / 0.8162 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.01603, allocations: 0 / 0.8162 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.01625, allocations: 140.6 kB / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.01625, allocations: 0 / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.039e-05/0.01627, allocations: 4 kB / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.01627, allocations: 2.719 kB / 0.8164 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.01628, allocations: 0 / 0.8164 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.01628, allocations: 0 / 0.8164 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.01628, allocations: 0 / 0.8164 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.01645, allocations: 88.27 kB / 0.8164 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.62e-05/0.01647, allocations: 3.953 kB / 0.8164 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.01649, allocations: 0 / 0.8164 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.498e-05/0.01651, allocations: 4.5 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.593e-05/0.01654, allocations: 5.047 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.01654, allocations: 3.938 kB / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001827/0.01673, allocations: 147.2 kB / 0.8166 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of sort global known variables: time 3.2e-07/0.01673, allocations: 5.312 kB / 0.8166 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0005878/0.01731, allocations: 87.8 kB / 0.8167 GB, free: 11.86 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.001061/0.01838, allocations: 256.5 kB / 0.8169 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001901/0.01857, allocations: 66.28 kB / 0.817 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01857, allocations: 0.6562 kB / 0.817 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.851e-05/0.0186, allocations: 23.55 kB / 0.817 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.01881, allocations: 4.656 kB / 0.817 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/0.01914, allocations: 149.5 kB / 0.8172 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.711e-05/0.01923, allocations: 83.11 kB / 0.8172 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.131e-05/0.01925, allocations: 7.984 kB / 0.8172 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.748e-05/0.01927, allocations: 8.5 kB / 0.8173 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of SimCode: time 4.61e-07/0.01927, allocations: 0 / 0.8173 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of Templates: time 0.006314/0.02558, allocations: 2.203 MB / 0.8194 GB, free: 9.047 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.105348424054682]