Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007104/0.0007104, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007266/0.0007266, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8521/0.8521, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001356/0.001356, allocations: 237.7 kB / 259.4 MB, free: 13.02 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.648/0.648, allocations: 138.4 MB / 454.3 MB, free: 30.01 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.916e-06/2.916e-06, allocations: 4 kB / 0.6462 GB, free: 1.887 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.79e-05/2.082e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.879 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001057/0.001078, allocations: 0.5211 MB / 0.6468 GB, free: 1.355 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.229/0.2301, allocations: 1.6 MB / 0.6483 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/0.2301, allocations: 2.219 kB / 0.6483 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.2303, allocations: 60.42 kB / 0.6484 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 3.239e-05/0.2303, allocations: 36.56 kB / 0.6484 GB, free: 55.84 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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/BuildingSystems 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.000792/0.2311, allocations: 264.8 kB / 0.6487 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 8.434e-05/0.2312, allocations: 34.44 kB / 0.6487 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 3.695e-05/0.2313, allocations: 2.5 kB / 0.6487 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.907e-05/0.2313, allocations: 23.62 kB / 0.6487 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 6.151e-05/0.2314, allocations: 43.09 kB / 0.6488 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.2314, allocations: 2.188 kB / 0.6488 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005487/0.2319, allocations: 430.6 kB / 0.6492 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.548e-05/0.232, allocations: 27.97 kB / 0.6492 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.045e-05/0.232, allocations: 10.62 kB / 0.6492 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0004026/0.2324, allocations: 352.4 kB / 0.6496 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2324, allocations: 0.7812 kB / 0.6496 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2324, allocations: 0.625 kB / 0.6496 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2324, allocations: 0 / 0.6496 GB, free: 55.8 MB / 0.5573 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.0003263/0.2327, allocations: 361.6 kB / 0.6499 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.2328, allocations: 12.41 kB / 0.6499 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.388e-05/0.2328, allocations: 30.75 kB / 0.6499 GB, free: 55.44 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/0.2328, allocations: 10.3 kB / 0.65 GB, free: 55.44 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.2329, allocations: 134.3 kB / 0.6501 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.2329, allocations: 5.188 kB / 0.6501 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-06/0.233, allocations: 1.156 kB / 0.6501 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8e-05/0.233, allocations: 41.5 kB / 0.6501 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.233, allocations: 192 / 0.6501 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-06/0.233, allocations: 4.125 kB / 0.6501 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.2331, allocations: 4.75 kB / 0.6501 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.8e-05/0.2331, allocations: 17.75 kB / 0.6502 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001157/0.2332, allocations: 158.8 kB / 0.6503 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 3.659e-05/0.2332, allocations: 26.09 kB / 0.6503 GB, free: 55.08 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.656e-05/0.2332, allocations: 14.25 kB / 0.6503 GB, free: 55.07 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.2333, allocations: 6.594 kB / 0.6504 GB, free: 55.07 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.359e-05/0.2333, allocations: 36.77 kB / 0.6504 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 6.22e-07/0.2333, allocations: 0 / 0.6504 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.0001241/0.2334, allocations: 72.84 kB / 0.6505 GB, free: 55 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.936e-05/0.2334, allocations: 53.03 kB / 0.6505 GB, free: 54.93 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.2336, allocations: 213.8 kB / 0.6507 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.9e-06/0.2336, allocations: 29.55 kB / 0.6507 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.106e-05/0.2336, allocations: 107.7 kB / 0.6508 GB, free: 54.71 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 8.846e-06/0.2336, allocations: 12.34 kB / 0.6509 GB, free: 54.71 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.2336, allocations: 30.2 kB / 0.6509 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.223e-05/0.2337, allocations: 324.1 kB / 0.6512 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.848e-05/0.2337, allocations: 52.12 kB / 0.6512 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.756e-05/0.2338, allocations: 57.8 kB / 0.6513 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.776e-05/0.2338, allocations: 89.03 kB / 0.6514 GB, free: 54.37 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2338, allocations: 2.594 kB / 0.6514 GB, free: 54.37 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001177/0.2339, allocations: 169.4 kB / 0.6515 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.234, allocations: 6.562 kB / 0.6516 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.234, allocations: 1.5 kB / 0.6516 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.234, allocations: 6.844 kB / 0.6516 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.279e-05/0.234, allocations: 0 / 0.6516 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.234, allocations: 0 / 0.6516 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.954e-05/0.234, allocations: 9.984 kB / 0.6516 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.234, allocations: 2.953 kB / 0.6516 GB, free: 54.32 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001253/0.2342, allocations: 129.1 kB / 0.6517 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.2342, allocations: 11.92 kB / 0.6517 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.876e-05/0.2343, allocations: 70.56 kB / 0.6518 GB, free: 54.16 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2343, allocations: 7.875 kB / 0.6518 GB, free: 54.16 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.2343, allocations: 0 / 0.6518 GB, free: 54.16 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2343, allocations: 0.8438 kB / 0.6518 GB, free: 54.16 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.819e-05/0.2343, allocations: 154 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2343, allocations: 0.6875 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.412e-06/0.2344, allocations: 2.859 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.2344, allocations: 0.625 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.2344, allocations: 1.312 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2344, allocations: 3.938 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2344, allocations: 0.9062 kB / 0.6519 GB, free: 54 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.764e-05/0.2344, allocations: 85.53 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.26e-05/0.2344, allocations: 11.78 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.2345, allocations: 3.219 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-06/0.2345, allocations: 3.938 kB / 0.652 GB, free: 53.92 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.27e-05/0.2345, allocations: 7.234 kB / 0.652 GB, free: 53.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-06/0.2345, allocations: 0 / 0.652 GB, free: 53.92 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 7.335e-05/0.2346, allocations: 148.2 kB / 0.6522 GB, free: 53.85 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2346, allocations: 0 / 0.6522 GB, free: 53.85 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002784/0.2348, allocations: 88.16 kB / 0.6523 GB, free: 53.84 MB / 0.5573 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.0004926/0.2353, allocations: 0.7651 MB / 0.653 GB, free: 53.23 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001473/0.2355, allocations: 114.5 kB / 0.6531 GB, free: 53.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2355, allocations: 1.688 kB / 0.6531 GB, free: 53.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 9.097e-06/0.2355, allocations: 9.594 kB / 0.6531 GB, free: 53.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001139/0.2356, allocations: 14.22 kB / 0.6532 GB, free: 53.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009842/0.2366, allocations: 1.839 MB / 0.6549 GB, free: 52.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.15e-05/0.2366, allocations: 92.58 kB / 0.655 GB, free: 51.97 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 1.843e-05/0.2367, allocations: 3.203 kB / 0.655 GB, free: 51.97 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.23e-05/0.2367, allocations: 28.72 kB / 0.6551 GB, free: 51.96 MB / 0.5573 GB Notification: Performance of SimCode: time 4.7e-07/0.2367, allocations: 0 / 0.6551 GB, free: 51.96 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.2548, allocations: 4.56 MB / 0.6595 GB, free: 50.94 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.424/6.679, allocations: 6.906 kB / 0.6595 GB, free: 50.94 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.120685144327581] Failed to read output from testmodel.py, exit status != 0: 6.756579868495464 6.764477177 6.530525574 Calling exit ...