Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.002301/0.002301, allocations: 85.48 kB / 19.44 MB, free: 344 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.002808/0.002808, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.564/1.564, allocations: 177.1 MB / 203.1 MB, free: 5.625 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.345/3.345, 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 0.8774 GB, free: 6.711 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.708e-05, allocations: 6.25 kB / 0.8774 GB, free: 6.703 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001614/0.001641, allocations: 0.5265 MB / 0.8779 GB, free: 6.199 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002833/0.004474, allocations: 1.626 MB / 0.8795 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.163e-05/0.004506, allocations: 5.375 kB / 0.8795 GB, free: 4.559 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.004648, allocations: 19.97 kB / 0.8795 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.992e-05/0.004678, allocations: 15.86 kB / 0.8795 GB, free: 4.523 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.0009714/0.005649, allocations: 282.9 kB / 0.8798 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.29e-05/0.005722, allocations: 23.92 kB / 0.8798 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.114e-05/0.005753, allocations: 0 / 0.8798 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.347e-05/0.005797, allocations: 15.92 kB / 0.8799 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.721e-05/0.005844, allocations: 23.5 kB / 0.8799 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.00586, allocations: 0 / 0.8799 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000843/0.006703, allocations: 451 kB / 0.8803 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.21e-05/0.006755, allocations: 19.94 kB / 0.8803 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.672e-05/0.006781, allocations: 11.92 kB / 0.8803 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005512/0.007333, allocations: 343.1 kB / 0.8807 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.007335, allocations: 0 / 0.8807 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.002e-06/0.007336, allocations: 0 / 0.8807 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.00734, allocations: 0.9375 kB / 0.8807 GB, free: 3.383 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.000552/0.007892, allocations: 443.4 kB / 0.8811 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.007929, allocations: 12.03 kB / 0.8811 GB, free: 2.902 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.007981, allocations: 13.92 kB / 0.8811 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.008182, allocations: 143.4 kB / 0.8812 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.008194, allocations: 1.5 kB / 0.8813 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-06/0.008203, allocations: 384 / 0.8813 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.399e-05/0.008287, allocations: 30.27 kB / 0.8813 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-06/0.008294, allocations: 1.281 kB / 0.8813 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.0083, allocations: 384 / 0.8813 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.008306, allocations: 3.938 kB / 0.8813 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.008323, allocations: 0.9688 kB / 0.8813 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001889/0.008512, allocations: 144.6 kB / 0.8814 GB, free: 2.512 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.995e-05/0.008571, allocations: 27.59 kB / 0.8815 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.00859, allocations: 7.688 kB / 0.8815 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.008628, allocations: 8.875 kB / 0.8815 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.00866, allocations: 33.39 kB / 0.8815 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.008661, allocations: 0.8438 kB / 0.8815 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001495/0.008811, allocations: 46.52 kB / 0.8815 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.522e-05/0.008856, allocations: 55.34 kB / 0.8816 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.009063, allocations: 221.8 kB / 0.8818 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.009082, allocations: 26.8 kB / 0.8818 GB, free: 2.027 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.009184, allocations: 146.8 kB / 0.882 GB, free: 1.879 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.009196, allocations: 5 kB / 0.882 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.434e-05/0.00925, allocations: 31.38 kB / 0.882 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002564/0.009506, allocations: 0.4923 MB / 0.8825 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.752e-05/0.009534, allocations: 13.09 kB / 0.8825 GB, free: 1.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.785e-05/0.009552, allocations: 8 kB / 0.8825 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.692e-05/0.009609, allocations: 31.67 kB / 0.8825 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.00961, allocations: 0.9688 kB / 0.8825 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000114/0.009724, allocations: 77.53 kB / 0.8826 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.009736, allocations: 4.75 kB / 0.8826 GB, free: 1.191 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.009748, allocations: 0 / 0.8826 GB, free: 1.191 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.009762, allocations: 7.5 kB / 0.8826 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.316e-05/0.009776, allocations: 3.938 kB / 0.8826 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.009782, allocations: 3.938 kB / 0.8826 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.155e-05/0.009803, allocations: 3.953 kB / 0.8826 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.009815, allocations: 4 kB / 0.8826 GB, free: 1.172 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: 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.0001255/0.009941, allocations: 164.6 kB / 0.8828 GB, free: 1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.009953, allocations: 3.953 kB / 0.8828 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.01006, allocations: 49.44 kB / 0.8828 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.01006, allocations: 4.609 kB / 0.8829 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.01007, allocations: 4.531 kB / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.01007, allocations: 0 / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.0102, allocations: 134.2 kB / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.0102, allocations: 0 / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-06/0.0102, allocations: 0 / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.01021, allocations: 0 / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.01021, allocations: 224 / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.01021, allocations: 4 kB / 0.883 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.01022, allocations: 7.938 kB / 0.883 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.763e-05/0.01031, allocations: 84.33 kB / 0.8831 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.105e-05/0.01032, allocations: 3.953 kB / 0.8831 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.01033, allocations: 0 / 0.8831 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.4e-05/0.01035, allocations: 4 kB / 0.8831 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.56e-05/0.01036, allocations: 3.984 kB / 0.8831 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.01037, allocations: 3.938 kB / 0.8831 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000108/0.01048, allocations: 149.2 kB / 0.8832 GB, free: 0.4922 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9e-08/0.01048, allocations: 4 kB / 0.8832 GB, free: 500 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000328/0.0108, allocations: 91.83 kB / 0.8833 GB, free: 408 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.000692/0.0115, allocations: 250.4 kB / 0.8836 GB, free: 172 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.01164, allocations: 69.31 kB / 0.8836 GB, free: 92 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01164, allocations: 64 / 0.8836 GB, free: 92 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.774e-05/0.01166, allocations: 19.61 kB / 0.8836 GB, free: 68 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.01179, allocations: 8 kB / 0.8837 GB, free: 60 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003003/0.01209, allocations: 146.8 kB / 0.8838 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.568e-05/0.01218, allocations: 86.81 kB / 0.8839 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.525e-05/0.01219, allocations: 0 / 0.8839 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.129e-05/0.01221, allocations: 12.5 kB / 0.8839 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of SimCode: time 4.11e-07/0.01221, allocations: 0 / 0.8839 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of Templates: time 0.006263/0.01848, allocations: 2.205 MB / 0.886 GB, free: 13.57 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.501634827000089]