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.001395/0.001395, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001605/0.001605, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.478/1.478, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 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 3.199/3.199, allocations: 429.6 MB / 0.673 GB, free: 3.879 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.253e-06/1.253e-06, allocations: 0 / 0.8775 GB, free: 6.531 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.749e-05/2.875e-05, allocations: 5.125 kB / 0.8775 GB, free: 6.527 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001589/0.001618, allocations: 0.5312 MB / 0.8781 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002713/0.004331, allocations: 1.613 MB / 0.8796 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.211e-05/0.004363, allocations: 3.938 kB / 0.8796 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.004504, allocations: 15.97 kB / 0.8797 GB, free: 4.371 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 3.194e-05/0.004536, allocations: 16.91 kB / 0.8797 GB, free: 4.355 MB / 0.8386 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.001001/0.005537, allocations: 284.8 kB / 0.8799 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.376e-05/0.005601, allocations: 20.55 kB / 0.88 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.445e-05/0.005635, allocations: 9.328 kB / 0.88 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.912e-05/0.005685, allocations: 11.98 kB / 0.88 GB, free: 4.039 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.228e-05/0.005727, allocations: 15.97 kB / 0.88 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.005739, allocations: 0.7812 kB / 0.88 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008243/0.006564, allocations: 459.5 kB / 0.8804 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.006615, allocations: 15.94 kB / 0.8805 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.092e-05/0.006646, allocations: 9.078 kB / 0.8805 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005447/0.007191, allocations: 347.1 kB / 0.8808 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.007194, allocations: 0.6875 kB / 0.8808 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.152e-06/0.007195, allocations: 0 / 0.8808 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.007199, allocations: 5.031 kB / 0.8808 GB, free: 3.207 MB / 0.8386 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.0004908/0.007689, allocations: 337.5 kB / 0.8811 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.007726, allocations: 8.031 kB / 0.8811 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.617e-05/0.007772, allocations: 12.45 kB / 0.8811 GB, free: 2.832 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.007945, allocations: 132.4 kB / 0.8813 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.007955, allocations: 384 / 0.8813 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.007965, allocations: 8.312 kB / 0.8813 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.218e-05/0.008058, allocations: 34.27 kB / 0.8813 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.008064, allocations: 192 / 0.8813 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.008072, allocations: 384 / 0.8813 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.008078, allocations: 3.938 kB / 0.8813 GB, free: 2.629 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.601e-05/0.008114, allocations: 19.98 kB / 0.8813 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001707/0.008284, allocations: 118.1 kB / 0.8814 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.827e-05/0.008343, allocations: 30.5 kB / 0.8815 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.442e-05/0.008367, allocations: 13.52 kB / 0.8815 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.008402, allocations: 9.453 kB / 0.8815 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.008436, allocations: 30.56 kB / 0.8815 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.008436, allocations: 0 / 0.8815 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001789/0.008615, allocations: 69.73 kB / 0.8816 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.008662, allocations: 55.34 kB / 0.8816 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.00885, allocations: 166.2 kB / 0.8818 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.008881, allocations: 29.64 kB / 0.8818 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.55e-05/0.008956, allocations: 100.1 kB / 0.8819 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.366e-06/0.008965, allocations: 0 / 0.8819 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.643e-05/0.009011, allocations: 25.72 kB / 0.882 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001811/0.009192, allocations: 322.8 kB / 0.8823 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.335e-05/0.009256, allocations: 39.92 kB / 0.8823 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.423e-05/0.00931, allocations: 39.98 kB / 0.8823 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.637e-05/0.009406, allocations: 64.83 kB / 0.8824 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.009408, allocations: 4.062 kB / 0.8824 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001886/0.009596, allocations: 133.6 kB / 0.8825 GB, free: 1.273 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.009609, allocations: 4 kB / 0.8825 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.009622, allocations: 0 / 0.8825 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.009638, allocations: 4 kB / 0.8825 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.155e-05/0.00965, allocations: 3.938 kB / 0.8825 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.009656, allocations: 3.938 kB / 0.8825 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.657e-05/0.009683, allocations: 7.891 kB / 0.8826 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.009692, allocations: 4 kB / 0.8826 GB, free: 1.246 MB / 0.8386 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.0001738/0.009866, allocations: 121.9 kB / 0.8827 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.009879, allocations: 7.953 kB / 0.8827 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.01001, allocations: 65.47 kB / 0.8827 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.01001, allocations: 4 kB / 0.8827 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.01002, allocations: 3.938 kB / 0.8828 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.01002, allocations: 0 / 0.8828 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.01015, allocations: 125.3 kB / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.01015, allocations: 0 / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-06/0.01015, allocations: 0 / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.01016, allocations: 0 / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-06/0.01016, allocations: 0 / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.01016, allocations: 4.031 kB / 0.8829 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01016, allocations: 3.938 kB / 0.8829 GB, free: 0.8711 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.01027, allocations: 81.02 kB / 0.883 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.138e-05/0.01028, allocations: 3.953 kB / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.01029, allocations: 4 kB / 0.883 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.256e-05/0.0103, allocations: 0 / 0.883 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.772e-05/0.01032, allocations: 7.984 kB / 0.883 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.01033, allocations: 3.938 kB / 0.883 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001105/0.01044, allocations: 121.5 kB / 0.8831 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.01044, allocations: 0 / 0.8831 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003607/0.0108, allocations: 91.83 kB / 0.8832 GB, free: 0.5469 MB / 0.8386 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.0006214/0.01142, allocations: 245.8 kB / 0.8834 GB, free: 328 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002923/0.01171, allocations: 93.61 kB / 0.8835 GB, free: 228 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01171, allocations: 4.062 kB / 0.8835 GB, free: 224 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.27e-05/0.01174, allocations: 15.98 kB / 0.8835 GB, free: 208 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.01188, allocations: 0 / 0.8835 GB, free: 208 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003047/0.01218, allocations: 160.9 kB / 0.8837 GB, free: 20 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.01229, allocations: 87.36 kB / 0.8838 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.899e-05/0.01231, allocations: 3.984 kB / 0.8838 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.527e-05/0.01234, allocations: 8.5 kB / 0.8838 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of SimCode: time 3.81e-07/0.01234, allocations: 4 kB / 0.8838 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of Templates: time 0.006437/0.01877, allocations: 2.217 MB / 0.8859 GB, free: 13.68 MB / 0.8542 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: 8.02718645206187]