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.001076/0.001076, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001072/0.001072, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.054/1.054, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.825/0.825, allocations: 154.9 MB / 415.9 MB, free: 264 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 1.423e-06/1.423e-06, allocations: 0 / 0.5218 GB, free: 1.602 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.926e-05/2.068e-05, allocations: 2.812 kB / 0.5218 GB, free: 1.598 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001136/0.001156, allocations: 0.5155 MB / 0.5224 GB, free: 1.105 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.002932, allocations: 1.644 MB / 0.524 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.675e-05/0.002979, allocations: 0 / 0.524 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.003136, allocations: 25.16 kB / 0.524 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 2.528e-05/0.003162, allocations: 11.98 kB / 0.524 GB, free: 15.41 MB / 0.4948 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.0007505/0.003912, allocations: 273.3 kB / 0.5243 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 6.288e-05/0.003975, allocations: 23.91 kB / 0.5243 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.838e-05/0.004014, allocations: 4.969 kB / 0.5243 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.114e-05/0.004055, allocations: 15.92 kB / 0.5243 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 4.308e-05/0.004098, allocations: 18.58 kB / 0.5243 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.004112, allocations: 0 / 0.5243 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005112/0.004623, allocations: 462.9 kB / 0.5248 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.004668, allocations: 15.98 kB / 0.5248 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.504e-05/0.004683, allocations: 7.938 kB / 0.5248 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.005022, allocations: 348.6 kB / 0.5251 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.005024, allocations: 3.938 kB / 0.5251 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.112e-06/0.005025, allocations: 0 / 0.5251 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.005029, allocations: 4 kB / 0.5251 GB, free: 14.27 MB / 0.4948 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.0003423/0.005371, allocations: 436.4 kB / 0.5255 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.005404, allocations: 9.062 kB / 0.5255 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.005433, allocations: 8.891 kB / 0.5256 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.005551, allocations: 128.5 kB / 0.5257 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.00556, allocations: 1.562 kB / 0.5257 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-06/0.005566, allocations: 384 / 0.5257 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.039e-05/0.005626, allocations: 38.25 kB / 0.5257 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.005633, allocations: 0.75 kB / 0.5257 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-06/0.005638, allocations: 1.406 kB / 0.5257 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.005643, allocations: 3.938 kB / 0.5257 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.416e-06/0.005652, allocations: 3.938 kB / 0.5257 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.005764, allocations: 122.8 kB / 0.5258 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.542e-05/0.005799, allocations: 23.06 kB / 0.5259 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.242e-05/0.005812, allocations: 11.75 kB / 0.5259 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/0.005845, allocations: 7.984 kB / 0.5259 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.006025, allocations: 34.61 kB / 0.5259 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.006027, allocations: 0 / 0.5259 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001042/0.006131, allocations: 42.28 kB / 0.526 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.006161, allocations: 51.41 kB / 0.526 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.00628, allocations: 226.3 kB / 0.5262 GB, free: 13 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.00629, allocations: 25.7 kB / 0.5262 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.115e-05/0.006341, allocations: 150.8 kB / 0.5264 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.214e-05/0.006353, allocations: 5.406 kB / 0.5264 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.006392, allocations: 35.34 kB / 0.5264 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.006508, allocations: 0.4923 MB / 0.5269 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.631e-05/0.006525, allocations: 8 kB / 0.5269 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.26e-05/0.006537, allocations: 8.781 kB / 0.5269 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.172e-05/0.006579, allocations: 39.59 kB / 0.527 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.006581, allocations: 0.8438 kB / 0.527 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.065e-05/0.006662, allocations: 69.58 kB / 0.527 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.006674, allocations: 6.75 kB / 0.527 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.006689, allocations: 0 / 0.527 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/0.006699, allocations: 0 / 0.527 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.244e-05/0.006711, allocations: 4 kB / 0.527 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.006715, allocations: 0 / 0.527 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.099e-05/0.006736, allocations: 15.77 kB / 0.5271 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.006745, allocations: 0 / 0.5271 GB, free: 12.11 MB / 0.4948 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 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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.618e-05/0.006831, allocations: 167.4 kB / 0.5272 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.006839, allocations: 3.953 kB / 0.5272 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-05/0.00693, allocations: 49.44 kB / 0.5273 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.006931, allocations: 0 / 0.5273 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.006935, allocations: 4 kB / 0.5273 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.00694, allocations: 3.938 kB / 0.5273 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.389e-05/0.007013, allocations: 114.6 kB / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.007014, allocations: 0 / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-06/0.007019, allocations: 0 / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.00702, allocations: 0 / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-06/0.007024, allocations: 0.5 kB / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.007024, allocations: 1.031 kB / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.007025, allocations: 0 / 0.5274 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.534e-05/0.007081, allocations: 77.3 kB / 0.5275 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.079e-05/0.007092, allocations: 7.953 kB / 0.5275 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.045e-06/0.0071, allocations: 0 / 0.5275 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.114e-06/0.007107, allocations: 0.5938 kB / 0.5275 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.007118, allocations: 4 kB / 0.5275 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-06/0.00712, allocations: 3.375 kB / 0.5275 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.505e-05/0.007175, allocations: 158.5 kB / 0.5276 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.007175, allocations: 0 / 0.5276 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002563/0.007431, allocations: 87.8 kB / 0.5277 GB, free: 11.38 MB / 0.4948 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.0004504/0.007882, allocations: 261.1 kB / 0.528 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001136/0.007995, allocations: 69.31 kB / 0.528 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.007997, allocations: 0 / 0.528 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.316e-06/0.008005, allocations: 12.59 kB / 0.528 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001173/0.008122, allocations: 4 kB / 0.528 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002593/0.008382, allocations: 151.6 kB / 0.5282 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.257e-05/0.008424, allocations: 67.33 kB / 0.5282 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.09e-05/0.008445, allocations: 0 / 0.5282 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.008488, allocations: 71.11 kB / 0.5283 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of SimCode: time 6.82e-07/0.008489, allocations: 3.938 kB / 0.5283 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of Templates: time 0.004702/0.01319, allocations: 2.586 MB / 0.5308 GB, free: 8.27 MB / 0.4948 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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.827466590795666]