Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008232/0.0008232, 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.001346/0.001346, 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.8932/0.8932, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/package.mo): time 0.7092/0.7092, allocations: 154.6 MB / 413.7 MB, free: 0.793 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.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(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.618 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.481e-05/1.642e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.72 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.0009717/0.0009881, allocations: 0.5168 MB / 0.6186 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.002749, allocations: 1.63 MB / 0.6201 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.575e-05/0.002785, allocations: 0 / 0.6201 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.002957, allocations: 59.84 kB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.963e-05/0.002986, allocations: 35.83 kB / 0.6202 GB, free: 11.46 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.0007292/0.003716, allocations: 281.8 kB / 0.6205 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 6.701e-05/0.003783, allocations: 35.91 kB / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.295e-05/0.003816, allocations: 0 / 0.6205 GB, free: 11.15 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.146e-05/0.003857, allocations: 27.89 kB / 0.6206 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.998e-05/0.003907, allocations: 39.95 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.00392, allocations: 0 / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004692/0.004389, allocations: 451 kB / 0.621 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.318e-05/0.004442, allocations: 31.86 kB / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.833e-05/0.00446, allocations: 11.94 kB / 0.6211 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003179/0.004778, allocations: 359.1 kB / 0.6214 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.00478, allocations: 0 / 0.6214 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of FrontEnd: time 6.21e-07/0.00478, allocations: 0 / 0.6214 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.004784, allocations: 0 / 0.6214 GB, free: 10.25 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.0003306/0.005115, allocations: 369.2 kB / 0.6218 GB, free: 9.859 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.00515, allocations: 12.03 kB / 0.6218 GB, free: 9.848 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.507e-05/0.005175, allocations: 34.73 kB / 0.6218 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.039e-05/0.005196, allocations: 8.891 kB / 0.6218 GB, free: 9.797 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.0053, allocations: 121.6 kB / 0.6219 GB, free: 9.652 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.005309, allocations: 8.375 kB / 0.6219 GB, free: 9.645 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.005317, allocations: 4.375 kB / 0.622 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.923e-05/0.005396, allocations: 38.25 kB / 0.622 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.005402, allocations: 192 / 0.622 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.00541, allocations: 4.125 kB / 0.622 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.005413, allocations: 0 / 0.622 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.507e-05/0.005438, allocations: 23.92 kB / 0.622 GB, free: 9.57 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.005562, allocations: 164.6 kB / 0.6222 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 3.599e-05/0.005598, allocations: 26.56 kB / 0.6222 GB, free: 9.332 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.66e-05/0.005615, allocations: 12.92 kB / 0.6222 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.005644, allocations: 8 kB / 0.6222 GB, free: 9.309 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.005659, allocations: 34.56 kB / 0.6223 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.005659, allocations: 0 / 0.6223 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001207/0.00578, allocations: 77.5 kB / 0.6223 GB, free: 9.184 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.005804, allocations: 51.41 kB / 0.6224 GB, free: 9.121 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.005933, allocations: 217.9 kB / 0.6226 GB, free: 8.898 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.005941, allocations: 25.7 kB / 0.6226 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.248e-05/0.005984, allocations: 108.1 kB / 0.6227 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 7.584e-06/0.005991, allocations: 0 / 0.6227 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.006025, allocations: 25.72 kB / 0.6227 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.228e-05/0.006097, allocations: 327 kB / 0.623 GB, free: 8.398 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.581e-05/0.006143, allocations: 59.97 kB / 0.6231 GB, free: 8.34 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.458e-05/0.006178, allocations: 55.97 kB / 0.6232 GB, free: 8.285 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.006369, allocations: 91.44 kB / 0.6232 GB, free: 8.195 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.006371, allocations: 0 / 0.6232 GB, free: 8.195 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001089/0.00648, allocations: 165.5 kB / 0.6234 GB, free: 8.027 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.006491, allocations: 4 kB / 0.6234 GB, free: 8.023 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.006502, allocations: 3.938 kB / 0.6234 GB, free: 8.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.006513, allocations: 3.938 kB / 0.6234 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.151e-05/0.006525, allocations: 7.984 kB / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.006529, allocations: 64 / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.006546, allocations: 11.89 kB / 0.6234 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.006553, allocations: 4 kB / 0.6234 GB, free: 7.992 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 8.704e-05/0.00664, allocations: 130.8 kB / 0.6236 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/0.006649, allocations: 11.91 kB / 0.6236 GB, free: 7.844 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.865e-05/0.006727, allocations: 70.09 kB / 0.6236 GB, free: 7.77 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.00673, allocations: 3.938 kB / 0.6236 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.006733, allocations: 0 / 0.6236 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.006736, allocations: 0 / 0.6236 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.586e-05/0.006812, allocations: 160.8 kB / 0.6238 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.006813, allocations: 0 / 0.6238 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.746e-06/0.006816, allocations: 3.984 kB / 0.6238 GB, free: 7.562 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.006817, allocations: 0 / 0.6238 GB, free: 7.562 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-06/0.006821, allocations: 0 / 0.6238 GB, free: 7.562 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.006823, allocations: 3.938 kB / 0.6238 GB, free: 7.559 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.006824, allocations: 7.938 kB / 0.6238 GB, free: 7.551 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.214e-05/0.006876, allocations: 81.08 kB / 0.6239 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.837e-06/0.006885, allocations: 7.906 kB / 0.6239 GB, free: 7.445 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.297e-06/0.006894, allocations: 4 kB / 0.6239 GB, free: 7.441 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-06/0.006903, allocations: 7.875 kB / 0.6239 GB, free: 7.434 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.148e-05/0.006914, allocations: 8.016 kB / 0.6239 GB, free: 7.426 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-06/0.006915, allocations: 0 / 0.6239 GB, free: 7.426 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.26e-05/0.006998, allocations: 147.4 kB / 0.6241 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006998, allocations: 3.938 kB / 0.6241 GB, free: 7.277 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000223/0.007221, allocations: 87.8 kB / 0.6241 GB, free: 7.191 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.0005009/0.007722, allocations: 0.7575 MB / 0.6249 GB, free: 6.438 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.007848, allocations: 113.7 kB / 0.625 GB, free: 6.32 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.00785, allocations: 0 / 0.625 GB, free: 6.32 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.002e-05/0.00786, allocations: 15.92 kB / 0.625 GB, free: 6.305 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001135/0.007973, allocations: 22.36 kB / 0.625 GB, free: 6.285 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.00904, allocations: 1.819 MB / 0.6268 GB, free: 4.379 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.056e-05/0.009091, allocations: 92.3 kB / 0.6269 GB, free: 4.27 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.37e-05/0.009104, allocations: 4.156 kB / 0.6269 GB, free: 4.266 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.009133, allocations: 28.48 kB / 0.6269 GB, free: 4.238 MB / 0.5886 GB Notification: Performance of SimCode: time 3.81e-07/0.009133, allocations: 0 / 0.6269 GB, free: 4.238 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.02526, allocations: 4.621 MB / 0.6314 GB, free: 15.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.835/6.86, allocations: 7.125 kB / 0.6314 GB, free: 15.75 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d.fmu > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.477519444189966] Failed to read output from testmodel.py, exit status != 0: 6.9432667568326 6.951981529 6.945600072 Calling exit ...