Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 104.1 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 192.4 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 249.9 MB, free: 3.211 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.8/2.8, allocations: 476.7 MB / 0.7634 GB, free: 15.22 MB / 0.6075 GB [Timeout remaining time 86] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] Notification: Performance of FrontEnd - loaded program: time 0.002774/0.002774, allocations: 67.89 kB / 1.108 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.254/1.257, allocations: 168.7 MB / 1.272 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001917/1.258, allocations: 0.5177 MB / 1.273 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002369/1.261, allocations: 1.621 MB / 1.274 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.79e-05/1.261, allocations: 3.938 kB / 1.274 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002147/1.261, allocations: 61.59 kB / 1.275 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.5e-05/1.261, allocations: 28.06 kB / 1.275 GB, free: 6.484 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0009334/1.262, allocations: 249.1 kB / 1.275 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.96e-05/1.262, allocations: 36.52 kB / 1.275 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.323e-05/1.262, allocations: 1.5 kB / 1.275 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.492e-05/1.262, allocations: 18.67 kB / 1.275 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.723e-05/1.262, allocations: 46.89 kB / 1.275 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/1.262, allocations: 1.094 kB / 1.275 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006574/1.263, allocations: 367.4 kB / 1.275 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.1e-05/1.263, allocations: 26.45 kB / 1.275 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.449e-05/1.263, allocations: 26.47 kB / 1.275 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000492/1.264, allocations: 293 kB / 1.276 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/1.264, allocations: 5.406 kB / 1.276 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.024e-06/1.264, allocations: 0 / 1.276 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.752e-06/1.264, allocations: 0.6562 kB / 1.276 GB, free: 6.141 MB / 0.9981 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.0004674/1.264, allocations: 442 kB / 1.276 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/1.264, allocations: 13.56 kB / 1.276 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/1.264, allocations: 8.609 kB / 1.276 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/1.264, allocations: 189.9 kB / 1.276 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-06/1.264, allocations: 4.375 kB / 1.276 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/1.264, allocations: 1.25 kB / 1.276 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/1.265, allocations: 41.25 kB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/1.265, allocations: 0.6875 kB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/1.265, allocations: 0 / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/1.265, allocations: 1.094 kB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.088e-05/1.265, allocations: 19.69 kB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/1.265, allocations: 184.3 kB / 1.276 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.793e-05/1.265, allocations: 36.34 kB / 1.276 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.638e-05/1.265, allocations: 15.61 kB / 1.276 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.317e-05/1.265, allocations: 6.344 kB / 1.276 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/1.265, allocations: 35.44 kB / 1.277 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/1.265, allocations: 3.938 kB / 1.277 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001806/1.265, allocations: 74.61 kB / 1.277 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/1.265, allocations: 51.41 kB / 1.277 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/1.265, allocations: 214.3 kB / 1.277 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.488e-06/1.265, allocations: 26.58 kB / 1.277 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/1.265, allocations: 109.3 kB / 1.277 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.888e-06/1.265, allocations: 0 / 1.277 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/1.265, allocations: 29.36 kB / 1.277 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.971e-05/1.265, allocations: 327.6 kB / 1.277 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.197e-05/1.266, allocations: 53.69 kB / 1.277 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.547e-05/1.266, allocations: 54 kB / 1.277 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/1.266, allocations: 103.8 kB / 1.278 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/1.266, allocations: 0.6875 kB / 1.278 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002145/1.266, allocations: 161.5 kB / 1.278 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/1.266, allocations: 9.188 kB / 1.278 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/1.266, allocations: 1.969 kB / 1.278 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/1.266, allocations: 5.078 kB / 1.278 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.305e-05/1.266, allocations: 0.75 kB / 1.278 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/1.266, allocations: 4.609 kB / 1.278 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.75e-05/1.266, allocations: 14.02 kB / 1.278 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/1.266, allocations: 1.953 kB / 1.278 GB, free: 4.312 MB / 0.9981 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.0001414/1.266, allocations: 137.8 kB / 1.278 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/1.266, allocations: 12.27 kB / 1.278 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/1.266, allocations: 66.78 kB / 1.278 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/1.266, allocations: 0 / 1.278 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/1.266, allocations: 1.688 kB / 1.278 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/1.266, allocations: 3.938 kB / 1.278 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/1.266, allocations: 178 kB / 1.278 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/1.266, allocations: 1 kB / 1.278 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-06/1.266, allocations: 4.031 kB / 1.278 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/1.266, allocations: 11.03 kB / 1.278 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-06/1.266, allocations: 0 / 1.278 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/1.266, allocations: 1 kB / 1.278 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/1.266, allocations: 0 / 1.278 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.133e-05/1.267, allocations: 81.77 kB / 1.278 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/1.267, allocations: 91.17 kB / 1.278 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/1.267, allocations: 1.469 kB / 1.278 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.401e-05/1.267, allocations: 4.875 kB / 1.278 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.762e-05/1.267, allocations: 7.875 kB / 1.278 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/1.267, allocations: 0.9688 kB / 1.278 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001137/1.267, allocations: 150.4 kB / 1.278 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.267, allocations: 1.031 kB / 1.278 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003923/1.267, allocations: 84.27 kB / 1.278 GB, free: 3.637 MB / 0.9981 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.0005632/1.268, allocations: 234.2 kB / 1.279 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002156/1.268, allocations: 114.1 kB / 1.279 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.268, allocations: 0 / 1.279 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.198e-05/1.268, allocations: 13.78 kB / 1.279 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/1.268, allocations: 7.031 kB / 1.279 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003645/1.268, allocations: 247.6 kB / 1.279 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/1.269, allocations: 0.703 MB / 1.28 GB, free: 2.574 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.491e-05/1.269, allocations: 9.25 kB / 1.28 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of SimCode: time 2.9e-07/1.269, allocations: 0 / 1.28 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of Templates: time 0.005816/1.274, allocations: 2.378 MB / 1.282 GB, free: 2.352 MB / 0.9981 GB [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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