Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build 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] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0003288/0.0003288, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.0007448/0.001074, allocations: 0 / 0, free: 0 / 0 " [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.0002763/0.0002763, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.0005419/0.0008182, allocations: 0 / 0, free: 0 / 0 " [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.119/0.119, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.04588/0.1649, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-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 4.0.0-master/package.mo): time 0.1397/0.1397, allocations: 0 / 0, free: 0 / 0 [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.04242/0.1821, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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: simulate(IDEAS.Utilities.Clustering.Validation.KMeans_1d,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d",simflags="-abortSlowSimulation -alarm=240 -lv LOG_STATS") simulate(IDEAS.Utilities.Clustering.Validation.KMeans_1d,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d",simflags="-abortSlowSimulation -alarm=240 -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.406e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.0006195/0.0006435, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.002288/0.002931, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 1.695e-05/0.002948, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0001003/0.003049, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 3.096e-05/0.00308, allocations: 0 / 0, free: 0 / 0 [/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.0006158/0.003695, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 6.941e-05/0.003765, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 1.976e-05/0.003785, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 4.738e-05/0.003832, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 2.418e-05/0.003856, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.003866, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0006988/0.004565, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 3.592e-05/0.004601, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 1.893e-05/0.00462, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.005012, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 2.302e-05/0.005035, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.493e-06/0.005036, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.501e-05/0.005051, allocations: 0 / 0, free: 0 / 0 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.0004352/0.005487, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 6.991e-05/0.005557, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.005605, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 9.985e-05/0.005705, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.005716, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.00573, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 6.477e-05/0.005795, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.0058, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.005817, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.005822, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 2.645e-05/0.005849, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002277/0.006077, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 4.07e-05/0.006117, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 1.645e-05/0.006134, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.419e-05/0.006178, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.519e-05/0.006193, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=1): time 2.384e-06/0.006195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=1): time 7.459e-05/0.00627, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 1.875e-05/0.006289, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.112e-05/0.00636, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.006374, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 2.304e-05/0.006398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 5.941e-06/0.006403, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.006433, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 1.568e-05/0.006449, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 1.515e-05/0.006464, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 1.043e-05/0.006475, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 3.062e-05/0.006505, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.006507, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=12) (initialization): time 6.566e-05/0.006572, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.006589, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/0.006619, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.006636, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.019e-05/0.006656, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.00666, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.04e-05/0.00669, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.0067, allocations: 0 / 0, free: 0 / 0 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 5.506e-05/0.006755, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-06/0.006762, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.006892, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.006894, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.006899, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.006902, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.346e-05/0.006976, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.006979, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.899e-06/0.006988, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 2.449e-05/0.007013, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.007019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.007032, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.007034, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.007037, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 4.046e-05/0.007077, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.007113, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.684e-05/0.00713, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 1.526e-05/0.007145, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.007149, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 3.097e-05/0.00718, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 2.765e-06/0.007183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.0003847/0.007568, allocations: 0 / 0, free: 0 / 0 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.0004866/0.008055, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.0001321/0.008187, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.008192, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 4.609e-06/0.008196, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.494e-05/0.008281, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001865/0.008468, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 2.792e-05/0.008496, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 2.738e-05/0.008523, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 4.319e-05/0.008566, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 1.514e-05/0.008582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.001139/0.009721, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 900] [Calling sys.exit(0), Time elapsed: 0.7886010389775038]