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: translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005103/0.005103, allocations: 102 kB / 15.73 MB, free: 6.043 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.001145/0.001145, allocations: 188.1 kB / 16.67 MB, free: 5.977 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.312 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 0.9468/0.9468, allocations: 143 MB / 433.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67.91 kB / 0.5955 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4181, allocations: 82.03 MB / 0.6756 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001602/0.4198, allocations: 0.5094 MB / 0.6761 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002015/0.4218, allocations: 1.616 MB / 0.6777 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.623e-05/0.4219, allocations: 1.031 kB / 0.6777 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.422, allocations: 24.97 kB / 0.6777 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.608e-05/0.4221, allocations: 9.766 kB / 0.6777 GB, free: 15.8 MB / 0.5137 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.0009409/0.423, allocations: 237 kB / 0.6779 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.4231, allocations: 23.34 kB / 0.678 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 6.658e-05/0.4232, allocations: 6.078 kB / 0.678 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.346e-05/0.4232, allocations: 14.52 kB / 0.678 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.974e-05/0.4233, allocations: 12.12 kB / 0.678 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.4233, allocations: 5.062 kB / 0.678 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006815/0.424, allocations: 345 kB / 0.6783 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.767e-05/0.4241, allocations: 14.2 kB / 0.6783 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.643e-05/0.4241, allocations: 19.72 kB / 0.6784 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.4246, allocations: 274.9 kB / 0.6786 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4246, allocations: 5.188 kB / 0.6786 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4246, allocations: 0 / 0.6786 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.4246, allocations: 0 / 0.6786 GB, free: 15.25 MB / 0.5137 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.0004573/0.4251, allocations: 407.2 kB / 0.679 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.4251, allocations: 9.219 kB / 0.679 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.759e-05/0.4251, allocations: 7.562 kB / 0.679 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.4253, allocations: 189.5 kB / 0.6792 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.4253, allocations: 4.375 kB / 0.6792 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.4253, allocations: 2 kB / 0.6792 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.427e-05/0.4254, allocations: 45.61 kB / 0.6793 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.4254, allocations: 0 / 0.6793 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.4255, allocations: 1.062 kB / 0.6793 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.4255, allocations: 4 kB / 0.6793 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.214e-05/0.4255, allocations: 17.41 kB / 0.6793 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001661/0.4257, allocations: 173.9 kB / 0.6794 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.557e-05/0.4257, allocations: 26.12 kB / 0.6795 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.029e-05/0.4258, allocations: 12.55 kB / 0.6795 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.4258, allocations: 4.188 kB / 0.6795 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.4258, allocations: 43.69 kB / 0.6795 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.724e-06/0.4258, allocations: 4 kB / 0.6795 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.426, allocations: 66.45 kB / 0.6796 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.426, allocations: 51.41 kB / 0.6796 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.4262, allocations: 170.7 kB / 0.6798 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.4262, allocations: 25.7 kB / 0.6798 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.807e-05/0.4263, allocations: 91.73 kB / 0.6799 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.4263, allocations: 4.906 kB / 0.6799 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.4264, allocations: 30.55 kB / 0.68 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4265, allocations: 326.9 kB / 0.6803 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.1e-05/0.4266, allocations: 36.86 kB / 0.6803 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.936e-05/0.4266, allocations: 40.05 kB / 0.6803 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.968e-05/0.4267, allocations: 65.11 kB / 0.6804 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4267, allocations: 0 / 0.6804 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001804/0.4269, allocations: 132.1 kB / 0.6805 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.427, allocations: 12.48 kB / 0.6805 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.427, allocations: 2.219 kB / 0.6805 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.427, allocations: 0 / 0.6805 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.478e-05/0.427, allocations: 5.375 kB / 0.6805 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.427, allocations: 0 / 0.6805 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.59e-05/0.4271, allocations: 6.031 kB / 0.6806 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.4271, allocations: 1.125 kB / 0.6806 GB, free: 13.42 MB / 0.5137 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.0001485/0.4272, allocations: 120.8 kB / 0.6807 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.4273, allocations: 10.12 kB / 0.6807 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.4274, allocations: 65.08 kB / 0.6807 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.4274, allocations: 4.031 kB / 0.6807 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4274, allocations: 0 / 0.6807 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4274, allocations: 1.062 kB / 0.6807 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.4276, allocations: 170.5 kB / 0.6809 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4276, allocations: 3.984 kB / 0.6809 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-06/0.4276, allocations: 4.969 kB / 0.6809 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4276, allocations: 3.938 kB / 0.6809 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.4276, allocations: 1.094 kB / 0.6809 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4276, allocations: 0 / 0.6809 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4276, allocations: 1.094 kB / 0.6809 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.737e-05/0.4277, allocations: 80.12 kB / 0.681 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.4278, allocations: 87.2 kB / 0.6811 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.4278, allocations: 1.125 kB / 0.6811 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.4278, allocations: 0 / 0.6811 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/0.4278, allocations: 4.828 kB / 0.6811 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.4278, allocations: 0.875 kB / 0.6811 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001053/0.4279, allocations: 126 kB / 0.6812 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4279, allocations: 0 / 0.6812 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003756/0.4283, allocations: 92.55 kB / 0.6813 GB, free: 12.73 MB / 0.5137 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.0005242/0.4289, allocations: 232.5 kB / 0.6815 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001959/0.4291, allocations: 100.5 kB / 0.6816 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4291, allocations: 4.062 kB / 0.6816 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.72e-05/0.4291, allocations: 12.59 kB / 0.6816 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.4293, allocations: 5.312 kB / 0.6816 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003262/0.4296, allocations: 156.6 kB / 0.6818 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.4299, allocations: 0.6909 MB / 0.6825 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.009e-05/0.4299, allocations: 1.188 kB / 0.6825 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.466e-05/0.4299, allocations: 8.594 kB / 0.6825 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of SimCode: time 1.923e-06/0.43, allocations: 1.25 kB / 0.6825 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of Templates: time 0.005422/0.4354, allocations: 2.099 MB / 0.6845 GB, free: 10.6 MB / 0.5137 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (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 & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)