Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001862/0.001862, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.002377/0.002377, allocations: 215.8 kB / 23.01 MB, free: 4.566 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.455/1.455, allocations: 230.6 MB / 256.8 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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 3.134/3.134, allocations: 0.49 GB / 0.7958 GB, free: 33.26 MB / 0.6231 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [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.00212/0.00212, allocations: 68.09 kB / 1.155 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.4427, allocations: 176.1 MB / 1.327 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001734/0.4444, allocations: 0.5263 MB / 1.328 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002595/0.447, allocations: 1.693 MB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.206e-05/0.447, allocations: 0 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002039/0.4472, allocations: 67.84 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.978e-05/0.4473, allocations: 27.95 kB / 1.329 GB, free: 15.15 MB / 1.029 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.0009673/0.4482, allocations: 280.5 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.755e-05/0.4483, allocations: 31.89 kB / 1.33 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.4484, allocations: 4 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.477e-05/0.4484, allocations: 27.91 kB / 1.33 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.702e-05/0.4485, allocations: 47.94 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.4485, allocations: 0 / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000802/0.4493, allocations: 499.1 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.704e-05/0.4493, allocations: 27.86 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.588e-05/0.4494, allocations: 23.75 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.4498, allocations: 311.1 kB / 1.331 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4498, allocations: 0 / 1.331 GB, free: 13.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4498, allocations: 4 kB / 1.331 GB, free: 13.92 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.4499, allocations: 3.938 kB / 1.331 GB, free: 13.92 MB / 1.029 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.0004894/0.4503, allocations: 361.3 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.4504, allocations: 11.97 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.618e-05/0.4504, allocations: 12.84 kB / 1.331 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.4506, allocations: 130.4 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.4506, allocations: 384 / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.4506, allocations: 384 / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/0.4507, allocations: 46 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.4507, allocations: 4 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.4507, allocations: 0 / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4507, allocations: 3.938 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.281e-05/0.4508, allocations: 19.98 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.451, allocations: 160.7 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.65e-05/0.451, allocations: 26.52 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.896e-05/0.4511, allocations: 16.91 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.4511, allocations: 12 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.4511, allocations: 38.5 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4511, allocations: 0 / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001572/0.4513, allocations: 73.52 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4513, allocations: 51.41 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.4515, allocations: 206.3 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.4516, allocations: 25.7 kB / 1.332 GB, free: 12.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.4516, allocations: 104.2 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.261e-05/0.4516, allocations: 7.938 kB / 1.332 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.4517, allocations: 33.7 kB / 1.332 GB, free: 12.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.4518, allocations: 326.8 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.05e-05/0.4519, allocations: 51.97 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.028e-05/0.452, allocations: 51.98 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.4521, allocations: 102.7 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.4521, allocations: 4 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001999/0.4523, allocations: 161.5 kB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.4523, allocations: 12 kB / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4523, allocations: 0 / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.4523, allocations: 0 / 1.333 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.727e-05/0.4523, allocations: 4 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.4524, allocations: 3.984 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.797e-05/0.4524, allocations: 11.89 kB / 1.333 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-06/0.4524, allocations: 4 kB / 1.333 GB, free: 11.7 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001802/0.4526, allocations: 130.3 kB / 1.333 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/0.4526, allocations: 15.84 kB / 1.333 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.4527, allocations: 70.17 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.4527, allocations: 0 / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4527, allocations: 0 / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.4527, allocations: 0 / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.4529, allocations: 152.7 kB / 1.333 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4529, allocations: 3.938 kB / 1.333 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.863e-06/0.4529, allocations: 7.938 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.4529, allocations: 3.938 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.4529, allocations: 0 / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4529, allocations: 4.031 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4529, allocations: 3.984 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.453, allocations: 81.03 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.675e-05/0.453, allocations: 11.89 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.453, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.332e-05/0.453, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.794e-05/0.4531, allocations: 8 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.4531, allocations: 4.031 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001289/0.4532, allocations: 147.1 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4532, allocations: 0 / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003594/0.4536, allocations: 91.8 kB / 1.333 GB, free: 10.89 MB / 1.029 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.000561/0.4541, allocations: 243.4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001873/0.4543, allocations: 117.6 kB / 1.334 GB, free: 10.54 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4543, allocations: 0 / 1.334 GB, free: 10.54 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.786e-05/0.4543, allocations: 8 kB / 1.334 GB, free: 10.54 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001533/0.4545, allocations: 5.406 kB / 1.334 GB, free: 10.53 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003883/0.4549, allocations: 239.6 kB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.4552, allocations: 0.7041 MB / 1.335 GB, free: 9.535 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.4552, allocations: 11.56 kB / 1.335 GB, free: 9.523 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.4552, allocations: 0 / 1.335 GB, free: 9.523 MB / 1.029 GB Notification: Performance of Templates: time 0.005237/0.4605, allocations: 2.462 MB / 1.337 GB, free: 7.059 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 13.984390527999494]