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.001161/0.001161, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.0008886/0.0008886, allocations: 209.2 kB / 22.24 MB, free: 3.59 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.9818/0.9818, allocations: 230.6 MB / 256 MB, free: 9.59 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.8097/0.8097, allocations: 203.8 MB / 0.5042 GB, free: 10.41 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.001033/0.001033, allocations: 61.5 kB / 0.7181 GB, free: 4.082 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6298/0.6308, allocations: 102 MB / 0.8178 GB, free: 1.047 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.00128/0.6321, allocations: 0.5218 MB / 0.8183 GB, free: 0.7305 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001551/0.6336, allocations: 1.606 MB / 0.8198 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.6336, allocations: 0 / 0.8198 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.6338, allocations: 64.92 kB / 0.8199 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.326e-05/0.6339, allocations: 35.16 kB / 0.8199 GB, free: 15.61 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.0007287/0.6346, allocations: 281.5 kB / 0.8202 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.846e-05/0.6347, allocations: 34.84 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.123e-05/0.6347, allocations: 0.7969 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.791e-05/0.6348, allocations: 26.86 kB / 0.8203 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.532e-05/0.6348, allocations: 52.08 kB / 0.8203 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.6348, allocations: 0 / 0.8203 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005894/0.6354, allocations: 442.4 kB / 0.8207 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.928e-05/0.6355, allocations: 30.89 kB / 0.8208 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.508e-05/0.6355, allocations: 21.23 kB / 0.8208 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.6359, allocations: 313.1 kB / 0.8211 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.6359, allocations: 2.719 kB / 0.8211 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.093e-06/0.6359, allocations: 5.188 kB / 0.8211 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.6359, allocations: 0 / 0.8211 GB, free: 15.24 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.000364/0.6362, allocations: 364.8 kB / 0.8214 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.6363, allocations: 10.53 kB / 0.8215 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.613e-05/0.6363, allocations: 30.75 kB / 0.8215 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.293e-05/0.6363, allocations: 14.12 kB / 0.8215 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.6364, allocations: 138.8 kB / 0.8216 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.6365, allocations: 384 / 0.8216 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-06/0.6365, allocations: 3.562 kB / 0.8216 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.244e-05/0.6365, allocations: 39.75 kB / 0.8217 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.6365, allocations: 7.141 kB / 0.8217 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.6366, allocations: 0 / 0.8217 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.6366, allocations: 0 / 0.8217 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.724e-05/0.6366, allocations: 17.58 kB / 0.8217 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001327/0.6367, allocations: 152.3 kB / 0.8218 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.299e-05/0.6368, allocations: 32.45 kB / 0.8219 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.578e-05/0.6368, allocations: 13.53 kB / 0.8219 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.6368, allocations: 10.58 kB / 0.8219 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.6369, allocations: 41.77 kB / 0.8219 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 4.61e-07/0.6369, allocations: 0 / 0.8219 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.00014/0.637, allocations: 71.77 kB / 0.822 GB, free: 14.37 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.637, allocations: 51.97 kB / 0.822 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.6372, allocations: 211.4 kB / 0.8222 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.367e-06/0.6372, allocations: 27.11 kB / 0.8223 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.449e-05/0.6373, allocations: 105.9 kB / 0.8224 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.062e-05/0.6373, allocations: 9.359 kB / 0.8224 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.6373, allocations: 28.23 kB / 0.8224 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.772e-05/0.6374, allocations: 323.6 kB / 0.8227 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.166e-05/0.6375, allocations: 53.7 kB / 0.8228 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.527e-05/0.6375, allocations: 53.06 kB / 0.8228 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.752e-05/0.6376, allocations: 89.38 kB / 0.8229 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.6376, allocations: 4 kB / 0.8229 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001354/0.6377, allocations: 168 kB / 0.8231 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.6378, allocations: 5.219 kB / 0.8231 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.6378, allocations: 1.938 kB / 0.8231 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.6378, allocations: 1.125 kB / 0.8231 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.079e-05/0.6378, allocations: 4.5 kB / 0.8231 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.6378, allocations: 1.344 kB / 0.8231 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.136e-05/0.6378, allocations: 18.94 kB / 0.8231 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.6378, allocations: 1.312 kB / 0.8231 GB, free: 13.58 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.0001135/0.6379, allocations: 140.6 kB / 0.8232 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.6379, allocations: 12.05 kB / 0.8232 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.316e-05/0.638, allocations: 67.23 kB / 0.8233 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.638, allocations: 1.344 kB / 0.8233 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.638, allocations: 0 / 0.8233 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6381, allocations: 0.7969 kB / 0.8233 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.673e-05/0.6381, allocations: 152.9 kB / 0.8235 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6381, allocations: 1.406 kB / 0.8235 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.497e-06/0.6381, allocations: 4.641 kB / 0.8235 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-07/0.6381, allocations: 32 / 0.8235 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-06/0.6381, allocations: 5.281 kB / 0.8235 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.6381, allocations: 0.75 kB / 0.8235 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.6381, allocations: 3.938 kB / 0.8235 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.976e-05/0.6382, allocations: 86.3 kB / 0.8236 GB, free: 13.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.035e-05/0.6382, allocations: 15.33 kB / 0.8236 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.799e-06/0.6382, allocations: 2.125 kB / 0.8236 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.773e-06/0.6382, allocations: 0 / 0.8236 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.6382, allocations: 2.297 kB / 0.8236 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.92e-07/0.6382, allocations: 0 / 0.8236 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001061/0.6384, allocations: 151.3 kB / 0.8237 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.6384, allocations: 4.031 kB / 0.8237 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002425/0.6386, allocations: 93.33 kB / 0.8238 GB, free: 13.03 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.0005665/0.6392, allocations: 0.7527 MB / 0.8246 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001565/0.6393, allocations: 118.8 kB / 0.8247 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.6393, allocations: 0 / 0.8247 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.276e-05/0.6393, allocations: 12.19 kB / 0.8247 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001118/0.6394, allocations: 8.969 kB / 0.8247 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.6408, allocations: 1.812 MB / 0.8265 GB, free: 11.08 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.579e-05/0.6409, allocations: 96 kB / 0.8265 GB, free: 11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.143e-05/0.6409, allocations: 9.156 kB / 0.8266 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.511e-05/0.641, allocations: 27.33 kB / 0.8266 GB, free: 10.97 MB / 0.6198 GB Notification: Performance of SimCode: time 4e-07/0.641, allocations: 160 / 0.8266 GB, free: 10.97 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.663, allocations: 4.47 MB / 0.8309 GB, free: 9.934 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.529/7.192, allocations: 13.7 kB / 0.831 GB, free: 9.922 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d_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_2d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.282686609774828] Failed to read output from testmodel.py, exit status != 0: 7.272928845603019 7.287027806 6.648500213 Calling exit ...