Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007629/0.007629, allocations: 169 kB / 16.26 MB, free: 6.66 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.507/1.507, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.719/2.719, allocations: 437.7 MB / 0.7121 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005445/0.0005446, allocations: 12 kB / 0.8728 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6517/0.6523, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0005902/0.6529, allocations: 243.9 kB / 1.023 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00214/0.6551, allocations: 1.614 MB / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.57e-05/0.6551, allocations: 4 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.6553, allocations: 59.84 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.72e-05/0.6553, allocations: 35.95 kB / 1.025 GB, free: 13.89 MB / 0.7794 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.0007449/0.6561, allocations: 201.6 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.983e-05/0.6562, allocations: 31.84 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.666e-05/0.6562, allocations: 8 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.016e-05/0.6563, allocations: 11.98 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.214e-05/0.6563, allocations: 47.89 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.6563, allocations: 0 / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004617/0.6568, allocations: 279.5 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.933e-05/0.6569, allocations: 27.92 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.873e-05/0.6569, allocations: 49.44 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.6573, allocations: 291.3 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.6573, allocations: 0 / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.192e-06/0.6573, allocations: 0 / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.6573, allocations: 4 kB / 1.026 GB, free: 12.95 MB / 0.7794 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.0003815/0.6577, allocations: 417 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.6577, allocations: 8.031 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.6578, allocations: 16.75 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.6579, allocations: 192.1 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-06/0.658, allocations: 384 / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.244e-06/0.658, allocations: 384 / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.596e-05/0.6581, allocations: 38.02 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.45e-06/0.6581, allocations: 7.938 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-06/0.6581, allocations: 7.984 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.6581, allocations: 0 / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.794e-05/0.6581, allocations: 16 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.6583, allocations: 185.6 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.874e-05/0.6583, allocations: 22.58 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.13e-05/0.6584, allocations: 16.91 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.6584, allocations: 8 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.6584, allocations: 42.5 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 3.317e-06/0.6584, allocations: 3.984 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.000137/0.6586, allocations: 73.42 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.6586, allocations: 51.41 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.6588, allocations: 211.4 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.6588, allocations: 25.7 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.878e-05/0.6589, allocations: 104 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.155e-06/0.6589, allocations: 4.125 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.6589, allocations: 25.7 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.659, allocations: 326.8 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.219e-05/0.6591, allocations: 55.97 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.02e-05/0.6592, allocations: 51.98 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.6593, allocations: 103 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6593, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001682/0.6595, allocations: 157.5 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.6595, allocations: 11.94 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.6595, allocations: 4.062 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.426e-06/0.6595, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-05/0.6595, allocations: 4 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.6595, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.871e-05/0.6596, allocations: 19.72 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.6596, allocations: 0 / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001474/0.6597, allocations: 138.3 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.6598, allocations: 11.84 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.6599, allocations: 70.17 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.6599, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.6599, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.6599, allocations: 4 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.66, allocations: 173.7 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.66, allocations: 0 / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.66, allocations: 4 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.66, allocations: 3.938 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.6601, allocations: 0 / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.6601, allocations: 0 / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6601, allocations: 4.031 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.883e-05/0.6602, allocations: 92.86 kB / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.6602, allocations: 88.95 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.6602, allocations: 0 / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/0.6602, allocations: 0 / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.6603, allocations: 0 / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.6603, allocations: 0 / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000119/0.6604, allocations: 156.4 kB / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6604, allocations: 0 / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000324/0.6607, allocations: 83.98 kB / 1.029 GB, free: 9.656 MB / 0.7794 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.0004569/0.6612, allocations: 232 kB / 1.029 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001636/0.6614, allocations: 129.7 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.6614, allocations: 0 / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.6614, allocations: 15.98 kB / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001434/0.6616, allocations: 3.938 kB / 1.029 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003093/0.6619, allocations: 235.8 kB / 1.029 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.6621, allocations: 0.7004 MB / 1.03 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.715e-05/0.6622, allocations: 0 / 1.03 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.603e-05/0.6622, allocations: 11.44 kB / 1.03 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6622, allocations: 0 / 1.03 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of Templates: time 0.004967/0.6672, allocations: 2.091 MB / 1.032 GB, free: 6.203 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches