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.001577/0.001577, allocations: 113.4 kB / 17.17 MB, free: 5.98 MB / 14.72 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.001927/0.001927, allocations: 215 kB / 20.13 MB, free: 3.035 MB / 14.72 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 1.435/1.435, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.002425/0.002425, allocations: 282.4 kB / 309.8 MB, free: 3.406 MB / 238.1 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 1.094/1.094, allocations: 180.6 MB / 0.5337 GB, free: 12.35 MB / 398.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002904/0.002904, allocations: 91.86 kB / 0.7346 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6114/0.6143, allocations: 95.35 MB / 0.8278 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00191/0.6162, allocations: 0.5186 MB / 0.8283 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00266/0.6188, allocations: 1.669 MB / 0.8299 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.615e-05/0.6189, allocations: 3.938 kB / 0.8299 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002205/0.6191, allocations: 62.56 kB / 0.83 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.023e-05/0.6191, allocations: 27.45 kB / 0.83 GB, free: 1.527 MB / 0.5762 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.0009249/0.6201, allocations: 250.2 kB / 0.8302 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.6202, allocations: 35.25 kB / 0.8303 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.767e-05/0.6202, allocations: 7.75 kB / 0.8303 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.445e-05/0.6203, allocations: 18.97 kB / 0.8303 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.642e-05/0.6204, allocations: 44.5 kB / 0.8303 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.6204, allocations: 0 / 0.8303 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006759/0.6211, allocations: 376.3 kB / 0.8307 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.6211, allocations: 25.47 kB / 0.8307 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.6212, allocations: 29.73 kB / 0.8307 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005209/0.6217, allocations: 292.7 kB / 0.831 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.6217, allocations: 0 / 0.831 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.023e-06/0.6217, allocations: 0 / 0.831 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.401e-05/0.6217, allocations: 0 / 0.831 GB, free: 1.176 MB / 0.5762 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.0004604/0.6222, allocations: 435.3 kB / 0.8314 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.6222, allocations: 7.875 kB / 0.8314 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.529e-05/0.6222, allocations: 12.17 kB / 0.8315 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.819e-05/0.6222, allocations: 38.11 kB / 0.8315 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.6223, allocations: 11.47 kB / 0.8315 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.6224, allocations: 190.7 kB / 0.8317 GB, free: 492 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.6224, allocations: 384 / 0.8317 GB, free: 492 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.6224, allocations: 384 / 0.8317 GB, free: 492 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.6226, allocations: 41.23 kB / 0.8317 GB, free: 456 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.6226, allocations: 0 / 0.8317 GB, free: 456 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.6226, allocations: 3.422 kB / 0.8317 GB, free: 456 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.6226, allocations: 4 kB / 0.8317 GB, free: 452 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.259e-05/0.6226, allocations: 21.59 kB / 0.8317 GB, free: 448 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001534/0.6228, allocations: 189.9 kB / 0.8319 GB, free: 236 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.001e-05/0.6228, allocations: 24.47 kB / 0.832 GB, free: 212 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.121e-05/0.6228, allocations: 17.67 kB / 0.832 GB, free: 200 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.6229, allocations: 10.78 kB / 0.832 GB, free: 196 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.6229, allocations: 41.94 kB / 0.832 GB, free: 148 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.6229, allocations: 3.938 kB / 0.832 GB, free: 144 kB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.000146/0.623, allocations: 67.41 kB / 0.8321 GB, free: 104 kB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/0.6231, allocations: 52.16 kB / 0.8321 GB, free: 40 kB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.6233, allocations: 214.9 kB / 0.8323 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.6233, allocations: 25.7 kB / 0.8324 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.6234, allocations: 107.6 kB / 0.8325 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.037e-05/0.6234, allocations: 0 / 0.8325 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.6235, allocations: 32.28 kB / 0.8325 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.6236, allocations: 328.1 kB / 0.8328 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.709e-05/0.6237, allocations: 52.44 kB / 0.8329 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.117e-05/0.6238, allocations: 55.89 kB / 0.8329 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.6239, allocations: 88.67 kB / 0.833 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.6239, allocations: 0 / 0.833 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000194/0.6241, allocations: 166.5 kB / 0.8332 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.6241, allocations: 5.594 kB / 0.8332 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.6241, allocations: 1.312 kB / 0.8332 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.6241, allocations: 0.7188 kB / 0.8332 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.265e-05/0.6241, allocations: 6.562 kB / 0.8332 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.6241, allocations: 0.6562 kB / 0.8332 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.282e-05/0.6242, allocations: 18.56 kB / 0.8332 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.6242, allocations: 0 / 0.8332 GB, free: 15.31 MB / 0.5919 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.0001651/0.6243, allocations: 128.8 kB / 0.8333 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.6244, allocations: 13.11 kB / 0.8333 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.6245, allocations: 68.19 kB / 0.8334 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.6245, allocations: 4.031 kB / 0.8334 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6245, allocations: 0 / 0.8334 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.6245, allocations: 0.75 kB / 0.8334 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.6247, allocations: 181 kB / 0.8336 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.6247, allocations: 5.844 kB / 0.8336 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.389e-06/0.6247, allocations: 0 / 0.8336 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.6247, allocations: 1.406 kB / 0.8336 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.6247, allocations: 4.781 kB / 0.8336 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.6247, allocations: 0 / 0.8336 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.6247, allocations: 1.5 kB / 0.8336 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.6248, allocations: 85.47 kB / 0.8337 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.036e-05/0.6249, allocations: 93.5 kB / 0.8338 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.6249, allocations: 4.516 kB / 0.8338 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.283e-05/0.6249, allocations: 7.875 kB / 0.8338 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.185e-05/0.6249, allocations: 0.7969 kB / 0.8338 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.6249, allocations: 2.312 kB / 0.8338 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001323/0.625, allocations: 144.7 kB / 0.8339 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/0.625, allocations: 4.031 kB / 0.8339 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003819/0.6254, allocations: 89.73 kB / 0.834 GB, free: 14.64 MB / 0.5919 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.0009101/0.6263, allocations: 0.745 MB / 0.8347 GB, free: 14 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0002102/0.6265, allocations: 120.7 kB / 0.8348 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6265, allocations: 0 / 0.8348 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.727e-05/0.6266, allocations: 12.45 kB / 0.8348 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.6267, allocations: 4.031 kB / 0.8349 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.6287, allocations: 1.818 MB / 0.8366 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.6291, allocations: 0.7036 MB / 0.8373 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.238e-05/0.6291, allocations: 6.297 kB / 0.8373 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.335e-05/0.6292, allocations: 23.56 kB / 0.8373 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of SimCode: time 2.8e-07/0.6292, allocations: 0 / 0.8373 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.6524, allocations: 3.947 MB / 0.8412 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.348/9.001, allocations: 7.766 kB / 0.8412 GB, free: 11.38 MB / 0.5919 GB " [Timeout remaining time 651] (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: 13.004457465023734] Failed to read output from testmodel.py, exit status != 0: 9.130025657999795 9.156291678 8.529906712 Calling exit ...