Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.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.0008451/0.0008451, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009352/0.0009352, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8481/0.8481, allocations: 177.2 MB / 202.8 MB, free: 5.543 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.001333/0.001333, allocations: 238.2 kB / 259.4 MB, free: 12.9 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.6515/0.6515, allocations: 138.4 MB / 454.3 MB, free: 30.02 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_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.6463 GB, free: 1.887 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.917e-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_1d): time 0.001091/0.00111, allocations: 0.5211 MB / 0.6468 GB, free: 1.355 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2175/0.2187, allocations: 1.593 MB / 0.6483 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.425e-05/0.2187, allocations: 2.719 kB / 0.6483 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.2188, allocations: 21.81 kB / 0.6484 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 2.508e-05/0.2189, allocations: 12.14 kB / 0.6484 GB, free: 55.77 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.0008902/0.2198, allocations: 263.3 kB / 0.6486 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 7.597e-05/0.2198, allocations: 26.28 kB / 0.6486 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 3.87e-05/0.2199, allocations: 2.359 kB / 0.6486 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.504e-05/0.2199, allocations: 17.98 kB / 0.6487 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 4.145e-05/0.22, allocations: 17.3 kB / 0.6487 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.22, allocations: 0.5 kB / 0.6487 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006037/0.2206, allocations: 424.9 kB / 0.6491 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.147e-05/0.2206, allocations: 19.55 kB / 0.6491 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.2207, allocations: 7.562 kB / 0.6491 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0004086/0.2211, allocations: 341.3 kB / 0.6494 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2211, allocations: 0.9062 kB / 0.6494 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2211, allocations: 0 / 0.6494 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.2211, allocations: 0 / 0.6494 GB, free: 55.74 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.0003126/0.2214, allocations: 336.3 kB / 0.6498 GB, free: 55.44 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2214, allocations: 11.94 kB / 0.6498 GB, free: 55.44 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.134e-05/0.2214, allocations: 34.19 kB / 0.6498 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.2215, allocations: 6.734 kB / 0.6498 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.2216, allocations: 126.3 kB / 0.6499 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.2216, allocations: 2 kB / 0.6499 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.2216, allocations: 1.688 kB / 0.6499 GB, free: 55.26 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.474e-05/0.2217, allocations: 38.52 kB / 0.65 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.2217, allocations: 3.188 kB / 0.65 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.2217, allocations: 7.969 kB / 0.65 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2217, allocations: 0 / 0.65 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.708e-05/0.2217, allocations: 16.62 kB / 0.65 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000118/0.2218, allocations: 146.8 kB / 0.6501 GB, free: 55.07 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 3.777e-05/0.2219, allocations: 25.62 kB / 0.6502 GB, free: 55.05 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.2219, allocations: 16.59 kB / 0.6502 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.2219, allocations: 5.812 kB / 0.6502 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.222, allocations: 34.88 kB / 0.6502 GB, free: 55 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.222, allocations: 4.875 kB / 0.6502 GB, free: 55 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.0001453/0.2221, allocations: 65.84 kB / 0.6503 GB, free: 54.96 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/0.2221, allocations: 55.38 kB / 0.6503 GB, free: 54.89 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.2222, allocations: 169.7 kB / 0.6505 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.61e-06/0.2222, allocations: 31.45 kB / 0.6505 GB, free: 54.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.339e-05/0.2223, allocations: 97.14 kB / 0.6506 GB, free: 54.68 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.2223, allocations: 1.531 kB / 0.6506 GB, free: 54.68 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.2223, allocations: 26.55 kB / 0.6506 GB, free: 54.66 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.447e-05/0.2224, allocations: 321.6 kB / 0.6509 GB, free: 54.35 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.545e-05/0.2224, allocations: 39.14 kB / 0.651 GB, free: 54.35 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.178e-05/0.2224, allocations: 44.02 kB / 0.651 GB, free: 54.35 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.023e-05/0.2225, allocations: 63.59 kB / 0.6511 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2225, allocations: 2.531 kB / 0.6511 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.799e-05/0.2226, allocations: 130.6 kB / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.2226, allocations: 6.094 kB / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.2226, allocations: 3.484 kB / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2226, allocations: 3.938 kB / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-05/0.2226, allocations: 0 / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.2226, allocations: 1.406 kB / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.2227, allocations: 8.75 kB / 0.6512 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.2227, allocations: 2.219 kB / 0.6512 GB, free: 54.3 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: 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 0.000121/0.2228, allocations: 128 kB / 0.6514 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.974e-06/0.2228, allocations: 8.969 kB / 0.6514 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.044e-05/0.2229, allocations: 60.34 kB / 0.6514 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2229, allocations: 5.969 kB / 0.6514 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2229, allocations: 0.8438 kB / 0.6514 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2229, allocations: 2.312 kB / 0.6514 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.239e-05/0.223, allocations: 139.7 kB / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.223, allocations: 5.906 kB / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-06/0.223, allocations: 1.125 kB / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.223, allocations: 2.344 kB / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-06/0.223, allocations: 0 / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.223, allocations: 6.094 kB / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.223, allocations: 0 / 0.6516 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.016e-05/0.223, allocations: 78.83 kB / 0.6517 GB, free: 53.91 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-06/0.223, allocations: 5.766 kB / 0.6517 GB, free: 53.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.2231, allocations: 4.562 kB / 0.6517 GB, free: 53.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-06/0.2231, allocations: 3.938 kB / 0.6517 GB, free: 53.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.173e-05/0.2231, allocations: 5.109 kB / 0.6517 GB, free: 53.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.2231, allocations: 1.875 kB / 0.6517 GB, free: 53.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.425e-05/0.2231, allocations: 119.5 kB / 0.6518 GB, free: 53.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.2231, allocations: 0 / 0.6518 GB, free: 53.82 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002627/0.2234, allocations: 89.03 kB / 0.6519 GB, free: 53.81 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.0005093/0.2239, allocations: 0.7632 MB / 0.6526 GB, free: 53.21 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.224, allocations: 92.19 kB / 0.6527 GB, free: 53.18 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.224, allocations: 3.938 kB / 0.6527 GB, free: 53.18 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 8.415e-06/0.224, allocations: 13.8 kB / 0.6527 GB, free: 53.18 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.2241, allocations: 8.031 kB / 0.6527 GB, free: 53.17 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008438/0.225, allocations: 1.548 MB / 0.6542 GB, free: 52.05 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.39e-05/0.225, allocations: 79.53 kB / 0.6543 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 1.891e-05/0.225, allocations: 4.688 kB / 0.6543 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.2251, allocations: 18.56 kB / 0.6543 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of SimCode: time 3.61e-07/0.2251, allocations: 0 / 0.6543 GB, free: 51.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.2427, allocations: 4.174 MB / 0.6584 GB, free: 50.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.533/6.776, allocations: 7.562 kB / 0.6584 GB, free: 50.98 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.211564698256552] Failed to read output from testmodel.py, exit status != 0: 6.85262499563396 6.861073655 6.63846112 Calling exit ...