Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_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.001088/0.001088, allocations: 101.3 kB / 16.27 MB, free: 5.93 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.001126/0.001126, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.312/1.312, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7478/0.7478, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.88 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3497, allocations: 77.93 MB / 0.5673 GB, free: 32.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001649/0.3514, allocations: 0.5014 MB / 0.5678 GB, free: 32.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.3531, allocations: 1.609 MB / 0.5693 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.475e-05/0.3531, allocations: 0.5625 kB / 0.5693 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.3533, allocations: 23.98 kB / 0.5694 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.222e-05/0.3533, allocations: 8.609 kB / 0.5694 GB, free: 31.39 MB / 446.1 MB [/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/IBPSA 4.0.0-master/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.0007268/0.354, allocations: 250.4 kB / 0.5696 GB, free: 31.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.383e-05/0.3541, allocations: 24.84 kB / 0.5696 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.616e-05/0.3542, allocations: 2.5 kB / 0.5696 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.843e-05/0.3542, allocations: 14.42 kB / 0.5696 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.205e-05/0.3542, allocations: 15.7 kB / 0.5697 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.3543, allocations: 1.781 kB / 0.5697 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004498/0.3547, allocations: 282.8 kB / 0.5699 GB, free: 31.19 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.053e-05/0.3548, allocations: 23.36 kB / 0.57 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.3548, allocations: 20.55 kB / 0.57 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.3552, allocations: 279.7 kB / 0.5702 GB, free: 31.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3552, allocations: 1.391 kB / 0.5702 GB, free: 31.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3552, allocations: 0 / 0.5702 GB, free: 31.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.3552, allocations: 0.625 kB / 0.5702 GB, free: 31.09 MB / 446.1 MB 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.00031/0.3556, allocations: 408.7 kB / 0.5706 GB, free: 30.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.3556, allocations: 9.812 kB / 0.5706 GB, free: 30.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.945e-05/0.3556, allocations: 33.67 kB / 0.5707 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.122e-05/0.3556, allocations: 6.781 kB / 0.5707 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.468e-05/0.3557, allocations: 176.9 kB / 0.5709 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.3558, allocations: 1.125 kB / 0.5709 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.3558, allocations: 1.906 kB / 0.5709 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.39e-05/0.3558, allocations: 42.19 kB / 0.5709 GB, free: 30.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.3559, allocations: 1.812 kB / 0.5709 GB, free: 30.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-06/0.3559, allocations: 4.875 kB / 0.5709 GB, free: 30.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.3559, allocations: 0.7031 kB / 0.5709 GB, free: 30.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.471e-05/0.3559, allocations: 20.47 kB / 0.5709 GB, free: 30.39 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.662e-05/0.356, allocations: 178.4 kB / 0.5711 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.759e-05/0.356, allocations: 27.47 kB / 0.5711 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.525e-05/0.3561, allocations: 13.83 kB / 0.5711 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.3561, allocations: 7.969 kB / 0.5711 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/0.3561, allocations: 35.67 kB / 0.5712 GB, free: 30.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3561, allocations: 2.188 kB / 0.5712 GB, free: 30.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001098/0.3562, allocations: 63.42 kB / 0.5712 GB, free: 30.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.741e-05/0.3562, allocations: 53.03 kB / 0.5713 GB, free: 30.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.3564, allocations: 170.6 kB / 0.5714 GB, free: 29.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.3564, allocations: 26.77 kB / 0.5715 GB, free: 29.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.027e-05/0.3564, allocations: 97.62 kB / 0.5716 GB, free: 29.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.303e-06/0.3564, allocations: 1.656 kB / 0.5716 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.3565, allocations: 31.12 kB / 0.5716 GB, free: 29.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.239e-05/0.3565, allocations: 317.8 kB / 0.5719 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.981e-05/0.3566, allocations: 45.28 kB / 0.5719 GB, free: 29.42 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.743e-05/0.3566, allocations: 37.78 kB / 0.572 GB, free: 29.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.184e-05/0.3567, allocations: 72.5 kB / 0.5721 GB, free: 29.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.3567, allocations: 0 / 0.5721 GB, free: 29.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001257/0.3568, allocations: 129.4 kB / 0.5722 GB, free: 29.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.3568, allocations: 5.281 kB / 0.5722 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.3569, allocations: 2.016 kB / 0.5722 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.3569, allocations: 1.25 kB / 0.5722 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.055e-06/0.3569, allocations: 0 / 0.5722 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3569, allocations: 1.844 kB / 0.5722 GB, free: 29.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.022e-05/0.3569, allocations: 13.06 kB / 0.5722 GB, free: 29.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-06/0.3569, allocations: 2.531 kB / 0.5722 GB, free: 29.33 MB / 446.1 MB 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 7.401e-05/0.357, allocations: 128.5 kB / 0.5723 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.357, allocations: 11.52 kB / 0.5723 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.244e-05/0.3571, allocations: 63.33 kB / 0.5724 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3571, allocations: 0.6562 kB / 0.5724 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3571, allocations: 1.25 kB / 0.5724 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-06/0.3571, allocations: 1.25 kB / 0.5724 GB, free: 29.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.846e-05/0.3572, allocations: 166.2 kB / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.3572, allocations: 0 / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-06/0.3572, allocations: 6.281 kB / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.3572, allocations: 0 / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-06/0.3572, allocations: 1.016 kB / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3572, allocations: 1.625 kB / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3573, allocations: 0.7812 kB / 0.5726 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.03e-05/0.3573, allocations: 83.73 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.998e-05/0.3573, allocations: 87.92 kB / 0.5727 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.3574, allocations: 5.953 kB / 0.5727 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.193e-05/0.3574, allocations: 4.766 kB / 0.5727 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.3574, allocations: 0.6094 kB / 0.5727 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3574, allocations: 3.797 kB / 0.5727 GB, free: 28.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.692e-05/0.3575, allocations: 123.8 kB / 0.5729 GB, free: 28.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3575, allocations: 1.438 kB / 0.5729 GB, free: 28.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.3578, allocations: 85.8 kB / 0.5729 GB, free: 28.69 MB / 446.1 MB 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.0005194/0.3583, allocations: 0.7293 MB / 0.5737 GB, free: 28.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.3585, allocations: 108.3 kB / 0.5738 GB, free: 28.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3585, allocations: 3.938 kB / 0.5738 GB, free: 28.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.273e-05/0.3585, allocations: 10.98 kB / 0.5738 GB, free: 28.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.3586, allocations: 4.297 kB / 0.5738 GB, free: 28.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000999/0.3596, allocations: 1.544 MB / 0.5753 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.3597, allocations: 0.6907 MB / 0.576 GB, free: 26.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.588e-05/0.3598, allocations: 3.219 kB / 0.576 GB, free: 26.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.538e-05/0.3598, allocations: 23.64 kB / 0.576 GB, free: 26.09 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3598, allocations: 0 / 0.576 GB, free: 26.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6978/1.058, allocations: 3.439 MB / 0.5793 GB, free: 25.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.508/9.566, allocations: 10.5 kB / 0.5794 GB, free: 25.34 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)