Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 118.5 kB / 17.13 MB, free: 5.758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 194.1 kB / 20.08 MB, free: 2.848 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 225.6 MB / 248.5 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.793/2.793, allocations: 443.5 MB / 0.7293 GB, free: 14.53 MB / 0.5763 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 68.08 kB / 1.057 GB, free: 2.016 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3599, allocations: 160.7 MB / 1.214 GB, free: 0.9922 MB / 0.9513 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001856/0.3618, allocations: 0.5191 MB / 1.215 GB, free: 480 kB / 0.9513 GB Notification: Performance of NFInst.instExpressions: time 0.002657/0.3644, allocations: 1.63 MB / 1.216 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.433e-05/0.3645, allocations: 0 / 1.216 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.3646, allocations: 23.91 kB / 1.216 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.165e-05/0.3647, allocations: 4 kB / 1.216 GB, free: 14.79 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.000908/0.3656, allocations: 258.8 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.234e-05/0.3656, allocations: 11.98 kB / 1.216 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.673e-05/0.3657, allocations: 4 kB / 1.216 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.09e-05/0.3657, allocations: 15.92 kB / 1.216 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.06e-05/0.3658, allocations: 19.92 kB / 1.216 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.3658, allocations: 3.938 kB / 1.216 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006258/0.3664, allocations: 371.4 kB / 1.217 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.3665, allocations: 19.97 kB / 1.217 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.3665, allocations: 15.81 kB / 1.217 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004562/0.367, allocations: 279.2 kB / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.367, allocations: 0 / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.383e-06/0.367, allocations: 0 / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.367, allocations: 0 / 1.217 GB, free: 13.82 MB / 0.9669 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.0005541/0.3675, allocations: 418.6 kB / 1.217 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3676, allocations: 12.03 kB / 1.218 GB, free: 13.35 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.3676, allocations: 4.891 kB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.3678, allocations: 184.3 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.3678, allocations: 384 / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-06/0.3678, allocations: 384 / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/0.3679, allocations: 42.02 kB / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.3679, allocations: 0 / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.3679, allocations: 0 / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3679, allocations: 4 kB / 1.218 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.469e-05/0.368, allocations: 19.92 kB / 1.218 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002053/0.3682, allocations: 173.7 kB / 1.218 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.28e-05/0.3682, allocations: 22.58 kB / 1.218 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.834e-05/0.3683, allocations: 20.91 kB / 1.218 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.3683, allocations: 4 kB / 1.218 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.3683, allocations: 34.5 kB / 1.218 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3683, allocations: 0 / 1.218 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.000181/0.3685, allocations: 69.56 kB / 1.218 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.3685, allocations: 55.53 kB / 1.218 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.3687, allocations: 175.7 kB / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.3687, allocations: 25.7 kB / 1.218 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.3688, allocations: 100.1 kB / 1.218 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.128e-05/0.3688, allocations: 3.953 kB / 1.218 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.3689, allocations: 25.7 kB / 1.218 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.369, allocations: 322.8 kB / 1.219 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.775e-05/0.3691, allocations: 35.98 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.987e-05/0.3691, allocations: 43.98 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.97e-05/0.3692, allocations: 72.81 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3692, allocations: 4 kB / 1.219 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001743/0.3694, allocations: 129.5 kB / 1.219 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.3694, allocations: 7.938 kB / 1.219 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.3694, allocations: 7.984 kB / 1.219 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3694, allocations: 3.938 kB / 1.219 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.317e-05/0.3695, allocations: 0 / 1.219 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3695, allocations: 0 / 1.219 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.517e-05/0.3695, allocations: 7.953 kB / 1.219 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.3695, allocations: 4.062 kB / 1.219 GB, free: 11.6 MB / 0.9669 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.0001853/0.3697, allocations: 121.8 kB / 1.219 GB, free: 11.47 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/0.3697, allocations: 7.891 kB / 1.219 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.3698, allocations: 61.5 kB / 1.219 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3698, allocations: 3.984 kB / 1.219 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3698, allocations: 0 / 1.219 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3698, allocations: 0 / 1.219 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.37, allocations: 173.7 kB / 1.219 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.37, allocations: 0 / 1.219 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-06/0.37, allocations: 0 / 1.219 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.37, allocations: 7.922 kB / 1.219 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.37, allocations: 0 / 1.219 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.37, allocations: 0 / 1.219 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.37, allocations: 0 / 1.219 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.3701, allocations: 77.08 kB / 1.219 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.369e-05/0.3702, allocations: 97.02 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.3702, allocations: 3.938 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.172e-05/0.3702, allocations: 0 / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.501e-05/0.3702, allocations: 3.938 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3702, allocations: 0 / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001067/0.3703, allocations: 125.3 kB / 1.22 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.3703, allocations: 0 / 1.22 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003436/0.3707, allocations: 87.8 kB / 1.22 GB, free: 10.74 MB / 0.9669 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.0006255/0.3713, allocations: 229.9 kB / 1.22 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001737/0.3715, allocations: 93.66 kB / 1.22 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3715, allocations: 0 / 1.22 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.948e-05/0.3715, allocations: 8 kB / 1.22 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.3716, allocations: 2.031 kB / 1.22 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000354/0.372, allocations: 199 kB / 1.22 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.3723, allocations: 0.6924 MB / 1.221 GB, free: 9.477 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.3724, allocations: 15.36 kB / 1.221 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of SimCode: time 3.21e-07/0.3724, allocations: 0 / 1.221 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of Templates: time 0.004734/0.3771, allocations: 2.251 MB / 1.223 GB, free: 7.207 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 13.200013481080532]