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.001797/0.001797, 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.002079/0.002079, allocations: 159.5 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.433/1.433, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.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 2.717/2.717, allocations: 377.9 MB / 0.6228 GB, free: 12.57 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_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.00206/0.00206, allocations: 63.89 kB / 0.9819 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7421/0.7441, allocations: 176.1 MB / 1.154 GB, free: 33.29 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001419/0.7456, allocations: 0.5225 MB / 1.154 GB, free: 32.97 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.7471, allocations: 1.61 MB / 1.156 GB, free: 31.86 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.599e-05/0.7472, allocations: 3.938 kB / 1.156 GB, free: 31.86 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.7473, allocations: 59.28 kB / 1.156 GB, free: 31.86 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 2.839e-05/0.7473, allocations: 36.5 kB / 1.156 GB, free: 31.84 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.0007392/0.7481, allocations: 278.4 kB / 1.156 GB, free: 31.74 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 6.392e-05/0.7482, allocations: 33.05 kB / 1.156 GB, free: 31.73 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.126e-05/0.7482, allocations: 0 / 1.156 GB, free: 31.73 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 3.088e-05/0.7482, allocations: 35.45 kB / 1.156 GB, free: 31.72 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 5.329e-05/0.7483, allocations: 42.97 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.7483, allocations: 3.984 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005657/0.7488, allocations: 446.1 kB / 1.157 GB, free: 31.59 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 4.285e-05/0.7489, allocations: 28.7 kB / 1.157 GB, free: 31.59 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.105e-05/0.7489, allocations: 17.44 kB / 1.157 GB, free: 31.57 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.7492, allocations: 314.1 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.7492, allocations: 0 / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7492, allocations: 4 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.7492, allocations: 0 / 1.157 GB, free: 31.48 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.0003105/0.7495, allocations: 363 kB / 1.158 GB, free: 31.15 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.76e-05/0.7496, allocations: 8.844 kB / 1.158 GB, free: 31.15 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.7496, allocations: 12.12 kB / 1.158 GB, free: 31.14 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.7497, allocations: 128.8 kB / 1.158 GB, free: 31 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.06e-06/0.7497, allocations: 3.25 kB / 1.158 GB, free: 31 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.7497, allocations: 4.359 kB / 1.158 GB, free: 31 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.907e-05/0.7498, allocations: 43.36 kB / 1.158 GB, free: 30.96 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.7498, allocations: 3.422 kB / 1.158 GB, free: 30.96 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.7498, allocations: 0 / 1.158 GB, free: 30.96 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.7498, allocations: 7.938 kB / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.321e-05/0.7498, allocations: 24.11 kB / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001042/0.7499, allocations: 138.8 kB / 1.158 GB, free: 30.81 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 3.639e-05/0.75, allocations: 29.48 kB / 1.158 GB, free: 30.78 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.543e-05/0.75, allocations: 13.11 kB / 1.158 GB, free: 30.77 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.75, allocations: 8.797 kB / 1.158 GB, free: 30.77 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.029e-05/0.75, allocations: 33.41 kB / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.75, allocations: 0 / 1.158 GB, free: 30.73 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001211/0.7501, allocations: 76.2 kB / 1.158 GB, free: 30.69 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.545e-05/0.7502, allocations: 55.53 kB / 1.158 GB, free: 30.62 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.7503, allocations: 213.2 kB / 1.158 GB, free: 30.49 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.681e-06/0.7503, allocations: 25.7 kB / 1.158 GB, free: 30.46 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.186e-05/0.7503, allocations: 108.8 kB / 1.158 GB, free: 30.36 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 7.534e-06/0.7503, allocations: 5.609 kB / 1.158 GB, free: 30.36 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.7504, allocations: 27.23 kB / 1.158 GB, free: 30.34 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.617e-05/0.7504, allocations: 323.2 kB / 1.159 GB, free: 30.02 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.881e-05/0.7504, allocations: 52.7 kB / 1.159 GB, free: 30.01 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.772e-05/0.7505, allocations: 59.66 kB / 1.159 GB, free: 30 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.777e-05/0.7505, allocations: 91.86 kB / 1.159 GB, free: 29.98 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.7506, allocations: 0 / 1.159 GB, free: 29.98 MB / 1.076 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001274/0.7507, allocations: 172.2 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 9.918e-06/0.7507, allocations: 8.328 kB / 1.159 GB, free: 29.91 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.7507, allocations: 6.375 kB / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.7507, allocations: 0 / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.071e-05/0.7507, allocations: 0 / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.467e-06/0.7507, allocations: 0 / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.304e-05/0.7508, allocations: 10.36 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.7508, allocations: 2.875 kB / 1.159 GB, free: 29.89 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: 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 7.641e-05/0.7508, allocations: 129.5 kB / 1.159 GB, free: 29.78 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.152e-05/0.7508, allocations: 14.62 kB / 1.159 GB, free: 29.77 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.32e-05/0.7509, allocations: 73.8 kB / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.7509, allocations: 0 / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.7509, allocations: 0 / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-06/0.7509, allocations: 0 / 1.159 GB, free: 29.71 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.616e-05/0.751, allocations: 136 kB / 1.16 GB, free: 29.58 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.751, allocations: 0 / 1.16 GB, free: 29.58 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.127e-06/0.751, allocations: 0 / 1.16 GB, free: 29.58 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.751, allocations: 0 / 1.16 GB, free: 29.58 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-06/0.751, allocations: 0 / 1.16 GB, free: 29.58 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.751, allocations: 10.47 kB / 1.16 GB, free: 29.57 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.751, allocations: 4.031 kB / 1.16 GB, free: 29.57 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.512e-05/0.7511, allocations: 89.11 kB / 1.16 GB, free: 29.5 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.092e-05/0.7511, allocations: 10.7 kB / 1.16 GB, free: 29.49 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.7511, allocations: 0 / 1.16 GB, free: 29.49 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.378e-05/0.7511, allocations: 7.875 kB / 1.16 GB, free: 29.48 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.477e-05/0.7511, allocations: 0 / 1.16 GB, free: 29.48 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.7511, allocations: 2.969 kB / 1.16 GB, free: 29.48 MB / 1.076 GB Notification: Performance of sorting global known variables: time 7.516e-05/0.7512, allocations: 153.4 kB / 1.16 GB, free: 29.39 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7512, allocations: 0 / 1.16 GB, free: 29.39 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002777/0.7515, allocations: 88.61 kB / 1.16 GB, free: 29.37 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.0004296/0.7519, allocations: 236.6 kB / 1.16 GB, free: 29.24 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001339/0.752, allocations: 112.7 kB / 1.16 GB, free: 29.2 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.752, allocations: 0 / 1.16 GB, free: 29.2 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.339e-05/0.752, allocations: 20.19 kB / 1.16 GB, free: 29.19 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.7522, allocations: 9.406 kB / 1.16 GB, free: 29.19 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002152/0.7524, allocations: 213 kB / 1.16 GB, free: 29.04 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.521e-05/0.7524, allocations: 89.75 kB / 1.161 GB, free: 28.97 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.432e-05/0.7525, allocations: 0 / 1.161 GB, free: 28.97 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.191e-05/0.7525, allocations: 11.38 kB / 1.161 GB, free: 28.96 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/0.7525, allocations: 0 / 1.161 GB, free: 28.96 MB / 1.076 GB Notification: Performance of Templates: time 0.00449/0.757, allocations: 2.179 MB / 1.163 GB, free: 28.76 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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: 8.151353792054579]