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.0008245/0.0008245, allocations: 76.55 kB / 19.93 MB, free: 4.621 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.0008082/0.0008082, allocations: 177.9 kB / 23.22 MB, free: 1.332 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.8567/0.8567, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.703/1.703, allocations: 377.9 MB / 0.6229 GB, free: 8.648 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.362e-06/1.362e-06, allocations: 0 / 0.9821 GB, free: 2.152 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.782e-05/1.919e-05, allocations: 2.281 kB / 0.9821 GB, free: 2.148 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009591/0.0009783, allocations: 0.5264 MB / 0.9827 GB, free: 1.625 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001508/0.002486, allocations: 1.622 MB / 0.9842 GB, free: 15.98 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.053e-05/0.002517, allocations: 7.938 kB / 0.9843 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.002642, allocations: 15.97 kB / 0.9843 GB, free: 15.96 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 1.753e-05/0.002659, allocations: 7.938 kB / 0.9843 GB, free: 15.95 MB / 0.948 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.0006394/0.003299, allocations: 278.9 kB / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 5.859e-05/0.003357, allocations: 27.91 kB / 0.9846 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.08e-05/0.003388, allocations: 0 / 0.9846 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 3.672e-05/0.003425, allocations: 15.98 kB / 0.9846 GB, free: 15.64 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 3.25e-05/0.003457, allocations: 15.97 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.00347, allocations: 4 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004488/0.003919, allocations: 451 kB / 0.985 GB, free: 15.18 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.688e-05/0.003966, allocations: 23.92 kB / 0.9851 GB, free: 15.15 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 1.914e-05/0.003985, allocations: 4 kB / 0.9851 GB, free: 15.15 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003173/0.004302, allocations: 351.1 kB / 0.9854 GB, free: 14.8 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.004304, allocations: 0 / 0.9854 GB, free: 14.8 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.12e-07/0.004305, allocations: 0 / 0.9854 GB, free: 14.8 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.004309, allocations: 0 / 0.9854 GB, free: 14.8 MB / 0.948 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.0002906/0.004599, allocations: 341.5 kB / 0.9857 GB, free: 14.44 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.004628, allocations: 8.031 kB / 0.9857 GB, free: 14.43 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.565e-05/0.004654, allocations: 8.891 kB / 0.9857 GB, free: 14.43 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.004755, allocations: 124.2 kB / 0.9859 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.004762, allocations: 4.312 kB / 0.9859 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-06/0.00477, allocations: 4.375 kB / 0.9859 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.152e-05/0.004841, allocations: 38.2 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.004847, allocations: 4.188 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-06/0.004854, allocations: 4.375 kB / 0.9859 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.004859, allocations: 7.875 kB / 0.9859 GB, free: 14.21 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.143e-05/0.00488, allocations: 15.98 kB / 0.9859 GB, free: 14.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001108/0.004991, allocations: 121.3 kB / 0.986 GB, free: 14.05 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.478e-05/0.005026, allocations: 22.58 kB / 0.9861 GB, free: 14.02 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.668e-05/0.005042, allocations: 12.92 kB / 0.9861 GB, free: 14 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.005073, allocations: 7.984 kB / 0.9861 GB, free: 14 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.005091, allocations: 38.5 kB / 0.9861 GB, free: 13.95 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.005092, allocations: 0 / 0.9861 GB, free: 13.95 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.0001145/0.005206, allocations: 65.64 kB / 0.9862 GB, free: 13.88 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.005234, allocations: 55.34 kB / 0.9862 GB, free: 13.81 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.005337, allocations: 170.2 kB / 0.9864 GB, free: 13.64 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.005347, allocations: 25.7 kB / 0.9864 GB, free: 13.61 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.011e-05/0.005387, allocations: 96.12 kB / 0.9865 GB, free: 13.51 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.005401, allocations: 7.953 kB / 0.9865 GB, free: 13.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.00543, allocations: 21.72 kB / 0.9865 GB, free: 13.47 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.94e-05/0.00551, allocations: 326.8 kB / 0.9869 GB, free: 13.14 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.51e-05/0.005545, allocations: 35.98 kB / 0.9869 GB, free: 13.11 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.087e-05/0.005576, allocations: 44.05 kB / 0.9869 GB, free: 13.07 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.694e-05/0.005633, allocations: 68.86 kB / 0.987 GB, free: 13 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.005634, allocations: 0 / 0.987 GB, free: 13 MB / 0.948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.629e-05/0.005731, allocations: 125.6 kB / 0.9871 GB, free: 12.87 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/0.00574, allocations: 4 kB / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.005753, allocations: 4 kB / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.005763, allocations: 3.984 kB / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-05/0.005774, allocations: 0 / 0.9871 GB, free: 12.86 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.005779, allocations: 3.938 kB / 0.9871 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.005798, allocations: 11.89 kB / 0.9871 GB, free: 12.84 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.005805, allocations: 4 kB / 0.9872 GB, free: 12.84 MB / 0.948 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 8.212e-05/0.005887, allocations: 125.9 kB / 0.9873 GB, free: 12.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-06/0.005893, allocations: 11.88 kB / 0.9873 GB, free: 12.69 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.379e-05/0.005967, allocations: 57.5 kB / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.005968, allocations: 0 / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.005973, allocations: 3.938 kB / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.005975, allocations: 0 / 0.9873 GB, free: 12.63 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.311e-05/0.006038, allocations: 125.3 kB / 0.9875 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.006039, allocations: 0 / 0.9875 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-06/0.006042, allocations: 4 kB / 0.9875 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.11e-07/0.006043, allocations: 4.031 kB / 0.9875 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-06/0.006048, allocations: 0 / 0.9875 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.006049, allocations: 0 / 0.9875 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.00605, allocations: 0 / 0.9875 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.326e-05/0.006103, allocations: 84.95 kB / 0.9875 GB, free: 12.37 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-06/0.00611, allocations: 11.89 kB / 0.9876 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.236e-06/0.006119, allocations: 0 / 0.9876 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.193e-06/0.006126, allocations: 7.984 kB / 0.9876 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.698e-06/0.006136, allocations: 0 / 0.9876 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.006137, allocations: 3.938 kB / 0.9876 GB, free: 12.34 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.62e-05/0.006194, allocations: 126.1 kB / 0.9877 GB, free: 12.22 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.006194, allocations: 4.031 kB / 0.9877 GB, free: 12.22 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000204/0.006398, allocations: 83.8 kB / 0.9878 GB, free: 12.14 MB / 0.948 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.0003341/0.006732, allocations: 253.4 kB / 0.988 GB, free: 11.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001248/0.006857, allocations: 97.67 kB / 0.9881 GB, free: 11.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.006859, allocations: 0 / 0.9881 GB, free: 11.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.929e-06/0.006869, allocations: 19.86 kB / 0.9881 GB, free: 11.78 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001006/0.006969, allocations: 3.938 kB / 0.9881 GB, free: 11.78 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002182/0.007188, allocations: 198.9 kB / 0.9883 GB, free: 11.55 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.6e-05/0.007234, allocations: 79.27 kB / 0.9884 GB, free: 11.45 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.007246, allocations: 8.5 kB / 0.9884 GB, free: 11.45 MB / 0.948 GB Notification: Performance of SimCode: time 3.91e-07/0.007246, allocations: 4 kB / 0.9884 GB, free: 11.44 MB / 0.948 GB Notification: Performance of Templates: time 0.00278/0.01003, allocations: 2.373 MB / 0.9907 GB, free: 9.066 MB / 0.948 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] 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.319568968378007]