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.001445/0.001444, allocations: 96.89 kB / 15.69 MB, free: 480 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.001602/0.001602, allocations: 176.5 kB / 16.57 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.444/2.444, allocations: 223.2 MB / 240.5 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.254/1.254, allocations: 113.7 MB / 405.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003898, allocations: 9.281 kB / 493 MB, free: 8.629 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2739, allocations: 77.11 MB / 0.5567 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0009303/0.2749, allocations: 234.4 kB / 0.5569 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00362/0.2785, allocations: 1.535 MB / 0.5584 GB, free: 9.938 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.899e-05/0.2786, allocations: 4 kB / 0.5585 GB, free: 9.934 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002426/0.2789, allocations: 19.91 kB / 0.5585 GB, free: 9.914 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.882e-05/0.2789, allocations: 7.984 kB / 0.5585 GB, free: 9.906 MB / 430.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.2801, allocations: 187.5 kB / 0.5587 GB, free: 9.723 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.467e-05/0.2802, allocations: 19.97 kB / 0.5587 GB, free: 9.703 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.065e-05/0.2803, allocations: 3.938 kB / 0.5587 GB, free: 9.699 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.373e-05/0.2803, allocations: 11.98 kB / 0.5587 GB, free: 9.688 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.111e-05/0.2804, allocations: 11.92 kB / 0.5587 GB, free: 9.676 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.2804, allocations: 7.938 kB / 0.5587 GB, free: 9.668 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006523/0.2811, allocations: 219.7 kB / 0.5589 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.651e-05/0.2811, allocations: 19.92 kB / 0.5589 GB, free: 9.434 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.2812, allocations: 33.7 kB / 0.559 GB, free: 9.395 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004443/0.2816, allocations: 191.6 kB / 0.5592 GB, free: 9.207 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2817, allocations: 0 / 0.5592 GB, free: 9.207 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.515e-06/0.2817, allocations: 0 / 0.5592 GB, free: 9.207 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.2817, allocations: 3.938 kB / 0.5592 GB, free: 9.203 MB / 430.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.0005643/0.2823, allocations: 395.4 kB / 0.5595 GB, free: 8.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000109/0.2824, allocations: 16.02 kB / 0.5595 GB, free: 8.754 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.023e-05/0.2825, allocations: 30.56 kB / 0.5596 GB, free: 8.715 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.2825, allocations: 3.906 kB / 0.5596 GB, free: 8.711 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.2828, allocations: 179.9 kB / 0.5598 GB, free: 8.496 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.2828, allocations: 0 / 0.5598 GB, free: 8.496 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.2828, allocations: 7.984 kB / 0.5598 GB, free: 8.488 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.283, allocations: 41.66 kB / 0.5598 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.283, allocations: 0 / 0.5598 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.283, allocations: 0 / 0.5598 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2831, allocations: 0 / 0.5598 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.051e-05/0.2831, allocations: 15.98 kB / 0.5598 GB, free: 8.426 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002882/0.2834, allocations: 181.6 kB / 0.56 GB, free: 8.199 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.379e-05/0.2835, allocations: 22.58 kB / 0.56 GB, free: 8.168 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.154e-05/0.2836, allocations: 4.062 kB / 0.56 GB, free: 8.164 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.2836, allocations: 38.55 kB / 0.5601 GB, free: 8.117 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.2836, allocations: 0 / 0.5601 GB, free: 8.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002286/0.2839, allocations: 65.48 kB / 0.5601 GB, free: 8.047 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.2839, allocations: 55.41 kB / 0.5602 GB, free: 7.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.2843, allocations: 173.9 kB / 0.5603 GB, free: 7.805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.2843, allocations: 25.7 kB / 0.5604 GB, free: 7.773 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.2844, allocations: 96.12 kB / 0.5604 GB, free: 7.676 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.2845, allocations: 7.891 kB / 0.5605 GB, free: 7.668 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.2845, allocations: 0 / 0.5605 GB, free: 7.668 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.2847, allocations: 318.8 kB / 0.5608 GB, free: 7.348 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.2848, allocations: 35.98 kB / 0.5608 GB, free: 7.312 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.325e-05/0.2849, allocations: 47.97 kB / 0.5608 GB, free: 7.266 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.127e-05/0.285, allocations: 41.89 kB / 0.5609 GB, free: 7.227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.285, allocations: 8.031 kB / 0.5609 GB, free: 7.219 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002624/0.2853, allocations: 117.6 kB / 0.561 GB, free: 7.098 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.2854, allocations: 5.875 kB / 0.561 GB, free: 7.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.2854, allocations: 3.984 kB / 0.561 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.2854, allocations: 4 kB / 0.561 GB, free: 7.086 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.319e-05/0.2854, allocations: 7.891 kB / 0.561 GB, free: 7.078 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2855, allocations: 3.938 kB / 0.561 GB, free: 7.074 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.255e-05/0.2855, allocations: 11.84 kB / 0.561 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.2855, allocations: 4 kB / 0.561 GB, free: 7.059 MB / 430.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 (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.0001974/0.2857, allocations: 125.8 kB / 0.5612 GB, free: 6.926 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.2858, allocations: 7.906 kB / 0.5612 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.286, allocations: 57.56 kB / 0.5612 GB, free: 6.852 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.286, allocations: 3.984 kB / 0.5612 GB, free: 6.848 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.286, allocations: 3.953 kB / 0.5612 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.286, allocations: 0 / 0.5612 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.2862, allocations: 165.7 kB / 0.5614 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2862, allocations: 0 / 0.5614 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.481e-06/0.2862, allocations: 8.031 kB / 0.5614 GB, free: 6.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.2862, allocations: 7.984 kB / 0.5614 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.687e-06/0.2863, allocations: 0 / 0.5614 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2863, allocations: 3.938 kB / 0.5614 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2863, allocations: 0 / 0.5614 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.2864, allocations: 76.98 kB / 0.5615 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.456e-05/0.2865, allocations: 89 kB / 0.5616 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.2865, allocations: 0 / 0.5616 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.123e-05/0.2865, allocations: 4.031 kB / 0.5616 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.064e-05/0.2866, allocations: 4 kB / 0.5616 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.2866, allocations: 0 / 0.5616 GB, free: 6.406 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.2867, allocations: 123.2 kB / 0.5617 GB, free: 6.285 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2867, allocations: 0 / 0.5617 GB, free: 6.285 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006517/0.2874, allocations: 91.94 kB / 0.5618 GB, free: 6.195 MB / 430.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 (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.001137/0.2886, allocations: 0.7318 MB / 0.5625 GB, free: 5.461 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002448/0.2888, allocations: 101.7 kB / 0.5626 GB, free: 5.355 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2888, allocations: 0 / 0.5626 GB, free: 5.355 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.267e-05/0.2889, allocations: 12.09 kB / 0.5626 GB, free: 5.344 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.2891, allocations: 4 kB / 0.5626 GB, free: 5.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00094/0.29, allocations: 415.2 kB / 0.563 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.2905, allocations: 0.6926 MB / 0.5637 GB, free: 4.168 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.548e-05/0.2906, allocations: 7.984 kB / 0.5637 GB, free: 4.16 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.997e-05/0.2906, allocations: 15.44 kB / 0.5637 GB, free: 4.145 MB / 430.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2906, allocations: 0 / 0.5637 GB, free: 4.145 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.3208, allocations: 3.17 MB / 0.5668 GB, free: 1.102 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003054/0.3212, allocations: 222.1 kB / 0.567 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.099/3.42, allocations: 0 / 0.567 GB, free: 0.8594 MB / 430.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/linux/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) Environment - environmentSimulation: