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.0009685/0.0009685, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001014/0.001014, allocations: 181 kB / 23.36 MB, free: 1.133 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.9967/0.9967, allocations: 177.1 MB / 203.8 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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.506/2.506, allocations: 438.8 MB / 0.6827 GB, free: 13.62 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.944e-06/1.944e-06, allocations: 0 / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.585e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002281/0.002307, allocations: 0.5718 MB / 0.8391 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.003026/0.005333, allocations: 1.661 MB / 0.8408 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.944e-05/0.005412, allocations: 7.938 kB / 0.8408 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.005619, allocations: 19.91 kB / 0.8408 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 3.797e-05/0.005657, allocations: 7.984 kB / 0.8408 GB, free: 11.95 MB / 0.8073 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.001276/0.006933, allocations: 255 kB / 0.841 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.007034, allocations: 27.84 kB / 0.8411 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 5.309e-05/0.007087, allocations: 7.984 kB / 0.8411 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 6.686e-05/0.007154, allocations: 11.98 kB / 0.8411 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.064e-05/0.007204, allocations: 11.98 kB / 0.8411 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.007222, allocations: 0 / 0.8411 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.008253, allocations: 487 kB / 0.8416 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.109e-05/0.008334, allocations: 23.92 kB / 0.8416 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.229e-05/0.008356, allocations: 4 kB / 0.8416 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0005968/0.008953, allocations: 351 kB / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.008958, allocations: 0 / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.352e-06/0.00896, allocations: 0 / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.008965, allocations: 0 / 0.8419 GB, free: 10.79 MB / 0.8073 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.0005057/0.009471, allocations: 312.2 kB / 0.8422 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.009522, allocations: 8.625 kB / 0.8422 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.009565, allocations: 8.922 kB / 0.8422 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.009787, allocations: 134.1 kB / 0.8424 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.009798, allocations: 384 / 0.8424 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.009808, allocations: 384 / 0.8424 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.967e-05/0.009897, allocations: 33.09 kB / 0.8424 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.009908, allocations: 8.062 kB / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.009916, allocations: 384 / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.009927, allocations: 3.938 kB / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.292e-05/0.00994, allocations: 4 kB / 0.8424 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001175/0.01006, allocations: 66.7 kB / 0.8425 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.566e-05/0.0101, allocations: 18.66 kB / 0.8425 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.35e-05/0.01012, allocations: 12.86 kB / 0.8425 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.784e-05/0.01016, allocations: 4 kB / 0.8425 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.01019, allocations: 30.56 kB / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.0102, allocations: 0 / 0.8425 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 0.0001161/0.01031, allocations: 45.62 kB / 0.8426 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.01034, allocations: 51.41 kB / 0.8426 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.01047, allocations: 161.8 kB / 0.8428 GB, free: 9.785 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.01048, allocations: 25.7 kB / 0.8428 GB, free: 9.754 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.01052, allocations: 88.12 kB / 0.8429 GB, free: 9.664 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.01053, allocations: 4.078 kB / 0.8429 GB, free: 9.66 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.01057, allocations: 29.69 kB / 0.8429 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.01068, allocations: 326.8 kB / 0.8432 GB, free: 9.297 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.471e-05/0.0107, allocations: 10.83 kB / 0.8432 GB, free: 9.285 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.305e-05/0.01072, allocations: 11.94 kB / 0.8433 GB, free: 9.273 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.273e-05/0.01077, allocations: 39.58 kB / 0.8433 GB, free: 9.23 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01077, allocations: 0 / 0.8433 GB, free: 9.23 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.654e-05/0.01086, allocations: 57.75 kB / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.01087, allocations: 7.984 kB / 0.8434 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.01089, allocations: 4 kB / 0.8434 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.0109, allocations: 0 / 0.8434 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.455e-05/0.01091, allocations: 8.062 kB / 0.8434 GB, free: 9.148 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.01092, allocations: 3.984 kB / 0.8434 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.772e-05/0.01095, allocations: 11.83 kB / 0.8434 GB, free: 9.133 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.01095, allocations: 4 kB / 0.8434 GB, free: 9.129 MB / 0.8073 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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.197e-05/0.01104, allocations: 120.3 kB / 0.8435 GB, free: 9.004 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.05e-05/0.01105, allocations: 3.984 kB / 0.8435 GB, free: 9 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.734e-05/0.01114, allocations: 41.45 kB / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.01115, allocations: 0 / 0.8435 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01115, allocations: 3.984 kB / 0.8435 GB, free: 8.949 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.01115, allocations: 4.031 kB / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.417e-05/0.01123, allocations: 73.83 kB / 0.8436 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.01123, allocations: 0 / 0.8436 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.897e-06/0.01124, allocations: 3.984 kB / 0.8436 GB, free: 8.852 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.01124, allocations: 0 / 0.8436 GB, free: 8.852 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.01124, allocations: 4 kB / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.01125, allocations: 0 / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.01125, allocations: 0 / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.943e-05/0.01132, allocations: 74.66 kB / 0.8437 GB, free: 8.754 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.069e-05/0.01133, allocations: 7.891 kB / 0.8437 GB, free: 8.746 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.01134, allocations: 8.031 kB / 0.8437 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.01135, allocations: 0 / 0.8437 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.028e-05/0.01136, allocations: 0 / 0.8437 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.01136, allocations: 0 / 0.8437 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.087e-05/0.0114, allocations: 35.45 kB / 0.8437 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.0114, allocations: 0 / 0.8437 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003167/0.01172, allocations: 87.8 kB / 0.8438 GB, free: 8.617 MB / 0.8073 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.0005821/0.0123, allocations: 260.1 kB / 0.8441 GB, free: 8.391 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001112/0.01241, allocations: 58.53 kB / 0.8441 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.01242, allocations: 4 kB / 0.8441 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.207e-06/0.01243, allocations: 8.844 kB / 0.8441 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.9e-05/0.01251, allocations: 9.938 kB / 0.8442 GB, free: 8.301 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000238/0.01275, allocations: 150.5 kB / 0.8443 GB, free: 8.121 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.836e-05/0.01278, allocations: 63.33 kB / 0.8444 GB, free: 8.039 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.1e-05/0.01281, allocations: 8.125 kB / 0.8444 GB, free: 8.031 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.01284, allocations: 51.38 kB / 0.8444 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of SimCode: time 8.52e-07/0.01284, allocations: 0 / 0.8444 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of Templates: time 0.005866/0.01871, allocations: 2.581 MB / 0.8469 GB, free: 5.406 MB / 0.8073 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.407622093800455]