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.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_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.0008187/0.0008187, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.00094/0.00094, allocations: 168.7 kB / 15.95 MB, free: 204 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.436/1.436, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9679/0.9679, allocations: 143.4 MB / 434.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002922, allocations: 8 kB / 0.5161 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1786, allocations: 83.42 MB / 0.5975 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0006672/0.1794, allocations: 246.3 kB / 0.5978 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002014/0.1814, allocations: 1.537 MB / 0.5993 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.269e-05/0.1815, allocations: 3.938 kB / 0.5993 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1816, allocations: 23.92 kB / 0.5993 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.352e-05/0.1816, allocations: 7.984 kB / 0.5993 GB, free: 5.91 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.000676/0.1823, allocations: 191.6 kB / 0.5995 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.758e-05/0.1824, allocations: 19.92 kB / 0.5995 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.1824, allocations: 8 kB / 0.5995 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.975e-05/0.1825, allocations: 11.98 kB / 0.5995 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.738e-05/0.1825, allocations: 11.92 kB / 0.5995 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.1825, allocations: 4 kB / 0.5995 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.183, allocations: 251.5 kB / 0.5998 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.857e-05/0.183, allocations: 19.98 kB / 0.5998 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.1831, allocations: 29.64 kB / 0.5998 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002585/0.1833, allocations: 195.7 kB / 0.6 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1833, allocations: 0 / 0.6 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.1834, allocations: 7.938 kB / 0.6 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.1834, allocations: 0 / 0.6 GB, free: 5.168 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.0004234/0.1838, allocations: 399.3 kB / 0.6004 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1838, allocations: 8.031 kB / 0.6004 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.123e-05/0.1839, allocations: 30.56 kB / 0.6004 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.1839, allocations: 7.906 kB / 0.6005 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.1841, allocations: 186.9 kB / 0.6006 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.1841, allocations: 0 / 0.6006 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-06/0.1841, allocations: 0 / 0.6006 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.701e-05/0.1842, allocations: 37.7 kB / 0.6007 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1842, allocations: 7.922 kB / 0.6007 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.1842, allocations: 0 / 0.6007 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1842, allocations: 0 / 0.6007 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.703e-05/0.1843, allocations: 16 kB / 0.6007 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001842/0.1845, allocations: 185.4 kB / 0.6009 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/0.1845, allocations: 26.56 kB / 0.6009 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.474e-05/0.1845, allocations: 16.91 kB / 0.6009 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.1846, allocations: 8 kB / 0.6009 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.1846, allocations: 34.56 kB / 0.6009 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 3.406e-06/0.1846, allocations: 0 / 0.6009 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001428/0.1848, allocations: 65.52 kB / 0.601 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.1848, allocations: 51.41 kB / 0.6011 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.185, allocations: 168.3 kB / 0.6012 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.185, allocations: 25.7 kB / 0.6012 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.185, allocations: 100.2 kB / 0.6013 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.975e-06/0.185, allocations: 0 / 0.6013 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-06/0.1851, allocations: 0 / 0.6013 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1852, allocations: 326.8 kB / 0.6017 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.161e-05/0.1852, allocations: 39.98 kB / 0.6017 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.82e-05/0.1853, allocations: 35.98 kB / 0.6017 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.557e-05/0.1854, allocations: 47.92 kB / 0.6018 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1854, allocations: 0 / 0.6018 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001723/0.1855, allocations: 125.5 kB / 0.6019 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1856, allocations: 8 kB / 0.6019 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.1856, allocations: 4.062 kB / 0.6019 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1856, allocations: 0 / 0.6019 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.227e-05/0.1856, allocations: 0 / 0.6019 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1856, allocations: 0 / 0.6019 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.569e-05/0.1857, allocations: 15.83 kB / 0.6019 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-06/0.1857, allocations: 0 / 0.6019 GB, free: 3.008 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],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.0001302/0.1858, allocations: 129.7 kB / 0.602 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.188e-05/0.1858, allocations: 11.91 kB / 0.602 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.1859, allocations: 57.5 kB / 0.6021 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1859, allocations: 0 / 0.6021 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1859, allocations: 0 / 0.6021 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.186, allocations: 4 kB / 0.6021 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.1861, allocations: 173.6 kB / 0.6023 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1861, allocations: 0 / 0.6023 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.024e-05/0.1861, allocations: 4 kB / 0.6023 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1861, allocations: 0 / 0.6023 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-06/0.1861, allocations: 0 / 0.6023 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1861, allocations: 0 / 0.6023 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.1862, allocations: 8.031 kB / 0.6023 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.363e-05/0.1862, allocations: 77.02 kB / 0.6024 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.1863, allocations: 88.97 kB / 0.6024 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1863, allocations: 0 / 0.6024 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.1863, allocations: 3.938 kB / 0.6024 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.264e-05/0.1863, allocations: 3.938 kB / 0.6025 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.1864, allocations: 4 kB / 0.6025 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.213e-05/0.1864, allocations: 128.5 kB / 0.6026 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1865, allocations: 0 / 0.6026 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002984/0.1868, allocations: 83.98 kB / 0.6027 GB, free: 2.145 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.0007042/0.1875, allocations: 0.7392 MB / 0.6034 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001571/0.1876, allocations: 101.7 kB / 0.6035 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1876, allocations: 3.938 kB / 0.6035 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.217e-05/0.1877, allocations: 11.94 kB / 0.6035 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.1878, allocations: 4 kB / 0.6035 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008454/0.1887, allocations: 0.6655 MB / 0.6041 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2703/0.4589, allocations: 0.6905 MB / 0.6048 GB, free: 40.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.671e-05/0.459, allocations: 4.766 kB / 0.6048 GB, free: 40.06 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.819e-05/0.459, allocations: 17.59 kB / 0.6048 GB, free: 40.05 MB / 0.4981 GB Notification: Performance of SimCode: time 1.102e-06/0.4591, allocations: 0 / 0.6048 GB, free: 40.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.4722, allocations: 3.257 MB / 0.608 GB, free: 39.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.4724, allocations: 240 kB / 0.6083 GB, free: 39.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/2.219, allocations: 0 / 0.6083 GB, free: 39.65 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/linux/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) Environment - environmentSimulation: