Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.0007438/0.0007438, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009356/0.001679, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007967/0.0007967, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008432/0.00164, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.894/0.894, allocations: 177.2 MB / 189.6 MB, free: 5.289 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09395/0.988, allocations: 53.65 MB / 243.3 MB, free: 15.55 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.854/1.854, allocations: 378.2 MB / 0.6076 GB, free: 7.844 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5572/2.412, allocations: 123.3 MB / 0.728 GB, free: 5.82 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 0.7293 GB, free: 4.566 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.612e-05/1.74e-05, allocations: 6.516 kB / 0.7293 GB, free: 4.562 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001293/0.00131, allocations: 0.5744 MB / 0.7299 GB, free: 4.008 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001649/0.002959, allocations: 1.672 MB / 0.7315 GB, free: 2.332 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.002991, allocations: 0 / 0.7315 GB, free: 2.332 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 8.324e-05/0.003074, allocations: 26.45 kB / 0.7315 GB, free: 2.309 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 2.235e-05/0.003097, allocations: 12.97 kB / 0.7315 GB, free: 2.297 MB / 0.698 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.0006245/0.003721, allocations: 251.5 kB / 0.7318 GB, free: 2.055 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 6.235e-05/0.003783, allocations: 27.91 kB / 0.7318 GB, free: 2.031 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 2.807e-05/0.003812, allocations: 2.531 kB / 0.7318 GB, free: 2.031 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 5.019e-05/0.003862, allocations: 24.84 kB / 0.7318 GB, free: 2.008 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 3.121e-05/0.003893, allocations: 9.406 kB / 0.7318 GB, free: 2 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.003904, allocations: 4.766 kB / 0.7318 GB, free: 1.996 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005567/0.004461, allocations: 456.5 kB / 0.7323 GB, free: 1.551 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 4.265e-05/0.004504, allocations: 24.94 kB / 0.7323 GB, free: 1.531 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.605e-05/0.00452, allocations: 8.594 kB / 0.7323 GB, free: 1.523 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.004843, allocations: 285 kB / 0.7326 GB, free: 1.246 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.004853, allocations: 0 / 0.7326 GB, free: 1.246 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.152e-06/0.004854, allocations: 4 kB / 0.7326 GB, free: 1.242 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.004866, allocations: 0 / 0.7326 GB, free: 1.242 MB / 0.698 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.0003054/0.005171, allocations: 340.9 kB / 0.7329 GB, free: 0.8867 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.734e-05/0.005199, allocations: 8.031 kB / 0.7329 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.202e-05/0.005221, allocations: 5.5 kB / 0.7329 GB, free: 0.875 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.005331, allocations: 129.7 kB / 0.733 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-06/0.005337, allocations: 1.281 kB / 0.733 GB, free: 0.7227 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-06/0.005344, allocations: 4.375 kB / 0.733 GB, free: 0.7188 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.384e-05/0.005398, allocations: 29.91 kB / 0.7331 GB, free: 0.6836 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-06/0.005403, allocations: 192 / 0.7331 GB, free: 0.6836 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-06/0.005408, allocations: 1.25 kB / 0.7331 GB, free: 0.6836 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.005412, allocations: 3.938 kB / 0.7331 GB, free: 0.6797 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.056e-05/0.005423, allocations: 8.688 kB / 0.7331 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.005561, allocations: 70.64 kB / 0.7332 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.087e-05/0.005592, allocations: 19.23 kB / 0.7332 GB, free: 0.5586 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.203e-05/0.005604, allocations: 10.72 kB / 0.7332 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.005643, allocations: 4.062 kB / 0.7332 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.005661, allocations: 30.56 kB / 0.7332 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.005662, allocations: 0 / 0.7332 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 7.798e-05/0.00574, allocations: 41.62 kB / 0.7333 GB, free: 468 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.005767, allocations: 52.12 kB / 0.7333 GB, free: 404 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.086e-05/0.005858, allocations: 163 kB / 0.7335 GB, free: 232 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.005866, allocations: 25.7 kB / 0.7335 GB, free: 200 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.912e-05/0.005895, allocations: 89.19 kB / 0.7336 GB, free: 108 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.607e-06/0.005903, allocations: 3.953 kB / 0.7336 GB, free: 104 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-05/0.00593, allocations: 25.69 kB / 0.7336 GB, free: 72 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.668e-05/0.006007, allocations: 327.5 kB / 0.7339 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.549e-05/0.006022, allocations: 10.83 kB / 0.7339 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.218e-06/0.006031, allocations: 4.531 kB / 0.7339 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.519e-05/0.006067, allocations: 36.59 kB / 0.734 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.00607, allocations: 4 kB / 0.734 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12) (initialization): time 5.595e-05/0.006126, allocations: 61.58 kB / 0.734 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.006136, allocations: 4.875 kB / 0.734 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.006154, allocations: 7.984 kB / 0.734 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.314e-06/0.006162, allocations: 1.781 kB / 0.734 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-05/0.006176, allocations: 0 / 0.734 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.314e-06/0.006178, allocations: 0 / 0.734 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.006196, allocations: 11.89 kB / 0.734 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.006201, allocations: 0 / 0.734 GB, free: 15.59 MB / 0.7136 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 6.439e-05/0.006266, allocations: 113.6 kB / 0.7342 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-06/0.00627, allocations: 0.75 kB / 0.7342 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.312e-05/0.006343, allocations: 53.38 kB / 0.7342 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.006344, allocations: 0.6875 kB / 0.7342 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.006346, allocations: 4.5 kB / 0.7342 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.006349, allocations: 3.984 kB / 0.7342 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.258e-05/0.006401, allocations: 74.98 kB / 0.7343 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.006402, allocations: 0 / 0.7343 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-06/0.006405, allocations: 0 / 0.7343 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-06/0.006415, allocations: 12.97 kB / 0.7343 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.006416, allocations: 0 / 0.7343 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-06/0.006418, allocations: 0 / 0.7343 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.006419, allocations: 1.781 kB / 0.7343 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.006419, allocations: 4 kB / 0.7343 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.028e-05/0.006459, allocations: 62.72 kB / 0.7344 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.485e-06/0.006467, allocations: 7.984 kB / 0.7344 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.073e-06/0.006474, allocations: 1.219 kB / 0.7344 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.455e-06/0.006482, allocations: 3.938 kB / 0.7344 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-06/0.006484, allocations: 0 / 0.7344 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.547e-05/0.006509, allocations: 35.81 kB / 0.7344 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006509, allocations: 0 / 0.7344 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001858/0.006695, allocations: 88.42 kB / 0.7345 GB, free: 15.08 MB / 0.7136 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.0004469/0.007142, allocations: 274.2 kB / 0.7348 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.648e-05/0.007228, allocations: 55.05 kB / 0.7348 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.007232, allocations: 0 / 0.7348 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.252e-06/0.007238, allocations: 15.56 kB / 0.7348 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.712e-05/0.007295, allocations: 10.75 kB / 0.7348 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003054/0.007601, allocations: 170.2 kB / 0.735 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.667e-05/0.007627, allocations: 63.34 kB / 0.7351 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.614e-05/0.007643, allocations: 3.938 kB / 0.7351 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.00767, allocations: 53.81 kB / 0.7351 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of SimCode: time 6.11e-07/0.007671, allocations: 0 / 0.7351 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of Templates: time 0.004193/0.01186, allocations: 2.589 MB / 0.7376 GB, free: 11.98 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.853244600817561]