Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001956/0.001956, allocations: 114.7 kB / 17.6 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002272/0.002272, allocations: 189.9 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 225.6 MB / 249.4 MB, free: 3.137 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.113/1.113, allocations: 175.7 MB / 480.2 MB, free: 3.137 MB / 366.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 74.23 kB / 0.6679 GB, free: 10.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1928, allocations: 94.53 MB / 0.7602 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001615/0.1945, allocations: 0.5106 MB / 0.7607 GB, free: 324 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002448/0.1969, allocations: 1.628 MB / 0.7623 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.842e-05/0.1969, allocations: 0 / 0.7623 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.1971, allocations: 23.84 kB / 0.7623 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.739e-05/0.1971, allocations: 7.984 kB / 0.7623 GB, free: 14.64 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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/IDEAS 3.0.0-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.0008447/0.1979, allocations: 247.3 kB / 0.7625 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.822e-05/0.198, allocations: 23.92 kB / 0.7626 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.198, allocations: 288 / 0.7626 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.966e-05/0.1981, allocations: 15.97 kB / 0.7626 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.1981, allocations: 19.91 kB / 0.7626 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.1981, allocations: 0 / 0.7626 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005664/0.1987, allocations: 363.4 kB / 0.7629 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.1987, allocations: 19.92 kB / 0.763 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.693e-05/0.1988, allocations: 19.81 kB / 0.763 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003891/0.1991, allocations: 287.1 kB / 0.7632 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1991, allocations: 0 / 0.7632 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.196e-06/0.1992, allocations: 3.984 kB / 0.7632 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.1992, allocations: 4 kB / 0.7633 GB, free: 13.66 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.0004436/0.1996, allocations: 402.7 kB / 0.7636 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1996, allocations: 12.03 kB / 0.7636 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.283e-05/0.1997, allocations: 30.75 kB / 0.7637 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.931e-05/0.1997, allocations: 20.83 kB / 0.7637 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001725/0.1999, allocations: 184.2 kB / 0.7639 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.214e-06/0.1999, allocations: 4.375 kB / 0.7639 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.1999, allocations: 384 / 0.7639 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.216e-05/0.2, allocations: 45.75 kB / 0.7639 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.2, allocations: 3.938 kB / 0.7639 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-06/0.2, allocations: 3.938 kB / 0.7639 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2, allocations: 0 / 0.7639 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.723e-05/0.2, allocations: 12 kB / 0.7639 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.2002, allocations: 177.7 kB / 0.7641 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.521e-05/0.2003, allocations: 26.56 kB / 0.7641 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.231e-05/0.2003, allocations: 12.92 kB / 0.7641 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.2003, allocations: 4 kB / 0.7642 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.2003, allocations: 42.42 kB / 0.7642 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.2003, allocations: 0 / 0.7642 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.2005, allocations: 61.64 kB / 0.7643 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.2005, allocations: 55.53 kB / 0.7643 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.2007, allocations: 177.3 kB / 0.7645 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.2007, allocations: 25.7 kB / 0.7645 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.729e-05/0.2008, allocations: 88.14 kB / 0.7646 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.147e-05/0.2008, allocations: 3.953 kB / 0.7646 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.2008, allocations: 33.7 kB / 0.7646 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.201, allocations: 314.8 kB / 0.7649 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.983e-05/0.201, allocations: 43.98 kB / 0.765 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.558e-05/0.2011, allocations: 47.86 kB / 0.765 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.792e-05/0.2012, allocations: 76.75 kB / 0.7651 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2012, allocations: 0 / 0.7651 GB, free: 11.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001604/0.2013, allocations: 125.5 kB / 0.7652 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.2014, allocations: 8 kB / 0.7652 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.2014, allocations: 0 / 0.7652 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.2014, allocations: 0 / 0.7652 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-05/0.2014, allocations: 0 / 0.7652 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2014, allocations: 4 kB / 0.7652 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.2014, allocations: 7.891 kB / 0.7652 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.2014, allocations: 4.062 kB / 0.7652 GB, free: 11.41 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.0001567/0.2016, allocations: 125.8 kB / 0.7653 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.2016, allocations: 11.89 kB / 0.7654 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.2017, allocations: 61.48 kB / 0.7654 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.2017, allocations: 4 kB / 0.7654 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2017, allocations: 0 / 0.7654 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.2017, allocations: 0 / 0.7654 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.2019, allocations: 169.7 kB / 0.7656 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2019, allocations: 0 / 0.7656 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.633e-06/0.2019, allocations: 3.938 kB / 0.7656 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2019, allocations: 0 / 0.7656 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.2019, allocations: 4 kB / 0.7656 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2019, allocations: 0 / 0.7656 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2019, allocations: 4 kB / 0.7656 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.392e-05/0.202, allocations: 88.95 kB / 0.7657 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.118e-05/0.202, allocations: 89.03 kB / 0.7658 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.2021, allocations: 0 / 0.7658 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.76e-05/0.2021, allocations: 7.984 kB / 0.7658 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.489e-05/0.2021, allocations: 0 / 0.7658 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.2021, allocations: 0 / 0.7658 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001006/0.2022, allocations: 123.2 kB / 0.7659 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.2022, allocations: 0 / 0.7659 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003897/0.2026, allocations: 83.8 kB / 0.766 GB, free: 10.54 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.0008563/0.2034, allocations: 0.7464 MB / 0.7667 GB, free: 9.789 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001864/0.2036, allocations: 97.64 kB / 0.7668 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2036, allocations: 0 / 0.7668 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.768e-05/0.2036, allocations: 11.98 kB / 0.7668 GB, free: 9.676 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.2038, allocations: 12 kB / 0.7668 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.2055, allocations: 1.534 MB / 0.7683 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.2058, allocations: 0.6924 MB / 0.769 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.604e-05/0.2058, allocations: 7.953 kB / 0.769 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.206e-05/0.2059, allocations: 15.44 kB / 0.769 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/0.2059, allocations: 0 / 0.769 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.2337, allocations: 3.491 MB / 0.7724 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.405, allocations: 7.641 kB / 0.7724 GB, free: 3.895 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.313011694001034] Failed to read output from testmodel.py, exit status != 0: 8.4787029880099 8.507224814 8.302941675 Calling exit ...