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.001072/0.001072, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009245/0.0009245, allocations: 177.3 kB / 15.95 MB, free: 216 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.357/1.357, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.035/1.035, allocations: 143.3 MB / 434.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005028/0.000503, allocations: 8 kB / 0.5159 GB, free: 11.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2014, allocations: 83.42 MB / 0.5974 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0007451/0.2022, allocations: 246.3 kB / 0.5976 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002196/0.2044, allocations: 1.537 MB / 0.5991 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.746e-05/0.2045, allocations: 0 / 0.5991 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.2046, allocations: 27.89 kB / 0.5991 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.919e-05/0.2047, allocations: 7.984 kB / 0.5991 GB, free: 5.98 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.0007407/0.2054, allocations: 179.5 kB / 0.5993 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.2055, allocations: 19.91 kB / 0.5993 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.038e-05/0.2055, allocations: 0 / 0.5993 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.392e-05/0.2056, allocations: 23.97 kB / 0.5993 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.912e-05/0.2056, allocations: 11.94 kB / 0.5993 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.2056, allocations: 0 / 0.5993 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003861/0.206, allocations: 219.6 kB / 0.5996 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.115e-05/0.2061, allocations: 19.92 kB / 0.5996 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.781e-05/0.2061, allocations: 33.64 kB / 0.5996 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002766/0.2064, allocations: 195.6 kB / 0.5998 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2064, allocations: 0 / 0.5998 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2064, allocations: 0 / 0.5998 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2064, allocations: 0 / 0.5998 GB, free: 5.285 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.0004232/0.2069, allocations: 403.3 kB / 0.6002 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.2069, allocations: 8.031 kB / 0.6002 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.2069, allocations: 30.56 kB / 0.6002 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.207, allocations: 11.89 kB / 0.6002 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.2072, allocations: 179 kB / 0.6004 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.2072, allocations: 0 / 0.6004 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.769e-06/0.2072, allocations: 4 kB / 0.6004 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.2073, allocations: 41.69 kB / 0.6004 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2073, allocations: 4 kB / 0.6004 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.2073, allocations: 0 / 0.6004 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.2073, allocations: 3.938 kB / 0.6004 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.302e-05/0.2074, allocations: 19.92 kB / 0.6005 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001872/0.2076, allocations: 177.5 kB / 0.6006 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.087e-05/0.2076, allocations: 22.58 kB / 0.6007 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.2077, allocations: 4.062 kB / 0.6007 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.2077, allocations: 42.56 kB / 0.6007 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.2077, allocations: 0 / 0.6007 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.000158/0.2079, allocations: 65.52 kB / 0.6008 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.2079, allocations: 51.41 kB / 0.6008 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.2081, allocations: 164.1 kB / 0.601 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.2081, allocations: 25.7 kB / 0.601 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.941e-05/0.2082, allocations: 100 kB / 0.6011 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.002e-05/0.2082, allocations: 0 / 0.6011 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-06/0.2082, allocations: 0 / 0.6011 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.2083, allocations: 330.9 kB / 0.6014 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.139e-05/0.2084, allocations: 39.98 kB / 0.6014 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.535e-05/0.2084, allocations: 39.98 kB / 0.6015 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.622e-05/0.2085, allocations: 51.91 kB / 0.6015 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2085, allocations: 0 / 0.6015 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001639/0.2087, allocations: 121.5 kB / 0.6016 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2087, allocations: 4 kB / 0.6017 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.2087, allocations: 4 kB / 0.6017 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.2087, allocations: 0 / 0.6017 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.621e-05/0.2088, allocations: 8.047 kB / 0.6017 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.2088, allocations: 0 / 0.6017 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.399e-05/0.2088, allocations: 7.844 kB / 0.6017 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.2088, allocations: 4 kB / 0.6017 GB, free: 3.137 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.0001424/0.209, allocations: 129.7 kB / 0.6018 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.209, allocations: 11.84 kB / 0.6018 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.2091, allocations: 53.56 kB / 0.6019 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2091, allocations: 0 / 0.6019 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2091, allocations: 7.969 kB / 0.6019 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2091, allocations: 3.984 kB / 0.6019 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.2093, allocations: 173.6 kB / 0.602 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2093, allocations: 0 / 0.602 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-06/0.2093, allocations: 0 / 0.602 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.2093, allocations: 0 / 0.602 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-06/0.2093, allocations: 0 / 0.602 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2093, allocations: 3.984 kB / 0.602 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2093, allocations: 0 / 0.602 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.765e-05/0.2094, allocations: 85.02 kB / 0.6021 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.2095, allocations: 88.97 kB / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.2095, allocations: 0 / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.2095, allocations: 0 / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.2095, allocations: 0 / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.2095, allocations: 0 / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.903e-05/0.2096, allocations: 128.5 kB / 0.6023 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2096, allocations: 0 / 0.6023 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003252/0.21, allocations: 83.98 kB / 0.6024 GB, free: 2.281 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.0007683/0.2107, allocations: 0.7478 MB / 0.6031 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001603/0.2109, allocations: 105.7 kB / 0.6032 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2109, allocations: 0 / 0.6032 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.62e-05/0.2109, allocations: 11.94 kB / 0.6033 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.803e-05/0.211, allocations: 0 / 0.6033 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005995/0.2117, allocations: 405.2 kB / 0.6036 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.212, allocations: 0.6965 MB / 0.6043 GB, free: 240 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.984e-05/0.212, allocations: 0 / 0.6043 GB, free: 240 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.108e-05/0.212, allocations: 23.36 kB / 0.6043 GB, free: 220 kB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.212, allocations: 4 kB / 0.6043 GB, free: 216 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2862/0.4982, allocations: 3.171 MB / 0.6074 GB, free: 39.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001362/0.4984, allocations: 235.2 kB / 0.6077 GB, free: 39.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.302, allocations: 0 / 0.6077 GB, free: 39.7 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: