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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001017, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007846/0.007846, allocations: 173.9 kB / 16.26 MB, free: 6.613 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.369/1.369, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.765/2.765, allocations: 462.7 MB / 0.7364 GB, free: 308 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003929, allocations: 11.33 kB / 0.9028 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3538, allocations: 159.6 MB / 1.059 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0007684/0.3547, allocations: 246.3 kB / 1.059 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002393/0.3571, allocations: 1.622 MB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.985e-05/0.3571, allocations: 4 kB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.3573, allocations: 23.91 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.755e-05/0.3573, allocations: 7.984 kB / 1.061 GB, free: 3.594 MB / 0.8106 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.0007583/0.3581, allocations: 187.6 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.222e-05/0.3582, allocations: 35.83 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.073e-05/0.3582, allocations: 4 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.012e-05/0.3583, allocations: 11.94 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.036e-05/0.3583, allocations: 11.98 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.3583, allocations: 4 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004841/0.3588, allocations: 279.5 kB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.597e-05/0.3589, allocations: 23.91 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.174e-05/0.3589, allocations: 45.52 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003542/0.3593, allocations: 267.4 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.3593, allocations: 0 / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.355e-06/0.3593, allocations: 0 / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.3593, allocations: 0 / 1.061 GB, free: 2.734 MB / 0.8106 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.0004264/0.3598, allocations: 403.5 kB / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3598, allocations: 8.031 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.3599, allocations: 12.84 kB / 1.062 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.36, allocations: 184.2 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.36, allocations: 384 / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.3601, allocations: 4.312 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.372e-05/0.3602, allocations: 38.02 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3602, allocations: 0 / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.3602, allocations: 4 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3602, allocations: 0 / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.223e-05/0.3602, allocations: 19.97 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.3604, allocations: 181.6 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.927e-05/0.3605, allocations: 26.58 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.228e-05/0.3605, allocations: 12.84 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.3606, allocations: 4 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.3606, allocations: 42.5 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3606, allocations: 0 / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001657/0.3608, allocations: 57.59 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.3608, allocations: 51.41 kB / 1.062 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.361, allocations: 168.9 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.361, allocations: 25.7 kB / 1.063 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.3611, allocations: 104 kB / 1.063 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.3611, allocations: 8 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.3611, allocations: 17.84 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3612, allocations: 322.8 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.503e-05/0.3613, allocations: 43.92 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.054e-05/0.3614, allocations: 35.98 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.553e-05/0.3614, allocations: 72.81 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3615, allocations: 0 / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001616/0.3616, allocations: 125.6 kB / 1.063 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3616, allocations: 11.88 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3617, allocations: 0 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3617, allocations: 8.062 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.491e-05/0.3617, allocations: 3.938 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3617, allocations: 0 / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.286e-05/0.3617, allocations: 7.844 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3618, allocations: 4 kB / 1.063 GB, free: 0.5469 MB / 0.8106 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.000152/0.3619, allocations: 127.3 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.302e-05/0.3619, allocations: 11.84 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.362, allocations: 53.56 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3621, allocations: 4.031 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3621, allocations: 0 / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.3621, allocations: 0 / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.3622, allocations: 173.6 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3622, allocations: 0 / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.047e-06/0.3622, allocations: 4 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3622, allocations: 3.938 kB / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.3622, allocations: 0 / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.3623, allocations: 0 / 1.064 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.3623, allocations: 3.938 kB / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.442e-05/0.3623, allocations: 85.02 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.874e-05/0.3624, allocations: 88.95 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.3624, allocations: 0 / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.128e-05/0.3625, allocations: 0 / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.301e-05/0.3625, allocations: 4 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3625, allocations: 0 / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.429e-05/0.3626, allocations: 126.1 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3626, allocations: 32 / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003335/0.3629, allocations: 88 kB / 1.064 GB, free: 15.69 MB / 0.8262 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.0004997/0.3634, allocations: 234.2 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001515/0.3636, allocations: 105.6 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3636, allocations: 4.062 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.518e-05/0.3636, allocations: 11.98 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.3637, allocations: 0.8594 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002877/0.364, allocations: 171.1 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.3643, allocations: 0.6966 MB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.013e-05/0.3643, allocations: 4 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.3644, allocations: 7.438 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3644, allocations: 0 / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of Templates: time 0.005171/0.3695, allocations: 2.07 MB / 1.067 GB, free: 12.35 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches