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.001577/0.001577, allocations: 77.23 kB / 19.76 MB, free: 2.031 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.001648/0.001648, allocations: 158.3 kB / 23.01 MB, free: 4.941 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.403/1.403, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 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.84/2.84, allocations: 394.2 MB / 0.6387 GB, free: 11.92 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.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: 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.002136/0.002136, allocations: 68.11 kB / 1.009 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7408/0.7429, allocations: 181.8 MB / 1.187 GB, free: 16.19 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001622/0.7445, allocations: 0.5298 MB / 1.187 GB, free: 15.87 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001967/0.7465, allocations: 1.609 MB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.628e-05/0.7465, allocations: 5.031 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.7467, allocations: 16.12 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.7467, allocations: 13.06 kB / 1.189 GB, free: 14.75 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.0009723/0.7477, allocations: 280 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 6.494e-05/0.7477, allocations: 25.34 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.455e-05/0.7478, allocations: 6.531 kB / 1.189 GB, free: 14.63 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 3.013e-05/0.7478, allocations: 13.64 kB / 1.189 GB, free: 14.63 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 4.232e-05/0.7478, allocations: 19.09 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.7478, allocations: 5.188 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00078/0.7486, allocations: 448.2 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.065e-05/0.7487, allocations: 18.81 kB / 1.189 GB, free: 14.5 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.98e-05/0.7487, allocations: 15.98 kB / 1.189 GB, free: 14.48 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0004297/0.7491, allocations: 299.2 kB / 1.19 GB, free: 14.4 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.7491, allocations: 0 / 1.19 GB, free: 14.4 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.062e-06/0.7491, allocations: 0 / 1.19 GB, free: 14.4 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.7491, allocations: 0.9688 kB / 1.19 GB, free: 14.4 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.00032/0.7495, allocations: 335.7 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.7495, allocations: 14.84 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.7495, allocations: 7.109 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.7496, allocations: 121.1 kB / 1.19 GB, free: 13.95 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.7496, allocations: 1.625 kB / 1.19 GB, free: 13.95 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.7496, allocations: 1.531 kB / 1.19 GB, free: 13.95 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.617e-05/0.7497, allocations: 40.3 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.7497, allocations: 1.094 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.7497, allocations: 3.938 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.7497, allocations: 0 / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.756e-05/0.7498, allocations: 21.14 kB / 1.19 GB, free: 13.9 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001039/0.7499, allocations: 129.2 kB / 1.19 GB, free: 13.77 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 3.945e-05/0.7499, allocations: 31.5 kB / 1.19 GB, free: 13.73 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.73e-05/0.7499, allocations: 13.22 kB / 1.19 GB, free: 13.73 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.75, allocations: 5.328 kB / 1.19 GB, free: 13.73 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.75, allocations: 33.14 kB / 1.19 GB, free: 13.69 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.75, allocations: 0 / 1.19 GB, free: 13.69 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001254/0.7501, allocations: 67.05 kB / 1.191 GB, free: 13.64 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.915e-05/0.7501, allocations: 52.75 kB / 1.191 GB, free: 13.58 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.7502, allocations: 170.3 kB / 1.191 GB, free: 13.46 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.7503, allocations: 27.55 kB / 1.191 GB, free: 13.43 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.961e-05/0.7503, allocations: 101.7 kB / 1.191 GB, free: 13.34 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.245e-06/0.7503, allocations: 5.281 kB / 1.191 GB, free: 13.33 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.7503, allocations: 26.03 kB / 1.191 GB, free: 13.31 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.926e-05/0.7504, allocations: 325.1 kB / 1.191 GB, free: 12.99 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.899e-05/0.7504, allocations: 40.94 kB / 1.191 GB, free: 12.98 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.908e-05/0.7505, allocations: 38 kB / 1.191 GB, free: 12.98 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.155e-05/0.7505, allocations: 75.38 kB / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.7505, allocations: 0 / 1.191 GB, free: 12.95 MB / 1.076 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001281/0.7507, allocations: 123.7 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.7507, allocations: 5.125 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.7507, allocations: 6.031 kB / 1.192 GB, free: 12.9 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.7507, allocations: 4.062 kB / 1.192 GB, free: 12.9 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.134e-05/0.7507, allocations: 2.516 kB / 1.192 GB, free: 12.9 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.7507, allocations: 0 / 1.192 GB, free: 12.9 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.135e-05/0.7507, allocations: 9.203 kB / 1.192 GB, free: 12.89 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.7507, allocations: 2.109 kB / 1.192 GB, free: 12.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: 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 9.139e-05/0.7508, allocations: 125.9 kB / 1.192 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.7508, allocations: 6.172 kB / 1.192 GB, free: 12.77 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.167e-05/0.7509, allocations: 62.75 kB / 1.192 GB, free: 12.72 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.7509, allocations: 1.094 kB / 1.192 GB, free: 12.72 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.7509, allocations: 4.031 kB / 1.192 GB, free: 12.72 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.7509, allocations: 0.5625 kB / 1.192 GB, free: 12.72 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.884e-05/0.751, allocations: 125.1 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.751, allocations: 0 / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.23e-06/0.751, allocations: 1.938 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.751, allocations: 0 / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.751, allocations: 0.6094 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.751, allocations: 5.219 kB / 1.192 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.751, allocations: 0 / 1.192 GB, free: 12.58 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.061e-05/0.7511, allocations: 81.97 kB / 1.192 GB, free: 12.51 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.025e-05/0.7511, allocations: 15.31 kB / 1.192 GB, free: 12.5 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.7511, allocations: 2 kB / 1.192 GB, free: 12.5 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.7511, allocations: 3.938 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/0.7511, allocations: 2.375 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.7511, allocations: 1.5 kB / 1.192 GB, free: 12.49 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.664e-05/0.7512, allocations: 119.5 kB / 1.192 GB, free: 12.41 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.7512, allocations: 0 / 1.192 GB, free: 12.41 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003116/0.7515, allocations: 89.14 kB / 1.192 GB, free: 12.39 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.0004663/0.752, allocations: 242.7 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001481/0.7521, allocations: 92.98 kB / 1.192 GB, free: 12.23 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.7521, allocations: 3.938 kB / 1.192 GB, free: 12.22 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.596e-05/0.7521, allocations: 10.89 kB / 1.192 GB, free: 12.22 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.7523, allocations: 5.062 kB / 1.192 GB, free: 12.22 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.7525, allocations: 166.8 kB / 1.193 GB, free: 12.09 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.917e-05/0.7525, allocations: 84.31 kB / 1.193 GB, free: 12.01 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.617e-05/0.7525, allocations: 2.031 kB / 1.193 GB, free: 12.01 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.306e-05/0.7526, allocations: 10.7 kB / 1.193 GB, free: 12 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/0.7526, allocations: 0 / 1.193 GB, free: 12 MB / 1.076 GB Notification: Performance of Templates: time 0.005378/0.7579, allocations: 2.17 MB / 1.195 GB, free: 11.8 MB / 1.076 GB " [Timeout remaining time 299] 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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.357380004017614]