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.001671/0.001671, allocations: 109.1 kB / 19.71 MB, free: 2.145 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.002045/0.002045, allocations: 213.7 kB / 23 MB, free: 4.969 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.559/1.559, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.267/3.267, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 70.3 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4213, allocations: 176.1 MB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001851/0.4232, allocations: 0.5196 MB / 1.328 GB, free: 484 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00278/0.426, allocations: 1.607 MB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.164e-05/0.426, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.4262, allocations: 23.91 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.104e-05/0.4262, allocations: 15.92 kB / 1.329 GB, free: 14.81 MB / 1.029 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.001097/0.4273, allocations: 280.6 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.942e-05/0.4274, allocations: 19.97 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.185e-05/0.4274, allocations: 4 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.827e-05/0.4275, allocations: 19.92 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.907e-05/0.4275, allocations: 19.91 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.4275, allocations: 0 / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008054/0.4283, allocations: 491.1 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.242e-05/0.4284, allocations: 19.92 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.4284, allocations: 15.86 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.4289, allocations: 295.1 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4289, allocations: 4 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.703e-06/0.4289, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4289, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 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.0005274/0.4294, allocations: 337.6 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.4295, allocations: 8.031 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.4295, allocations: 12.89 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.4297, allocations: 123.2 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-06/0.4297, allocations: 384 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.4298, allocations: 384 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.4299, allocations: 42.02 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.4299, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.4299, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4299, allocations: 0 / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.528e-05/0.4299, allocations: 23.92 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002/0.4301, allocations: 129.2 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.269e-05/0.4302, allocations: 22.58 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.777e-05/0.4302, allocations: 20.92 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.4302, allocations: 7.984 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.4303, allocations: 30.56 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.4303, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.4305, allocations: 73.52 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.4305, allocations: 51.41 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.4307, allocations: 168.4 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.4307, allocations: 25.7 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.886e-05/0.4308, allocations: 104.1 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.229e-05/0.4308, allocations: 4.062 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.4309, allocations: 29.72 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000185/0.431, allocations: 322.8 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.832e-05/0.4311, allocations: 35.98 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.709e-05/0.4311, allocations: 39.98 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.705e-05/0.4312, allocations: 72.81 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4312, allocations: 0 / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000177/0.4314, allocations: 133.5 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.4314, allocations: 4 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.4314, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4315, allocations: 7.938 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-05/0.4315, allocations: 4.062 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.4315, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.735e-05/0.4315, allocations: 7.891 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.4315, allocations: 4 kB / 1.332 GB, free: 11.69 MB / 1.029 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.000181/0.4317, allocations: 123.5 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.4317, allocations: 11.89 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.4319, allocations: 65.38 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4319, allocations: 3.938 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4319, allocations: 0 / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.541e-05/0.4319, allocations: 11.98 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.4319, allocations: 0 / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.152e-05/0.4319, allocations: 0 / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.404e-05/0.432, allocations: 7.969 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.67e-05/0.4321, allocations: 121 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001859/0.4322, allocations: 230.7 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.601e-05/0.4323, allocations: 8 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001051/0.4324, allocations: 129.3 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of Backend: time 1.5e-07/0.4324, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009666/0.4333, allocations: 299.9 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of SimCode: time 0.0005648/0.4339, allocations: 0.6077 MB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of Templates: time 0.006464/0.4404, allocations: 2.29 MB / 1.336 GB, free: 7.723 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.475147152996215]