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.0008477/0.0008477, 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.0009514/0.0009514, 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.9163/0.9163, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.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.7304/0.7304, allocations: 154.5 MB / 413.7 MB, free: 0.8242 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.618 GB, free: 13.75 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.041e-05, allocations: 2.281 kB / 0.618 GB, free: 13.75 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001096/0.001116, allocations: 0.5236 MB / 0.6185 GB, free: 13.23 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.00156/0.002676, allocations: 1.606 MB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.756e-05/0.002714, allocations: 7.938 kB / 0.6201 GB, free: 11.6 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.002884, allocations: 55.89 kB / 0.6201 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.59e-05/0.00291, allocations: 39.83 kB / 0.6202 GB, free: 11.5 MB / 0.5886 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.0007022/0.003613, allocations: 271 kB / 0.6204 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 6.841e-05/0.003681, allocations: 39.89 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.506e-05/0.003716, allocations: 0 / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.219e-05/0.003758, allocations: 19.97 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.141e-05/0.00381, allocations: 47.88 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.003823, allocations: 0 / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004708/0.004294, allocations: 455.1 kB / 0.621 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.122e-05/0.004345, allocations: 27.92 kB / 0.621 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.004366, allocations: 15.92 kB / 0.621 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003188/0.004685, allocations: 355.1 kB / 0.6214 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.004688, allocations: 0 / 0.6214 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.172e-06/0.004689, allocations: 4 kB / 0.6214 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.004693, allocations: 0 / 0.6214 GB, free: 10.29 MB / 0.5886 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.0003384/0.005031, allocations: 361.3 kB / 0.6217 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.005072, allocations: 13.47 kB / 0.6217 GB, free: 9.898 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.005098, allocations: 34.73 kB / 0.6218 GB, free: 9.855 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.538e-05/0.005123, allocations: 16.89 kB / 0.6218 GB, free: 9.84 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.005246, allocations: 125.6 kB / 0.6219 GB, free: 9.691 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.005254, allocations: 4.375 kB / 0.6219 GB, free: 9.688 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-06/0.005261, allocations: 4.312 kB / 0.6219 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.288e-05/0.005344, allocations: 38.25 kB / 0.6219 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.00535, allocations: 192 / 0.6219 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-06/0.005356, allocations: 4.125 kB / 0.6219 GB, free: 9.637 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.005361, allocations: 0 / 0.6219 GB, free: 9.637 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.378e-05/0.005384, allocations: 19.98 kB / 0.622 GB, free: 9.617 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.005514, allocations: 160.7 kB / 0.6221 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 3.929e-05/0.005553, allocations: 30.56 kB / 0.6221 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.702e-05/0.005571, allocations: 20.8 kB / 0.6222 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.005602, allocations: 8 kB / 0.6222 GB, free: 9.348 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.00562, allocations: 34.56 kB / 0.6222 GB, free: 9.305 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 1.563e-06/0.005622, allocations: 3.984 kB / 0.6222 GB, free: 9.301 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0002571/0.005879, allocations: 69.56 kB / 0.6223 GB, free: 9.227 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.005906, allocations: 51.41 kB / 0.6223 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.006036, allocations: 213 kB / 0.6225 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.006046, allocations: 25.7 kB / 0.6225 GB, free: 8.914 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.006087, allocations: 104.1 kB / 0.6226 GB, free: 8.809 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.063e-05/0.006098, allocations: 8.125 kB / 0.6227 GB, free: 8.801 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.006127, allocations: 25.72 kB / 0.6227 GB, free: 8.77 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.243e-05/0.00621, allocations: 330.8 kB / 0.623 GB, free: 8.438 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.672e-05/0.006256, allocations: 51.92 kB / 0.623 GB, free: 8.387 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.495e-05/0.006291, allocations: 55.97 kB / 0.6231 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.736e-05/0.006359, allocations: 96.14 kB / 0.6232 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.006361, allocations: 0 / 0.6232 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001109/0.006472, allocations: 157.6 kB / 0.6233 GB, free: 8.078 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.006484, allocations: 4 kB / 0.6233 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.006496, allocations: 0 / 0.6233 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.00651, allocations: 11.92 kB / 0.6234 GB, free: 8.062 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.251e-05/0.006522, allocations: 4.062 kB / 0.6234 GB, free: 8.059 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.006526, allocations: 0 / 0.6234 GB, free: 8.059 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.092e-05/0.006547, allocations: 15.83 kB / 0.6234 GB, free: 8.043 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.006556, allocations: 4 kB / 0.6234 GB, free: 8.039 MB / 0.5886 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.0001205/0.006676, allocations: 130.8 kB / 0.6235 GB, free: 7.902 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-06/0.006685, allocations: 11.91 kB / 0.6235 GB, free: 7.891 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.028e-05/0.006775, allocations: 66.17 kB / 0.6236 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.006777, allocations: 3.938 kB / 0.6236 GB, free: 7.812 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.006781, allocations: 4.031 kB / 0.6236 GB, free: 7.809 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.006783, allocations: 0 / 0.6236 GB, free: 7.809 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.272e-05/0.006856, allocations: 148.7 kB / 0.6237 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.006857, allocations: 0 / 0.6237 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-06/0.006867, allocations: 7.984 kB / 0.6237 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.006869, allocations: 0 / 0.6237 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.006875, allocations: 8 kB / 0.6237 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.006878, allocations: 3.938 kB / 0.6237 GB, free: 7.602 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.006879, allocations: 0 / 0.6237 GB, free: 7.602 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.866e-05/0.006937, allocations: 81.02 kB / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/0.006948, allocations: 11.91 kB / 0.6238 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-06/0.006957, allocations: 4.031 kB / 0.6238 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.278e-06/0.006966, allocations: 3.938 kB / 0.6238 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.161e-05/0.006978, allocations: 3.984 kB / 0.6238 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-06/0.006979, allocations: 7.875 kB / 0.6238 GB, free: 7.473 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.288e-05/0.007052, allocations: 152.3 kB / 0.624 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.007052, allocations: 0 / 0.624 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002525/0.007304, allocations: 87.8 kB / 0.6241 GB, free: 7.238 MB / 0.5886 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.0005453/0.007849, allocations: 0.7663 MB / 0.6248 GB, free: 6.477 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001327/0.007982, allocations: 113.7 kB / 0.6249 GB, free: 6.359 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.007984, allocations: 0 / 0.6249 GB, free: 6.359 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.153e-05/0.007995, allocations: 15.98 kB / 0.625 GB, free: 6.344 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000115/0.00811, allocations: 7.938 kB / 0.625 GB, free: 6.336 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.009238, allocations: 1.825 MB / 0.6267 GB, free: 4.43 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.366e-05/0.009301, allocations: 104.2 kB / 0.6268 GB, free: 4.309 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.026e-05/0.009322, allocations: 3.938 kB / 0.6268 GB, free: 4.305 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.009359, allocations: 32.48 kB / 0.6269 GB, free: 4.273 MB / 0.5886 GB Notification: Performance of SimCode: time 6.91e-07/0.00936, allocations: 0 / 0.6269 GB, free: 4.273 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.02931, allocations: 4.617 MB / 0.6314 GB, free: 15.78 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.125/7.154, allocations: 10.16 kB / 0.6314 GB, free: 15.78 MB / 0.6042 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: 9.844186577945948] Failed to read output from testmodel.py, exit status != 0: 7.235575057566166 7.243993854 7.237511698 Calling exit ...