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.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.001355/0.001355, allocations: 78.81 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001478/0.001478, allocations: 162.7 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.413/1.413, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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 1.232/1.232, allocations: 154.6 MB / 413.7 MB, free: 5.305 MB / 382.1 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 178] 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: translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.6185 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.178e-05/3.332e-05, allocations: 6.141 kB / 0.6185 GB, free: 4.699 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001668/0.001701, allocations: 0.5166 MB / 0.619 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002812/0.004513, allocations: 1.606 MB / 0.6206 GB, free: 2.57 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.00455, allocations: 3.938 kB / 0.6206 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.004716, allocations: 19.91 kB / 0.6206 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.461e-05/0.00474, allocations: 7.984 kB / 0.6206 GB, free: 2.539 MB / 0.5294 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.001081/0.005821, allocations: 286 kB / 0.6209 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.445e-05/0.005905, allocations: 27.91 kB / 0.6209 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.823e-05/0.005943, allocations: 0 / 0.6209 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.212e-05/0.005996, allocations: 15.92 kB / 0.6209 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.268e-05/0.006038, allocations: 15.98 kB / 0.6209 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.006053, allocations: 0 / 0.6209 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008381/0.006891, allocations: 463 kB / 0.6214 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.741e-05/0.006948, allocations: 16 kB / 0.6214 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.006974, allocations: 11.92 kB / 0.6214 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005187/0.007493, allocations: 343.2 kB / 0.6217 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.007495, allocations: 3.938 kB / 0.6217 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.92e-07/0.007496, allocations: 0 / 0.6217 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.007505, allocations: 0 / 0.6217 GB, free: 1.383 MB / 0.5294 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.0004645/0.007969, allocations: 337.5 kB / 0.622 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.008013, allocations: 9.469 kB / 0.622 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.008052, allocations: 16.89 kB / 0.6221 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.008214, allocations: 117.7 kB / 0.6222 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.008227, allocations: 4.375 kB / 0.6222 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.008245, allocations: 4.375 kB / 0.6222 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.008349, allocations: 42.19 kB / 0.6222 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.008358, allocations: 192 / 0.6222 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.008365, allocations: 384 / 0.6222 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.008372, allocations: 3.938 kB / 0.6222 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.001e-05/0.008402, allocations: 15.98 kB / 0.6222 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.00856, allocations: 125.2 kB / 0.6224 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.393e-05/0.008614, allocations: 26.56 kB / 0.6224 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.842e-05/0.008642, allocations: 20.92 kB / 0.6224 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.86e-05/0.008681, allocations: 11.98 kB / 0.6224 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.008708, allocations: 42.48 kB / 0.6225 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.008709, allocations: 3.938 kB / 0.6225 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001545/0.008863, allocations: 57.64 kB / 0.6225 GB, free: 456 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.008903, allocations: 55.34 kB / 0.6226 GB, free: 388 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.009068, allocations: 173.5 kB / 0.6227 GB, free: 208 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.009084, allocations: 25.7 kB / 0.6228 GB, free: 176 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.009145, allocations: 92.14 kB / 0.6228 GB, free: 80 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.009156, allocations: 8.078 kB / 0.6229 GB, free: 72 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.974e-05/0.009196, allocations: 25.7 kB / 0.6229 GB, free: 40 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.009347, allocations: 322.8 kB / 0.6232 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.664e-05/0.009403, allocations: 39.98 kB / 0.6232 GB, free: 15.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.37e-05/0.009447, allocations: 35.98 kB / 0.6233 GB, free: 15.64 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.832e-05/0.009545, allocations: 80.2 kB / 0.6233 GB, free: 15.56 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.009547, allocations: 0 / 0.6233 GB, free: 15.56 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001513/0.009699, allocations: 125.6 kB / 0.6235 GB, free: 15.43 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.009711, allocations: 4 kB / 0.6235 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.009724, allocations: 4 kB / 0.6235 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.009737, allocations: 0 / 0.6235 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.21e-05/0.009749, allocations: 4.062 kB / 0.6235 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.009755, allocations: 3.938 kB / 0.6235 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.172e-05/0.009786, allocations: 11.89 kB / 0.6235 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.009795, allocations: 0 / 0.6235 GB, free: 15.41 MB / 0.545 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.0001591/0.009954, allocations: 126.8 kB / 0.6236 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.145e-05/0.009965, allocations: 3.953 kB / 0.6236 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.01008, allocations: 65.38 kB / 0.6237 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.01008, allocations: 0 / 0.6237 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.01009, allocations: 3.938 kB / 0.6237 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01009, allocations: 8.031 kB / 0.6237 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.967e-05/0.01019, allocations: 121.3 kB / 0.6238 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.01019, allocations: 0 / 0.6238 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-06/0.0102, allocations: 0 / 0.6238 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.0102, allocations: 0 / 0.6238 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.0102, allocations: 0 / 0.6238 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01021, allocations: 3.984 kB / 0.6238 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01021, allocations: 4 kB / 0.6238 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.47e-05/0.0103, allocations: 84.95 kB / 0.6239 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-06/0.01031, allocations: 3.953 kB / 0.6239 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.01033, allocations: 12.03 kB / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.214e-05/0.01034, allocations: 0 / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.716e-05/0.01036, allocations: 3.984 kB / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.01036, allocations: 3.938 kB / 0.6239 GB, free: 14.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.248e-05/0.01045, allocations: 119.2 kB / 0.624 GB, free: 14.79 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01045, allocations: 3.938 kB / 0.624 GB, free: 14.78 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003192/0.01077, allocations: 87.8 kB / 0.6241 GB, free: 14.7 MB / 0.545 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.0005931/0.01137, allocations: 251.9 kB / 0.6243 GB, free: 14.47 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001845/0.01155, allocations: 89.67 kB / 0.6244 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01155, allocations: 4 kB / 0.6244 GB, free: 14.37 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.999e-05/0.01157, allocations: 11.98 kB / 0.6244 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001478/0.01172, allocations: 4 kB / 0.6245 GB, free: 14.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003597/0.01208, allocations: 172.1 kB / 0.6246 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.824e-05/0.01218, allocations: 87.62 kB / 0.6247 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.707e-05/0.0122, allocations: 0 / 0.6247 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.061e-05/0.01222, allocations: 12.44 kB / 0.6247 GB, free: 14.05 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/0.01222, allocations: 0 / 0.6247 GB, free: 14.05 MB / 0.545 GB Notification: Performance of Templates: time 0.005552/0.01777, allocations: 2.171 MB / 0.6268 GB, free: 11.88 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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 & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.735099341720343] Failed to read output from testmodel.py, exit status != 0: 0.026392389088869095 0.040182969000000006 0.029657818000000002 Calling exit ...