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.001067/0.001067, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 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.001271/0.001271, allocations: 173 kB / 23.02 MB, free: 1.547 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.9549/0.9549, allocations: 177.1 MB / 203.4 MB, free: 5.629 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-535:34: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-535:42: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.7538/0.7538, allocations: 154.9 MB / 414.8 MB, free: 392 kB / 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: 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 2.324e-06/2.324e-06, allocations: 0 / 0.5206 GB, free: 0.793 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.3e-05/3.533e-05, allocations: 2.312 kB / 0.5206 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001978/0.002014, allocations: 0.5266 MB / 0.5211 GB, free: 292 kB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.004565, allocations: 1.65 MB / 0.5228 GB, free: 14.62 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.223e-05/0.004617, allocations: 4.719 kB / 0.5228 GB, free: 14.62 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.004811, allocations: 23.84 kB / 0.5228 GB, free: 14.59 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 3.053e-05/0.004841, allocations: 10.91 kB / 0.5228 GB, free: 14.59 MB / 458.7 MB [/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.001229/0.00607, allocations: 283.5 kB / 0.5231 GB, free: 14.31 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.006172, allocations: 23.92 kB / 0.5231 GB, free: 14.29 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.465e-05/0.006217, allocations: 0.75 kB / 0.5231 GB, free: 14.29 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.354e-05/0.00627, allocations: 15.97 kB / 0.5231 GB, free: 14.27 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.86e-05/0.006319, allocations: 12.83 kB / 0.5231 GB, free: 14.26 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.006339, allocations: 0.9688 kB / 0.5231 GB, free: 14.26 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008426/0.007182, allocations: 459 kB / 0.5236 GB, free: 13.81 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 6.704e-05/0.007249, allocations: 24.89 kB / 0.5236 GB, free: 13.79 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.007275, allocations: 4 kB / 0.5236 GB, free: 13.78 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005411/0.007816, allocations: 351.5 kB / 0.5239 GB, free: 13.44 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.007821, allocations: 4.953 kB / 0.5239 GB, free: 13.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007822, allocations: 0 / 0.5239 GB, free: 13.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.007827, allocations: 0 / 0.5239 GB, free: 13.43 MB / 458.7 MB 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.0005598/0.008386, allocations: 437.7 kB / 0.5243 GB, free: 12.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.008442, allocations: 8.031 kB / 0.5244 GB, free: 12.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.008497, allocations: 12.83 kB / 0.5244 GB, free: 12.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.008678, allocations: 132.5 kB / 0.5245 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.008692, allocations: 384 / 0.5245 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.008703, allocations: 0.875 kB / 0.5245 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.008817, allocations: 31.3 kB / 0.5245 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.008826, allocations: 192 / 0.5245 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.008836, allocations: 1.594 kB / 0.5245 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.008855, allocations: 7.922 kB / 0.5245 GB, free: 12.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.563e-05/0.008871, allocations: 3.938 kB / 0.5245 GB, free: 12.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002083/0.009079, allocations: 141.3 kB / 0.5247 GB, free: 12.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.849e-05/0.009138, allocations: 27 kB / 0.5247 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.025e-05/0.009158, allocations: 13.22 kB / 0.5247 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.009208, allocations: 4 kB / 0.5247 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.00924, allocations: 37.38 kB / 0.5247 GB, free: 12.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 2.645e-06/0.009243, allocations: 0.8125 kB / 0.5247 GB, free: 12.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001689/0.009412, allocations: 45.61 kB / 0.5248 GB, free: 12.42 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.009454, allocations: 60.38 kB / 0.5248 GB, free: 12.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.009623, allocations: 220.5 kB / 0.5251 GB, free: 12.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.009637, allocations: 25.7 kB / 0.5251 GB, free: 12.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.746e-05/0.009704, allocations: 147.8 kB / 0.5252 GB, free: 11.94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.009717, allocations: 0 / 0.5252 GB, free: 11.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.052e-05/0.009768, allocations: 39.36 kB / 0.5253 GB, free: 11.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.009919, allocations: 0.4893 MB / 0.5257 GB, free: 11.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.559e-05/0.009945, allocations: 11.98 kB / 0.5258 GB, free: 11.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.541e-05/0.00997, allocations: 8.594 kB / 0.5258 GB, free: 11.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.132e-05/0.01003, allocations: 43 kB / 0.5258 GB, free: 11.33 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.01003, allocations: 0.7188 kB / 0.5258 GB, free: 11.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001136/0.01015, allocations: 78.33 kB / 0.5259 GB, free: 11.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.01016, allocations: 4 kB / 0.5259 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.01019, allocations: 4.906 kB / 0.5259 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.0102, allocations: 0 / 0.5259 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.722e-05/0.01022, allocations: 0 / 0.5259 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.01023, allocations: 10.78 kB / 0.5259 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.13e-05/0.01026, allocations: 11.89 kB / 0.5259 GB, free: 11.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.01027, allocations: 0 / 0.5259 GB, free: 11.22 MB / 458.7 MB 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.0001049/0.01038, allocations: 164.6 kB / 0.5261 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.01039, allocations: 7.953 kB / 0.5261 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.0105, allocations: 38.66 kB / 0.5261 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.0105, allocations: 0 / 0.5261 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.01051, allocations: 3.938 kB / 0.5261 GB, free: 10.99 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.01051, allocations: 0 / 0.5261 GB, free: 10.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.01062, allocations: 137.2 kB / 0.5262 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.01062, allocations: 0.5625 kB / 0.5262 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.943e-06/0.01062, allocations: 3.938 kB / 0.5262 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.01063, allocations: 4.922 kB / 0.5263 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.01064, allocations: 0 / 0.5263 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.01064, allocations: 1.438 kB / 0.5263 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.01064, allocations: 3.984 kB / 0.5263 GB, free: 10.81 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.351e-05/0.01072, allocations: 80.34 kB / 0.5263 GB, free: 10.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.098e-05/0.01073, allocations: 4.547 kB / 0.5263 GB, free: 10.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.01075, allocations: 7.984 kB / 0.5263 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.254e-05/0.01076, allocations: 1.156 kB / 0.5263 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.01078, allocations: 0 / 0.5263 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.01079, allocations: 3.938 kB / 0.5263 GB, free: 10.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 9.654e-05/0.01088, allocations: 160.8 kB / 0.5265 GB, free: 10.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01089, allocations: 0 / 0.5265 GB, free: 10.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003864/0.01127, allocations: 87.8 kB / 0.5266 GB, free: 10.46 MB / 458.7 MB 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.0006094/0.01188, allocations: 261.4 kB / 0.5268 GB, free: 10.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.01203, allocations: 76.36 kB / 0.5269 GB, free: 10.14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01204, allocations: 0 / 0.5269 GB, free: 10.14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.431e-05/0.01205, allocations: 12.28 kB / 0.5269 GB, free: 10.13 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001668/0.01222, allocations: 9.062 kB / 0.5269 GB, free: 10.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003047/0.01252, allocations: 146.6 kB / 0.5271 GB, free: 9.949 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.586e-05/0.01257, allocations: 67.14 kB / 0.5271 GB, free: 9.863 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.482e-05/0.01259, allocations: 4.656 kB / 0.5271 GB, free: 9.859 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.05e-05/0.01261, allocations: 11.94 kB / 0.5271 GB, free: 9.852 MB / 458.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01261, allocations: 0 / 0.5271 GB, free: 9.852 MB / 458.7 MB Notification: Performance of Templates: time 0.00683/0.01944, allocations: 2.607 MB / 0.5297 GB, free: 7.387 MB / 458.7 MB " [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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.684918613638729]