Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.002435/0.002435, allocations: 85.48 kB / 19.44 MB, free: 336 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.003107/0.003107, allocations: 173.2 kB / 22.76 MB, free: 1.656 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 1.622/1.622, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.409/3.409, allocations: 429.5 MB / 0.6729 GB, free: 4.02 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.8774 GB, free: 6.688 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.435e-05/2.583e-05, allocations: 7.75 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001834/0.00186, allocations: 0.5278 MB / 0.8779 GB, free: 6.176 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002865/0.004724, allocations: 1.635 MB / 0.8795 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.048e-05/0.004765, allocations: 3.938 kB / 0.8795 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.004962, allocations: 57.89 kB / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.827e-05/0.00501, allocations: 35.88 kB / 0.8796 GB, free: 4.438 MB / 0.8386 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.0009978/0.006008, allocations: 281.3 kB / 0.8799 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.006108, allocations: 39.88 kB / 0.8799 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.156e-05/0.00614, allocations: 0 / 0.8799 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.492e-05/0.006195, allocations: 24.41 kB / 0.8799 GB, free: 4.102 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.332e-05/0.006278, allocations: 49.78 kB / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.006294, allocations: 0 / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001077/0.007371, allocations: 451.1 kB / 0.8804 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.498e-05/0.007436, allocations: 23.92 kB / 0.8804 GB, free: 3.59 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.1e-05/0.007467, allocations: 12.97 kB / 0.8805 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0006051/0.008072, allocations: 363 kB / 0.8808 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.008075, allocations: 1.594 kB / 0.8808 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.202e-06/0.008076, allocations: 0 / 0.8808 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.008081, allocations: 4 kB / 0.8808 GB, free: 3.219 MB / 0.8386 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.0006213/0.008702, allocations: 467.3 kB / 0.8812 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.008741, allocations: 12.03 kB / 0.8813 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.521e-05/0.008796, allocations: 12.84 kB / 0.8813 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.008994, allocations: 141.3 kB / 0.8814 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.009004, allocations: 384 / 0.8814 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.009011, allocations: 384 / 0.8814 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.182e-05/0.009103, allocations: 34.27 kB / 0.8814 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.009113, allocations: 4.188 kB / 0.8814 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.00912, allocations: 384 / 0.8814 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.009126, allocations: 3.938 kB / 0.8814 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.572e-05/0.009141, allocations: 0 / 0.8814 GB, free: 2.492 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000206/0.009347, allocations: 156.5 kB / 0.8816 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.452e-05/0.009412, allocations: 38.98 kB / 0.8816 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.009431, allocations: 7.688 kB / 0.8816 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.873e-05/0.009469, allocations: 8.062 kB / 0.8817 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.009505, allocations: 37.39 kB / 0.8817 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.009506, allocations: 0 / 0.8817 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001581/0.009664, allocations: 45.59 kB / 0.8817 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.009715, allocations: 59.28 kB / 0.8818 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.009993, allocations: 259.5 kB / 0.882 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.01001, allocations: 25.7 kB / 0.8821 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.01012, allocations: 155 kB / 0.8822 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.817e-06/0.01013, allocations: 4 kB / 0.8822 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.316e-05/0.01019, allocations: 43.36 kB / 0.8823 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002761/0.01047, allocations: 0.4962 MB / 0.8827 GB, free: 1.047 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.17e-05/0.0105, allocations: 15.98 kB / 0.8828 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.329e-05/0.01052, allocations: 12 kB / 0.8828 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.635e-05/0.01059, allocations: 35.69 kB / 0.8828 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.01059, allocations: 0 / 0.8828 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001333/0.01073, allocations: 89.53 kB / 0.8829 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.01074, allocations: 7.938 kB / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.01075, allocations: 0 / 0.8829 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.01077, allocations: 4.062 kB / 0.8829 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.239e-05/0.01078, allocations: 0 / 0.8829 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.01079, allocations: 7.938 kB / 0.8829 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.895e-05/0.01082, allocations: 7.891 kB / 0.8829 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.01084, allocations: 7.984 kB / 0.8829 GB, free: 0.8516 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001316/0.01097, allocations: 163.5 kB / 0.8831 GB, free: 0.6836 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.829e-05/0.01099, allocations: 11.91 kB / 0.8831 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.01109, allocations: 42.19 kB / 0.8831 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.01109, allocations: 4 kB / 0.8831 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.0111, allocations: 7.969 kB / 0.8831 GB, free: 0.6133 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.0111, allocations: 0 / 0.8831 GB, free: 0.6133 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.01125, allocations: 148.6 kB / 0.8833 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.01126, allocations: 0 / 0.8833 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.668e-06/0.01126, allocations: 0 / 0.8833 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.01126, allocations: 0 / 0.8833 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.01127, allocations: 3.938 kB / 0.8833 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.01127, allocations: 0 / 0.8833 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.01127, allocations: 3.984 kB / 0.8833 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.01138, allocations: 80.3 kB / 0.8834 GB, free: 332 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.066e-05/0.0114, allocations: 15.97 kB / 0.8834 GB, free: 316 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.01141, allocations: 0 / 0.8834 GB, free: 316 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.827e-05/0.01143, allocations: 8 kB / 0.8834 GB, free: 308 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.122e-05/0.01145, allocations: 3.984 kB / 0.8834 GB, free: 304 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.279e-06/0.01145, allocations: 7.875 kB / 0.8834 GB, free: 296 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000142/0.0116, allocations: 171 kB / 0.8836 GB, free: 124 kB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.0116, allocations: 0 / 0.8836 GB, free: 124 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003685/0.01196, allocations: 91.8 kB / 0.8836 GB, free: 32 kB / 0.8386 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.0007464/0.01271, allocations: 248.5 kB / 0.8839 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001753/0.01289, allocations: 81.3 kB / 0.884 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01289, allocations: 0 / 0.884 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.05e-05/0.01291, allocations: 7.688 kB / 0.884 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001418/0.01305, allocations: 8 kB / 0.884 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003264/0.01338, allocations: 189.8 kB / 0.8842 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.01348, allocations: 96.25 kB / 0.8842 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.761e-05/0.0135, allocations: 0 / 0.8842 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.753e-05/0.01351, allocations: 8.5 kB / 0.8843 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of SimCode: time 5.41e-07/0.01351, allocations: 0 / 0.8843 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of Templates: time 0.006323/0.01984, allocations: 2.215 MB / 0.8864 GB, free: 13.15 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 8.56013257196173]