Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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.001079/0.001079, 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.0008735/0.0008735, allocations: 169.9 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.8605/0.8605, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo): time 0.5098/0.5098, allocations: 110.2 MB / 369.4 MB, free: 12.63 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:44:3-56:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:58:3-65:19:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:67:3-72:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:74:3-79:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 0.5472 GB, free: 8.805 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.726e-05, allocations: 2.281 kB / 0.5472 GB, free: 8.801 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0009702/0.0009874, allocations: 0.5128 MB / 0.5477 GB, free: 8.289 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.002777, allocations: 1.61 MB / 0.5493 GB, free: 6.66 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.732e-05/0.002815, allocations: 0 / 0.5493 GB, free: 6.66 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.002941, allocations: 31.83 kB / 0.5493 GB, free: 6.629 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 2.012e-05/0.002961, allocations: 7.984 kB / 0.5493 GB, free: 6.621 MB / 474.7 MB [/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/BuildSysPro 3.7.0/IBPSA/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.0007415/0.003702, allocations: 270.5 kB / 0.5496 GB, free: 6.359 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 6.095e-05/0.003763, allocations: 19.92 kB / 0.5496 GB, free: 6.34 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.896e-05/0.003792, allocations: 4 kB / 0.5496 GB, free: 6.336 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.094e-05/0.003823, allocations: 15.92 kB / 0.5496 GB, free: 6.32 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.9e-05/0.003852, allocations: 19.97 kB / 0.5497 GB, free: 6.301 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 9.187e-06/0.003861, allocations: 0 / 0.5497 GB, free: 6.301 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000454/0.004315, allocations: 427.1 kB / 0.5501 GB, free: 5.883 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 4.176e-05/0.004357, allocations: 15.98 kB / 0.5501 GB, free: 5.867 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 1.893e-05/0.004376, allocations: 19.92 kB / 0.5501 GB, free: 5.848 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.00467, allocations: 331.2 kB / 0.5504 GB, free: 5.523 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.372e-06/0.004671, allocations: 0 / 0.5504 GB, free: 5.523 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004672, allocations: 11.94 kB / 0.5504 GB, free: 5.512 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.966e-06/0.004675, allocations: 0 / 0.5504 GB, free: 5.512 MB / 474.7 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.0002904/0.004966, allocations: 337.6 kB / 0.5507 GB, free: 5.152 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.004996, allocations: 8.031 kB / 0.5508 GB, free: 5.145 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002687/0.005265, allocations: 34.69 kB / 0.5508 GB, free: 5.102 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.198e-05/0.005287, allocations: 8.891 kB / 0.5508 GB, free: 5.094 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.005406, allocations: 121.7 kB / 0.5509 GB, free: 4.949 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-06/0.005414, allocations: 384 / 0.5509 GB, free: 4.949 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.005421, allocations: 384 / 0.5509 GB, free: 4.949 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.021e-05/0.005501, allocations: 34.27 kB / 0.5509 GB, free: 4.91 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.005508, allocations: 192 / 0.5509 GB, free: 4.91 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.005516, allocations: 12.11 kB / 0.551 GB, free: 4.898 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.005521, allocations: 0 / 0.551 GB, free: 4.898 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.739e-05/0.005549, allocations: 16 kB / 0.551 GB, free: 4.883 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/0.005676, allocations: 148.7 kB / 0.5511 GB, free: 4.695 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.515e-05/0.005711, allocations: 30.5 kB / 0.5511 GB, free: 4.656 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.807e-05/0.005729, allocations: 16.91 kB / 0.5512 GB, free: 4.637 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.005758, allocations: 4 kB / 0.5512 GB, free: 4.633 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.005775, allocations: 30.56 kB / 0.5512 GB, free: 4.594 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 4.61e-07/0.005775, allocations: 0 / 0.5512 GB, free: 4.594 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001193/0.005895, allocations: 65.64 kB / 0.5513 GB, free: 4.523 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.005921, allocations: 63.39 kB / 0.5513 GB, free: 4.449 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.006024, allocations: 168.1 kB / 0.5515 GB, free: 4.277 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.006033, allocations: 25.7 kB / 0.5515 GB, free: 4.246 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.826e-05/0.006071, allocations: 92.12 kB / 0.5516 GB, free: 4.152 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.679e-06/0.006081, allocations: 11.94 kB / 0.5516 GB, free: 4.141 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.006111, allocations: 29.7 kB / 0.5516 GB, free: 4.105 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.856e-05/0.00619, allocations: 310.8 kB / 0.5519 GB, free: 3.793 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.002e-05/0.00623, allocations: 47.97 kB / 0.552 GB, free: 3.746 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.828e-05/0.006258, allocations: 35.98 kB / 0.552 GB, free: 3.711 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.361e-05/0.006322, allocations: 80.81 kB / 0.5521 GB, free: 3.629 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.006324, allocations: 4.031 kB / 0.5521 GB, free: 3.625 MB / 474.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001028/0.006427, allocations: 125.6 kB / 0.5522 GB, free: 3.496 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.006438, allocations: 4 kB / 0.5522 GB, free: 3.492 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.00645, allocations: 0 / 0.5522 GB, free: 3.492 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.00646, allocations: 3.938 kB / 0.5522 GB, free: 3.488 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.057e-05/0.006471, allocations: 3.984 kB / 0.5522 GB, free: 3.484 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.006474, allocations: 4 kB / 0.5522 GB, free: 3.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.499e-05/0.006489, allocations: 7.891 kB / 0.5522 GB, free: 3.473 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.006496, allocations: 0 / 0.5522 GB, free: 3.473 MB / 474.7 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 8.738e-05/0.006583, allocations: 125.8 kB / 0.5523 GB, free: 3.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.881e-06/0.006589, allocations: 11.98 kB / 0.5524 GB, free: 3.328 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.247e-05/0.006661, allocations: 61.44 kB / 0.5524 GB, free: 3.262 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.006664, allocations: 3.938 kB / 0.5524 GB, free: 3.258 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.006667, allocations: 0 / 0.5524 GB, free: 3.258 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.00667, allocations: 0 / 0.5524 GB, free: 3.258 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.627e-05/0.006736, allocations: 140.7 kB / 0.5526 GB, free: 3.078 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.006737, allocations: 0 / 0.5526 GB, free: 3.078 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.335e-06/0.006739, allocations: 7.938 kB / 0.5526 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.00674, allocations: 0 / 0.5526 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.006745, allocations: 0 / 0.5526 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.006746, allocations: 7.969 kB / 0.5526 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.006747, allocations: 0 / 0.5526 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.358e-05/0.006801, allocations: 81.06 kB / 0.5526 GB, free: 2.965 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.326e-06/0.006809, allocations: 7.953 kB / 0.5527 GB, free: 2.957 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.215e-06/0.006817, allocations: 0 / 0.5527 GB, free: 2.957 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.284e-06/0.006825, allocations: 3.938 kB / 0.5527 GB, free: 2.953 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-06/0.006833, allocations: 0 / 0.5527 GB, free: 2.953 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.006835, allocations: 4 kB / 0.5527 GB, free: 2.949 MB / 474.7 MB Notification: Performance of sorting global known variables: time 5.556e-05/0.006891, allocations: 122.5 kB / 0.5528 GB, free: 2.832 MB / 474.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006891, allocations: 0 / 0.5528 GB, free: 2.832 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002131/0.007104, allocations: 87.89 kB / 0.5529 GB, free: 2.746 MB / 474.7 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.0004722/0.007576, allocations: 0.7705 MB / 0.5536 GB, free: 1.973 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.00768, allocations: 93.66 kB / 0.5537 GB, free: 1.875 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.007681, allocations: 4.094 kB / 0.5537 GB, free: 1.871 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 7.644e-06/0.007689, allocations: 8 kB / 0.5537 GB, free: 1.863 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/0.007789, allocations: 10.17 kB / 0.5537 GB, free: 1.855 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008392/0.008629, allocations: 1.534 MB / 0.5552 GB, free: 240 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.411e-05/0.008673, allocations: 79.31 kB / 0.5553 GB, free: 140 kB / 474.7 MB Notification: Performance of simCode: alias equations: time 1.412e-05/0.008687, allocations: 3.938 kB / 0.5553 GB, free: 136 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.008711, allocations: 20.5 kB / 0.5553 GB, free: 116 kB / 474.7 MB Notification: Performance of SimCode: time 4.21e-07/0.008712, allocations: 0 / 0.5553 GB, free: 116 kB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01679/0.0255, allocations: 4.17 MB / 0.5594 GB, free: 12.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.852/6.877, allocations: 3.453 kB / 0.5594 GB, free: 12.07 MB / 490.7 MB " [Timeout remaining time 653] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.148500509560108] Failed to read output from testmodel.py, exit status != 0: 6.95721828378737 6.968229515 6.961373325 Calling exit ...