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.001306/0.001306, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001456/0.001456, allocations: 218.2 kB / 23.04 MB, free: 5.07 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.433/1.433, allocations: 230.6 MB / 256.8 MB, free: 7.949 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.002507/0.002507, allocations: 282.1 kB / 313.5 MB, free: 2.758 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.231/1.231, allocations: 180.6 MB / 0.5377 GB, free: 12.88 MB / 382.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_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",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.002785/0.002785, allocations: 94 kB / 0.7403 GB, free: 28.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1729, allocations: 95.39 MB / 0.8335 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001908/0.1748, allocations: 0.5309 MB / 0.834 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002789/0.1776, allocations: 1.683 MB / 0.8356 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.281e-05/0.1777, allocations: 4 kB / 0.8356 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.1778, allocations: 15.92 kB / 0.8357 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.191e-05/0.1779, allocations: 15.92 kB / 0.8357 GB, free: 6.375 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.001124/0.179, allocations: 263.3 kB / 0.8359 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.159e-05/0.1791, allocations: 23.86 kB / 0.8359 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.602e-05/0.1791, allocations: 3.984 kB / 0.8359 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.437e-05/0.1792, allocations: 8 kB / 0.836 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.934e-05/0.1792, allocations: 31.89 kB / 0.836 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1793, allocations: 0 / 0.836 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008705/0.1801, allocations: 459.2 kB / 0.8364 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.822e-05/0.1802, allocations: 19.92 kB / 0.8364 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.257e-05/0.1802, allocations: 23.8 kB / 0.8365 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.1807, allocations: 287.4 kB / 0.8367 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1807, allocations: 0 / 0.8367 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1807, allocations: 0 / 0.8367 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.1807, allocations: 0 / 0.8367 GB, free: 5.277 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.0004793/0.1812, allocations: 329.6 kB / 0.8371 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1813, allocations: 17.33 kB / 0.8371 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.82e-05/0.1813, allocations: 192 / 0.8371 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.87e-05/0.1813, allocations: 34.69 kB / 0.8371 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.1813, allocations: 8.891 kB / 0.8371 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.1815, allocations: 119.3 kB / 0.8372 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.1815, allocations: 384 / 0.8372 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.1815, allocations: 384 / 0.8372 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.1816, allocations: 49.62 kB / 0.8373 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.1816, allocations: 0 / 0.8373 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-06/0.1816, allocations: 0 / 0.8373 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1816, allocations: 3.938 kB / 0.8373 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.517e-05/0.1817, allocations: 19.98 kB / 0.8373 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.1819, allocations: 148.7 kB / 0.8374 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.742e-05/0.1819, allocations: 34.5 kB / 0.8375 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.216e-05/0.182, allocations: 8.922 kB / 0.8375 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.182, allocations: 19.92 kB / 0.8375 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.182, allocations: 30.56 kB / 0.8375 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.182, allocations: 0 / 0.8375 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001694/0.1822, allocations: 57.64 kB / 0.8376 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.1822, allocations: 55.34 kB / 0.8376 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.1824, allocations: 177 kB / 0.8378 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1824, allocations: 25.7 kB / 0.8378 GB, free: 4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.94e-05/0.1825, allocations: 104.2 kB / 0.8379 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.879e-06/0.1825, allocations: 4 kB / 0.8379 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.1825, allocations: 21.72 kB / 0.838 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1827, allocations: 322.8 kB / 0.8383 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.886e-05/0.1828, allocations: 39.98 kB / 0.8383 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.629e-05/0.1828, allocations: 39.92 kB / 0.8383 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.994e-05/0.1829, allocations: 68.83 kB / 0.8384 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1829, allocations: 0 / 0.8384 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000179/0.1831, allocations: 133.5 kB / 0.8385 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1831, allocations: 8.062 kB / 0.8385 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.1831, allocations: 4 kB / 0.8385 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1831, allocations: 0 / 0.8385 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.271e-05/0.1831, allocations: 0 / 0.8385 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1831, allocations: 0 / 0.8385 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.189e-05/0.1832, allocations: 7.891 kB / 0.8385 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.1832, allocations: 4 kB / 0.8386 GB, free: 3.23 MB / 0.5762 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.0001875/0.1834, allocations: 126.5 kB / 0.8387 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.1834, allocations: 11.88 kB / 0.8387 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.1835, allocations: 61.5 kB / 0.8387 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1835, allocations: 0 / 0.8387 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1835, allocations: 0 / 0.8387 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1835, allocations: 0 / 0.8387 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.1837, allocations: 144.7 kB / 0.8389 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1837, allocations: 3.938 kB / 0.8389 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.54e-06/0.1837, allocations: 3.938 kB / 0.8389 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1837, allocations: 0 / 0.8389 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.1837, allocations: 0 / 0.8389 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1837, allocations: 4.031 kB / 0.8389 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1837, allocations: 3.984 kB / 0.8389 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.46e-05/0.1838, allocations: 77.08 kB / 0.839 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.1838, allocations: 15.88 kB / 0.839 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.1838, allocations: 0 / 0.839 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.331e-05/0.1838, allocations: 0 / 0.839 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.079e-05/0.1838, allocations: 0 / 0.839 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.1838, allocations: 4 kB / 0.839 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.996e-05/0.1839, allocations: 129.8 kB / 0.8391 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1839, allocations: 0 / 0.8391 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003701/0.1843, allocations: 83.8 kB / 0.8392 GB, free: 2.496 MB / 0.5762 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.0009349/0.1852, allocations: 0.7551 MB / 0.8399 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001704/0.1854, allocations: 89.67 kB / 0.84 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1854, allocations: 0 / 0.84 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.003e-05/0.1854, allocations: 11.98 kB / 0.84 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.1856, allocations: 7.938 kB / 0.84 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.1872, allocations: 1.551 MB / 0.8415 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.1875, allocations: 0.6965 MB / 0.8422 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.393e-05/0.1876, allocations: 0 / 0.8422 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.1876, allocations: 23.36 kB / 0.8423 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of SimCode: time 7.41e-07/0.1876, allocations: 0 / 0.8423 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.2126, allocations: 3.634 MB / 0.8458 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.35, allocations: 6.688 kB / 0.8458 GB, free: 11.76 MB / 0.5919 GB " [Timeout remaining time 648] (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: 15.557953006995376] Failed to read output from testmodel.py, exit status != 0: 11.514966826944146 11.536820649 11.351906858 Calling exit ...