Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0007357/0.0007357, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.001043/0.001043, allocations: 217.7 kB / 22.26 MB, free: 3.703 MB / 13.93 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.9482/0.9482, allocations: 230.6 MB / 256 MB, free: 9.801 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8188/0.8188, allocations: 203.8 MB / 0.5042 GB, free: 10.7 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.00162/0.00162, allocations: 71.67 kB / 0.7182 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5576/0.5592, allocations: 102 MB / 0.8178 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001307/0.5605, allocations: 0.5219 MB / 0.8183 GB, free: 0.9258 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001797/0.5623, allocations: 1.697 MB / 0.82 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.954e-05/0.5623, allocations: 3.938 kB / 0.82 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.5626, allocations: 64.75 kB / 0.8201 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.609e-05/0.5626, allocations: 24.72 kB / 0.8201 GB, free: 15.71 MB / 0.6198 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0009212/0.5635, allocations: 290.4 kB / 0.8204 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.212e-05/0.5636, allocations: 34.34 kB / 0.8204 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.173e-05/0.5637, allocations: 0.7031 kB / 0.8204 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.198e-05/0.5637, allocations: 25.81 kB / 0.8204 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.484e-05/0.5638, allocations: 45.16 kB / 0.8205 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.5638, allocations: 0 / 0.8205 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006694/0.5644, allocations: 491.8 kB / 0.8209 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.133e-05/0.5645, allocations: 25.25 kB / 0.821 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.5645, allocations: 30.06 kB / 0.821 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.5649, allocations: 312.8 kB / 0.8213 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.5649, allocations: 0 / 0.8213 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.186e-06/0.565, allocations: 3.562 kB / 0.8213 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.565, allocations: 0 / 0.8213 GB, free: 15.3 MB / 0.6198 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.000381/0.5653, allocations: 359.7 kB / 0.8216 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.5654, allocations: 14.78 kB / 0.8216 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.56e-05/0.5654, allocations: 34.69 kB / 0.8217 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.5654, allocations: 11.88 kB / 0.8217 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.5656, allocations: 144.6 kB / 0.8218 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.5656, allocations: 384 / 0.8218 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.5656, allocations: 8.031 kB / 0.8218 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.813e-05/0.5657, allocations: 42.08 kB / 0.8219 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.5657, allocations: 3.969 kB / 0.8219 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.5657, allocations: 0 / 0.8219 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.5657, allocations: 0 / 0.8219 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.332e-05/0.5657, allocations: 20.97 kB / 0.8219 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.5659, allocations: 151.4 kB / 0.822 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.298e-05/0.5659, allocations: 25.38 kB / 0.8221 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.5659, allocations: 16.53 kB / 0.8221 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.5659, allocations: 4.219 kB / 0.8221 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.566, allocations: 43.81 kB / 0.8221 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.566, allocations: 4 kB / 0.8221 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001349/0.5661, allocations: 76.36 kB / 0.8222 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.5661, allocations: 51.41 kB / 0.8223 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.5663, allocations: 213 kB / 0.8225 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.408e-06/0.5663, allocations: 26.39 kB / 0.8225 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003067/0.5666, allocations: 101.1 kB / 0.8226 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.5666, allocations: 4.562 kB / 0.8226 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.5667, allocations: 30.25 kB / 0.8226 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.14e-05/0.5667, allocations: 326.8 kB / 0.8229 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.516e-05/0.5668, allocations: 56.36 kB / 0.823 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.924e-05/0.5668, allocations: 58.52 kB / 0.823 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.448e-05/0.5669, allocations: 83.52 kB / 0.8231 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5669, allocations: 0 / 0.8231 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001521/0.5671, allocations: 169.8 kB / 0.8233 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.5671, allocations: 5.281 kB / 0.8233 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.5671, allocations: 2.688 kB / 0.8233 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.5671, allocations: 0.7031 kB / 0.8233 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.727e-05/0.5672, allocations: 4.062 kB / 0.8233 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.5672, allocations: 0.6562 kB / 0.8233 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.539e-05/0.5672, allocations: 15.22 kB / 0.8233 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-06/0.5672, allocations: 1.531 kB / 0.8233 GB, free: 13.63 MB / 0.6198 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.0001493/0.5673, allocations: 132.4 kB / 0.8234 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.5674, allocations: 19.73 kB / 0.8234 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.5675, allocations: 63.56 kB / 0.8235 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.5675, allocations: 5.75 kB / 0.8235 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.5675, allocations: 0 / 0.8235 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.5675, allocations: 0.6562 kB / 0.8235 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.536e-05/0.5676, allocations: 153 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.5676, allocations: 0.6562 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-06/0.5676, allocations: 6.469 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5676, allocations: 0.6562 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.5676, allocations: 0 / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.5676, allocations: 0 / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5676, allocations: 0.6094 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.519e-05/0.5677, allocations: 93.62 kB / 0.8238 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.296e-05/0.5677, allocations: 15.38 kB / 0.8238 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.5677, allocations: 0.7031 kB / 0.8238 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-06/0.5677, allocations: 1 kB / 0.8238 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.5677, allocations: 0.7031 kB / 0.8238 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.5677, allocations: 2.047 kB / 0.8238 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.651e-05/0.5678, allocations: 153.7 kB / 0.8239 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5678, allocations: 0 / 0.8239 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003063/0.5681, allocations: 89.47 kB / 0.824 GB, free: 13.08 MB / 0.6198 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.0006046/0.5687, allocations: 0.7668 MB / 0.8248 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001653/0.5689, allocations: 114.3 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5689, allocations: 1.188 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.09e-05/0.5689, allocations: 9.516 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.569, allocations: 9.594 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.5704, allocations: 1.808 MB / 0.8267 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.5706, allocations: 0.7081 MB / 0.8273 GB, free: 10.42 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.248e-05/0.5706, allocations: 8.688 kB / 0.8274 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.5706, allocations: 28.23 kB / 0.8274 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of SimCode: time 5.71e-07/0.5706, allocations: 0 / 0.8274 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.5909, allocations: 4.079 MB / 0.8314 GB, free: 9.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.725/7.316, allocations: 4.594 kB / 0.8314 GB, free: 9.77 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.22875160118565] Failed to read output from testmodel.py, exit status != 0: 7.395166391972452 7.408326845 6.840707347 Calling exit ...