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.001392/0.001392, allocations: 79.86 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001567/0.001567, allocations: 164.6 kB / 22.46 MB, free: 5.359 MB / 14.72 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.427/1.427, allocations: 177.2 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.895/2.895, allocations: 389 MB / 0.633 GB, free: 1.004 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.623e-06/1.623e-06, allocations: 0 / 1 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.548e-05/2.71e-05, allocations: 6.219 kB / 1 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0016/0.001627, allocations: 0.5242 MB / 1.001 GB, free: 6.805 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002588/0.004215, allocations: 1.616 MB / 1.002 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.409e-05/0.004249, allocations: 3.938 kB / 1.002 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.00438, allocations: 15.97 kB / 1.002 GB, free: 5.152 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 2.562e-05/0.004405, allocations: 11.94 kB / 1.002 GB, free: 5.141 MB / 0.9512 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.001033/0.005439, allocations: 283.8 kB / 1.002 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.184e-05/0.005511, allocations: 23.92 kB / 1.003 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.928e-05/0.00555, allocations: 4 kB / 1.003 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.603e-05/0.005596, allocations: 11.98 kB / 1.003 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.015e-05/0.005636, allocations: 15.97 kB / 1.003 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.00565, allocations: 0 / 1.003 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007981/0.006448, allocations: 455 kB / 1.003 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.006507, allocations: 27.92 kB / 1.003 GB, free: 4.336 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.135e-05/0.006528, allocations: 4 kB / 1.003 GB, free: 4.332 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005626/0.007091, allocations: 347.1 kB / 1.003 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.007093, allocations: 0 / 1.003 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of FrontEnd: time 8.32e-07/0.007094, allocations: 0 / 1.003 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.007103, allocations: 0 / 1.003 GB, free: 3.992 MB / 0.9512 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.0004886/0.007591, allocations: 333.5 kB / 1.004 GB, free: 3.637 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.007627, allocations: 12.03 kB / 1.004 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.343e-05/0.00766, allocations: 8.875 kB / 1.004 GB, free: 3.617 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.007831, allocations: 133.6 kB / 1.004 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-06/0.007836, allocations: 8.375 kB / 1.004 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.007849, allocations: 384 / 1.004 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.595e-05/0.007945, allocations: 38.2 kB / 1.004 GB, free: 3.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.007954, allocations: 4.125 kB / 1.004 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.007961, allocations: 384 / 1.004 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.007968, allocations: 3.938 kB / 1.004 GB, free: 3.402 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.405e-05/0.008002, allocations: 15.98 kB / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.008167, allocations: 129.3 kB / 1.004 GB, free: 3.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 4.794e-05/0.008215, allocations: 22.58 kB / 1.004 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.013e-05/0.008235, allocations: 8.922 kB / 1.004 GB, free: 3.188 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.00827, allocations: 23.98 kB / 1.004 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.008296, allocations: 34.5 kB / 1.004 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.008297, allocations: 0 / 1.004 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.008456, allocations: 57.64 kB / 1.004 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.008496, allocations: 55.34 kB / 1.004 GB, free: 2.992 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.008679, allocations: 168.9 kB / 1.004 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.008696, allocations: 25.7 kB / 1.004 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.462e-05/0.008761, allocations: 100.1 kB / 1.004 GB, free: 2.688 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.626e-06/0.008769, allocations: 0 / 1.004 GB, free: 2.688 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.213e-05/0.008812, allocations: 25.78 kB / 1.004 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.008952, allocations: 326.8 kB / 1.005 GB, free: 2.328 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.734e-05/0.009009, allocations: 39.98 kB / 1.005 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.582e-05/0.009055, allocations: 39.98 kB / 1.005 GB, free: 2.25 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.323e-05/0.009148, allocations: 72.77 kB / 1.005 GB, free: 2.176 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.00915, allocations: 0 / 1.005 GB, free: 2.176 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001592/0.009309, allocations: 121.6 kB / 1.005 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.009323, allocations: 8 kB / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.009336, allocations: 0 / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.009353, allocations: 0 / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-05/0.009364, allocations: 0 / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.009371, allocations: 4 kB / 1.005 GB, free: 2.039 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.806e-05/0.009399, allocations: 15.89 kB / 1.005 GB, free: 2.023 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.009408, allocations: 4 kB / 1.005 GB, free: 2.02 MB / 0.9512 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.0001428/0.009551, allocations: 122.4 kB / 1.005 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/0.009567, allocations: 11.94 kB / 1.005 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.009677, allocations: 57.44 kB / 1.005 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.009679, allocations: 4 kB / 1.005 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.009684, allocations: 3.938 kB / 1.005 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.009686, allocations: 0 / 1.005 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.009795, allocations: 125.3 kB / 1.005 GB, free: 1.656 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.009796, allocations: 0 / 1.005 GB, free: 1.656 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-06/0.009801, allocations: 0 / 1.005 GB, free: 1.656 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.009806, allocations: 4 kB / 1.005 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.009812, allocations: 0 / 1.005 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.009813, allocations: 0 / 1.005 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.009814, allocations: 3.938 kB / 1.005 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.895e-05/0.009913, allocations: 84.95 kB / 1.005 GB, free: 1.547 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.96e-05/0.009932, allocations: 11.91 kB / 1.006 GB, free: 1.535 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.009948, allocations: 3.984 kB / 1.006 GB, free: 1.531 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.243e-05/0.009961, allocations: 0 / 1.006 GB, free: 1.531 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/0.009976, allocations: 4.031 kB / 1.006 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.009981, allocations: 3.938 kB / 1.006 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.758e-05/0.01008, allocations: 122.3 kB / 1.006 GB, free: 1.406 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.01008, allocations: 0 / 1.006 GB, free: 1.406 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003554/0.01043, allocations: 91.73 kB / 1.006 GB, free: 1.316 MB / 0.9512 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.0006057/0.01104, allocations: 250.4 kB / 1.006 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.01121, allocations: 93.61 kB / 1.006 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01121, allocations: 0 / 1.006 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.031e-05/0.01123, allocations: 15.92 kB / 1.006 GB, free: 0.9766 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.01137, allocations: 4 kB / 1.006 GB, free: 0.9727 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003027/0.01168, allocations: 165.2 kB / 1.006 GB, free: 0.7852 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.639e-05/0.01175, allocations: 83.25 kB / 1.006 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.627e-05/0.01177, allocations: 128 / 1.006 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.01179, allocations: 16.5 kB / 1.006 GB, free: 0.668 MB / 0.9512 GB Notification: Performance of SimCode: time 3.81e-07/0.01179, allocations: 0 / 1.006 GB, free: 0.668 MB / 0.9512 GB Notification: Performance of Templates: time 0.006052/0.01784, allocations: 2.19 MB / 1.008 GB, free: 14.48 MB / 0.9669 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.970696654170752]