Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.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.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.001782/0.001782, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00204/0.00204, allocations: 198.5 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.01/1.01, allocations: 143 MB / 433.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 75.89 kB / 0.5143 GB, free: 11.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1483, allocations: 82.03 MB / 0.5944 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.002071/0.1504, allocations: 0.5146 MB / 0.5949 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002501/0.1529, allocations: 1.602 MB / 0.5965 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/0.153, allocations: 0 / 0.5965 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.1531, allocations: 15.92 kB / 0.5965 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.027e-05/0.1532, allocations: 15.98 kB / 0.5965 GB, free: 7.375 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/IBPSA/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.0009373/0.1542, allocations: 255.2 kB / 0.5967 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.145e-05/0.1542, allocations: 23.92 kB / 0.5967 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.1543, allocations: 4 kB / 0.5968 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.842e-05/0.1543, allocations: 11.92 kB / 0.5968 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.271e-05/0.1544, allocations: 19.91 kB / 0.5968 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.1544, allocations: 4 kB / 0.5968 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005318/0.1549, allocations: 287.6 kB / 0.5971 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.251e-05/0.155, allocations: 12 kB / 0.5971 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.804e-05/0.155, allocations: 23.8 kB / 0.5971 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.1555, allocations: 275.4 kB / 0.5974 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.1555, allocations: 0 / 0.5974 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1555, allocations: 4 kB / 0.5974 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.1555, allocations: 0 / 0.5974 GB, free: 6.473 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.0004829/0.156, allocations: 403.4 kB / 0.5977 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1561, allocations: 12.03 kB / 0.5978 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.173e-05/0.1561, allocations: 30.75 kB / 0.5978 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.996e-05/0.1561, allocations: 8.844 kB / 0.5978 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.1563, allocations: 188.1 kB / 0.598 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.1564, allocations: 4.375 kB / 0.598 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.1564, allocations: 4.312 kB / 0.598 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.1565, allocations: 37.83 kB / 0.598 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1565, allocations: 0 / 0.598 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.1565, allocations: 0 / 0.598 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.1565, allocations: 0 / 0.598 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.52e-05/0.1566, allocations: 19.98 kB / 0.598 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002032/0.1568, allocations: 173.6 kB / 0.5982 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.276e-05/0.1568, allocations: 26.58 kB / 0.5982 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.882e-05/0.1569, allocations: 20.84 kB / 0.5983 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.1569, allocations: 4 kB / 0.5983 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1569, allocations: 38.5 kB / 0.5983 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.157, allocations: 4 kB / 0.5983 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.1571, allocations: 57.59 kB / 0.5983 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.1571, allocations: 55.39 kB / 0.5984 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1573, allocations: 165.2 kB / 0.5986 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.1573, allocations: 25.7 kB / 0.5986 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.964e-05/0.1574, allocations: 100 kB / 0.5987 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.131e-05/0.1574, allocations: 4 kB / 0.5987 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.1574, allocations: 25.7 kB / 0.5987 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.696e-05/0.1575, allocations: 323 kB / 0.599 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.348e-05/0.1576, allocations: 47.91 kB / 0.5991 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.93e-05/0.1576, allocations: 39.92 kB / 0.5991 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.504e-05/0.1577, allocations: 68.83 kB / 0.5992 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1577, allocations: 3.938 kB / 0.5992 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001456/0.1579, allocations: 125.5 kB / 0.5993 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1579, allocations: 4 kB / 0.5993 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.1579, allocations: 0 / 0.5993 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1579, allocations: 0 / 0.5993 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.446e-05/0.1579, allocations: 8.047 kB / 0.5993 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.158, allocations: 4 kB / 0.5993 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.582e-05/0.158, allocations: 7.844 kB / 0.5993 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.158, allocations: 3.938 kB / 0.5993 GB, free: 4.242 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: 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 0.0001349/0.1581, allocations: 133.3 kB / 0.5994 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.1582, allocations: 11.84 kB / 0.5995 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.1583, allocations: 53.56 kB / 0.5995 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-06/0.1583, allocations: 4 kB / 0.5995 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1583, allocations: 4.031 kB / 0.5995 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1583, allocations: 3.984 kB / 0.5995 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.1584, allocations: 165.7 kB / 0.5997 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1584, allocations: 0 / 0.5997 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.662e-06/0.1585, allocations: 3.938 kB / 0.5997 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1585, allocations: 4 kB / 0.5997 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-06/0.1585, allocations: 0 / 0.5997 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1585, allocations: 3.984 kB / 0.5997 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1585, allocations: 0 / 0.5997 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.076e-05/0.1586, allocations: 84.97 kB / 0.5998 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.1586, allocations: 84.95 kB / 0.5998 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.1586, allocations: 4 kB / 0.5999 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.147e-05/0.1587, allocations: 0 / 0.5999 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/0.1587, allocations: 3.984 kB / 0.5999 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1587, allocations: 3.938 kB / 0.5999 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.736e-05/0.1588, allocations: 131 kB / 0.6 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1588, allocations: 0 / 0.6 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000357/0.1592, allocations: 92.02 kB / 0.6001 GB, free: 3.371 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 (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.0007613/0.1599, allocations: 0.729 MB / 0.6008 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001557/0.1601, allocations: 105.7 kB / 0.6009 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1601, allocations: 0 / 0.6009 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.563e-05/0.1601, allocations: 8 kB / 0.6009 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.1603, allocations: 3.266 kB / 0.6009 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.1617, allocations: 1.536 MB / 0.6024 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.162, allocations: 0.7001 MB / 0.6031 GB, free: 172 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.912e-05/0.162, allocations: 0 / 0.6031 GB, free: 172 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.162, allocations: 15.44 kB / 0.6031 GB, free: 160 kB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.162, allocations: 0 / 0.6031 GB, free: 160 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2474/0.4095, allocations: 3.46 MB / 0.6065 GB, free: 43.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/7.668, allocations: 6.859 kB / 0.6065 GB, free: 43.36 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)