Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/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: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009068/0.0009068, allocations: 87.42 kB / 15.07 MB, free: 1.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009812/0.0009814, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.98/0.98, allocations: 143.4 MB / 434.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004253, allocations: 8 kB / 0.5161 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.208, allocations: 83.42 MB / 0.5975 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0006159/0.2086, allocations: 242.3 kB / 0.5978 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002114/0.2108, allocations: 1.533 MB / 0.5993 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.471e-05/0.2108, allocations: 0 / 0.5993 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.211, allocations: 67.83 kB / 0.5993 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.869e-05/0.211, allocations: 27.95 kB / 0.5994 GB, free: 5.836 MB / 0.4981 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008323/0.2119, allocations: 191.5 kB / 0.5995 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.254e-05/0.212, allocations: 31.91 kB / 0.5996 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.139e-05/0.212, allocations: 3.984 kB / 0.5996 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.708e-05/0.2121, allocations: 23.92 kB / 0.5996 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.097e-05/0.2121, allocations: 31.95 kB / 0.5996 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.2121, allocations: 0 / 0.5996 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005671/0.2127, allocations: 259.5 kB / 0.5999 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.869e-05/0.2128, allocations: 19.98 kB / 0.5999 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/0.2128, allocations: 37.58 kB / 0.5999 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003489/0.2132, allocations: 203.7 kB / 0.6001 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2132, allocations: 4 kB / 0.6001 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2132, allocations: 0 / 0.6001 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.2132, allocations: 0 / 0.6001 GB, free: 5.039 MB / 0.4981 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.0004712/0.2137, allocations: 423 kB / 0.6005 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.2137, allocations: 15.97 kB / 0.6005 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.644e-05/0.2138, allocations: 30.56 kB / 0.6006 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.87e-05/0.2138, allocations: 7.906 kB / 0.6006 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.214, allocations: 191.9 kB / 0.6008 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.214, allocations: 0 / 0.6008 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-06/0.214, allocations: 4 kB / 0.6008 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.93e-05/0.2141, allocations: 41.69 kB / 0.6008 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.2141, allocations: 0 / 0.6008 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.2142, allocations: 4 kB / 0.6008 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2142, allocations: 0 / 0.6008 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.316e-05/0.2142, allocations: 23.98 kB / 0.6008 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000193/0.2144, allocations: 193.4 kB / 0.601 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.241e-05/0.2145, allocations: 34.5 kB / 0.6011 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.361e-05/0.2145, allocations: 16.92 kB / 0.6011 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.2145, allocations: 7.984 kB / 0.6011 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.2146, allocations: 30.56 kB / 0.6011 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.2146, allocations: 0 / 0.6011 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001564/0.2147, allocations: 73.52 kB / 0.6012 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.2148, allocations: 51.41 kB / 0.6012 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.215, allocations: 212 kB / 0.6014 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.215, allocations: 29.83 kB / 0.6015 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.142e-05/0.2151, allocations: 104 kB / 0.6016 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.139e-05/0.2151, allocations: 4 kB / 0.6016 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.2151, allocations: 4 kB / 0.6016 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.2152, allocations: 326.8 kB / 0.6019 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.242e-05/0.2153, allocations: 55.97 kB / 0.6019 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.113e-05/0.2153, allocations: 47.98 kB / 0.602 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.595e-05/0.2154, allocations: 63.97 kB / 0.602 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2154, allocations: 0 / 0.602 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001684/0.2156, allocations: 160.8 kB / 0.6022 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2156, allocations: 11.94 kB / 0.6022 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.2156, allocations: 0 / 0.6022 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2157, allocations: 0 / 0.6022 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.376e-05/0.2157, allocations: 7.938 kB / 0.6022 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.2157, allocations: 0 / 0.6022 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.683e-05/0.2157, allocations: 7.812 kB / 0.6022 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.2157, allocations: 7.938 kB / 0.6022 GB, free: 2.668 MB / 0.4981 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.2159, allocations: 137.8 kB / 0.6024 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.2159, allocations: 11.91 kB / 0.6024 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.216, allocations: 66.23 kB / 0.6024 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.216, allocations: 0 / 0.6024 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.216, allocations: 0 / 0.6024 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.216, allocations: 0 / 0.6024 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001221/0.2162, allocations: 181.6 kB / 0.6026 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2162, allocations: 0 / 0.6026 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.34e-06/0.2162, allocations: 0 / 0.6026 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2162, allocations: 0 / 0.6026 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.2162, allocations: 0 / 0.6026 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2162, allocations: 15.89 kB / 0.6026 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2162, allocations: 0 / 0.6026 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.447e-05/0.2163, allocations: 84.94 kB / 0.6027 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.2164, allocations: 88.97 kB / 0.6028 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.2164, allocations: 0 / 0.6028 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.2164, allocations: 0 / 0.6028 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.337e-06/0.2164, allocations: 0 / 0.6028 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.2164, allocations: 8.031 kB / 0.6028 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001012/0.2165, allocations: 147.2 kB / 0.6029 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2165, allocations: 0 / 0.6029 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003322/0.2169, allocations: 83.98 kB / 0.603 GB, free: 1.758 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007284/0.2176, allocations: 0.7585 MB / 0.6037 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001728/0.2178, allocations: 125.7 kB / 0.6039 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2178, allocations: 4 kB / 0.6039 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.513e-05/0.2178, allocations: 11.98 kB / 0.6039 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.218, allocations: 4.125 kB / 0.6039 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2735/0.4915, allocations: 0.8905 MB / 0.6048 GB, free: 40.38 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.4917, allocations: 0.7075 MB / 0.6054 GB, free: 39.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.078e-05/0.4917, allocations: 0.7812 kB / 0.6054 GB, free: 39.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.451e-05/0.4918, allocations: 27.81 kB / 0.6055 GB, free: 39.68 MB / 0.4981 GB Notification: Performance of SimCode: time 1.102e-06/0.4918, allocations: 0 / 0.6055 GB, free: 39.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.5053, allocations: 3.627 MB / 0.609 GB, free: 39.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001281/0.5055, allocations: 234.5 kB / 0.6092 GB, free: 39.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.237, allocations: 4 kB / 0.6092 GB, free: 39.26 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) Environment - environmentSimulation: