Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001681/0.001681, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.00169/0.00169, allocations: 160.7 kB / 23.01 MB, free: 4.602 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.392/1.392, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.744/2.744, allocations: 377.9 MB / 0.6228 GB, free: 12.54 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 71.88 kB / 0.9819 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7396/0.7417, allocations: 176.1 MB / 1.154 GB, free: 33.52 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001442/0.7431, allocations: 0.5261 MB / 1.154 GB, free: 33.21 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.7447, allocations: 1.6 MB / 1.156 GB, free: 32.11 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.122e-05/0.7448, allocations: 6.625 kB / 1.156 GB, free: 32.1 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.7449, allocations: 19.25 kB / 1.156 GB, free: 32.1 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 1.986e-05/0.7449, allocations: 13.27 kB / 1.156 GB, free: 32.09 MB / 1.076 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.0007537/0.7456, allocations: 287 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 5.204e-05/0.7457, allocations: 21.11 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.124e-05/0.7457, allocations: 6.875 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 2.552e-05/0.7458, allocations: 11.92 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 3.431e-05/0.7458, allocations: 26.19 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.7458, allocations: 3.984 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005616/0.7464, allocations: 452.1 kB / 1.157 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.888e-05/0.7464, allocations: 18.61 kB / 1.157 GB, free: 31.83 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 1.873e-05/0.7464, allocations: 14.72 kB / 1.157 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002962/0.7467, allocations: 287.3 kB / 1.157 GB, free: 31.74 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.7467, allocations: 2.906 kB / 1.157 GB, free: 31.74 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7467, allocations: 0 / 1.157 GB, free: 31.74 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.7467, allocations: 0 / 1.157 GB, free: 31.74 MB / 1.076 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.0002885/0.747, allocations: 343 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.649e-05/0.747, allocations: 8.344 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.125e-05/0.7471, allocations: 7.703 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.7472, allocations: 121.6 kB / 1.158 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.7472, allocations: 384 / 1.158 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-06/0.7472, allocations: 3.25 kB / 1.158 GB, free: 31.29 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.189e-05/0.7473, allocations: 50.59 kB / 1.158 GB, free: 31.24 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.7473, allocations: 3.938 kB / 1.158 GB, free: 31.24 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-06/0.7473, allocations: 0 / 1.158 GB, free: 31.24 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.986e-06/0.7473, allocations: 0 / 1.158 GB, free: 31.24 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.262e-05/0.7473, allocations: 25.11 kB / 1.158 GB, free: 31.23 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.75e-05/0.7474, allocations: 125 kB / 1.158 GB, free: 31.1 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 3.448e-05/0.7474, allocations: 25.62 kB / 1.158 GB, free: 31.07 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.7475, allocations: 10.52 kB / 1.158 GB, free: 31.07 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.7475, allocations: 5.812 kB / 1.158 GB, free: 31.07 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.7475, allocations: 37.98 kB / 1.158 GB, free: 31.02 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.7475, allocations: 3.938 kB / 1.158 GB, free: 31.02 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001157/0.7476, allocations: 66.42 kB / 1.158 GB, free: 30.98 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.919e-05/0.7476, allocations: 51.41 kB / 1.158 GB, free: 30.91 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.7e-05/0.7477, allocations: 170.2 kB / 1.158 GB, free: 30.79 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.7477, allocations: 29.7 kB / 1.158 GB, free: 30.76 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.564e-05/0.7478, allocations: 93.89 kB / 1.158 GB, free: 30.67 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 7.404e-06/0.7478, allocations: 2.688 kB / 1.158 GB, free: 30.67 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.919e-05/0.7478, allocations: 24.81 kB / 1.158 GB, free: 30.65 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.428e-05/0.7478, allocations: 325 kB / 1.159 GB, free: 30.33 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.982e-05/0.7479, allocations: 36.36 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.042e-05/0.7479, allocations: 43.77 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.678e-05/0.748, allocations: 70.56 kB / 1.159 GB, free: 30.29 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.748, allocations: 0 / 1.159 GB, free: 30.29 MB / 1.076 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001048/0.7481, allocations: 128.6 kB / 1.159 GB, free: 30.24 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.7481, allocations: 9.406 kB / 1.159 GB, free: 30.24 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.7481, allocations: 3.938 kB / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.7481, allocations: 2.562 kB / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.749e-06/0.7481, allocations: 0 / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.7481, allocations: 0 / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.31e-05/0.7481, allocations: 14.42 kB / 1.159 GB, free: 30.22 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.7481, allocations: 0 / 1.159 GB, free: 30.22 MB / 1.076 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 7.078e-05/0.7482, allocations: 123.3 kB / 1.159 GB, free: 30.11 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.958e-06/0.7482, allocations: 10.84 kB / 1.159 GB, free: 30.1 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.7483, allocations: 74.22 kB / 1.159 GB, free: 30.04 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.7483, allocations: 0 / 1.159 GB, free: 30.04 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.7483, allocations: 0 / 1.159 GB, free: 30.04 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.7483, allocations: 3.281 kB / 1.159 GB, free: 30.04 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.86e-05/0.7483, allocations: 118.3 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.7483, allocations: 0 / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-06/0.7484, allocations: 0 / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.7484, allocations: 3.328 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-06/0.7484, allocations: 3.219 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7484, allocations: 3.938 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.7484, allocations: 3.938 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.041e-05/0.7484, allocations: 80.75 kB / 1.159 GB, free: 29.83 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 9.498e-06/0.7484, allocations: 6.516 kB / 1.159 GB, free: 29.83 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.7484, allocations: 4 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.259e-05/0.7484, allocations: 7.547 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.737e-06/0.7485, allocations: 2.531 kB / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.7485, allocations: 0 / 1.159 GB, free: 29.82 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.455e-05/0.7485, allocations: 122.8 kB / 1.159 GB, free: 29.74 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.7485, allocations: 0 / 1.159 GB, free: 29.74 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002779/0.7488, allocations: 89 kB / 1.159 GB, free: 29.72 MB / 1.076 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.0004189/0.7492, allocations: 233.7 kB / 1.16 GB, free: 29.6 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001234/0.7493, allocations: 97.31 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.7493, allocations: 0 / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.259e-05/0.7493, allocations: 12.19 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.7495, allocations: 128 / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001906/0.7497, allocations: 169.1 kB / 1.16 GB, free: 29.42 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.985e-05/0.7497, allocations: 85.27 kB / 1.16 GB, free: 29.34 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.499e-05/0.7497, allocations: 2.5 kB / 1.16 GB, free: 29.34 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.151e-05/0.7497, allocations: 8.5 kB / 1.16 GB, free: 29.33 MB / 1.076 GB Notification: Performance of SimCode: time 3.1e-07/0.7497, allocations: 0 / 1.16 GB, free: 29.33 MB / 1.076 GB Notification: Performance of Templates: time 0.004426/0.7542, allocations: 2.18 MB / 1.162 GB, free: 29.13 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.204739170032553]