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.001309/0.001309, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001415/0.001415, allocations: 191.1 kB / 22.23 MB, free: 5.105 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.393/1.393, allocations: 225.6 MB / 251 MB, free: 13.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 443.4 MB / 0.7321 GB, free: 12.32 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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.001952/0.001952, allocations: 63.89 kB / 1.061 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7243/0.7262, allocations: 160.8 MB / 1.218 GB, free: 3.773 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001628/0.7279, allocations: 0.5143 MB / 1.219 GB, free: 3.395 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002515/0.7304, allocations: 1.637 MB / 1.221 GB, free: 2.098 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.801e-05/0.7304, allocations: 0.9375 kB / 1.221 GB, free: 2.098 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.7305, allocations: 21.34 kB / 1.221 GB, free: 2.086 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.642e-05/0.7305, allocations: 13.33 kB / 1.221 GB, free: 2.078 MB / 0.92 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.2-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.0008818/0.7314, allocations: 263.6 kB / 1.221 GB, free: 1.906 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.87e-05/0.7315, allocations: 23.36 kB / 1.221 GB, free: 1.895 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.695e-05/0.7315, allocations: 2.594 kB / 1.221 GB, free: 1.895 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.085e-05/0.7316, allocations: 18.33 kB / 1.221 GB, free: 1.883 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.703e-05/0.7316, allocations: 20.91 kB / 1.221 GB, free: 1.871 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.7316, allocations: 1.219 kB / 1.221 GB, free: 1.871 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000747/0.7324, allocations: 463.3 kB / 1.221 GB, free: 1.574 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.808e-05/0.7324, allocations: 14.53 kB / 1.221 GB, free: 1.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.617e-05/0.7325, allocations: 24.3 kB / 1.221 GB, free: 1.551 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004194/0.7329, allocations: 289.2 kB / 1.222 GB, free: 1.387 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.7329, allocations: 0 / 1.222 GB, free: 1.387 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7329, allocations: 5.188 kB / 1.222 GB, free: 1.383 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.7329, allocations: 0 / 1.222 GB, free: 1.383 MB / 0.92 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.0004651/0.7333, allocations: 410.2 kB / 1.222 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.7334, allocations: 9.344 kB / 1.222 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.98e-05/0.7334, allocations: 7.609 kB / 1.222 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.7336, allocations: 187.4 kB / 1.222 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-06/0.7336, allocations: 384 / 1.222 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.7336, allocations: 5.344 kB / 1.222 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.316e-05/0.7337, allocations: 46.12 kB / 1.222 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.7337, allocations: 0 / 1.222 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.7337, allocations: 5.109 kB / 1.222 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.7337, allocations: 0 / 1.222 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.632e-05/0.7337, allocations: 12.78 kB / 1.222 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.7339, allocations: 171 kB / 1.222 GB, free: 0.4922 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.934e-05/0.734, allocations: 29.62 kB / 1.222 GB, free: 472 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.189e-05/0.734, allocations: 12.52 kB / 1.223 GB, free: 464 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.734, allocations: 12.5 kB / 1.223 GB, free: 456 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.7341, allocations: 42.48 kB / 1.223 GB, free: 404 kB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.7341, allocations: 1.062 kB / 1.223 GB, free: 404 kB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.7342, allocations: 58.17 kB / 1.223 GB, free: 364 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.7342, allocations: 51.41 kB / 1.223 GB, free: 300 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.7344, allocations: 178.4 kB / 1.223 GB, free: 156 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.7344, allocations: 25.7 kB / 1.223 GB, free: 124 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.403e-05/0.7345, allocations: 96.7 kB / 1.223 GB, free: 28 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.7345, allocations: 7.938 kB / 1.223 GB, free: 20 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.7345, allocations: 27.36 kB / 1.223 GB, free: 16 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.7347, allocations: 322 kB / 1.223 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.65e-05/0.7347, allocations: 40.27 kB / 1.223 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.794e-05/0.7348, allocations: 40.92 kB / 1.223 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.421e-05/0.7349, allocations: 73.81 kB / 1.223 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.7349, allocations: 0 / 1.223 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001545/0.735, allocations: 127.7 kB / 1.224 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.7351, allocations: 12.56 kB / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.7351, allocations: 1.281 kB / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.7351, allocations: 5.281 kB / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.187e-05/0.7351, allocations: 0 / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.7351, allocations: 1.375 kB / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.319e-05/0.7351, allocations: 5.141 kB / 1.224 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.7351, allocations: 1 kB / 1.224 GB, free: 15.54 MB / 0.9356 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.0001286/0.7353, allocations: 125.2 kB / 1.224 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/0.7353, allocations: 14.67 kB / 1.224 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.7354, allocations: 60.67 kB / 1.224 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.7354, allocations: 0 / 1.224 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.7354, allocations: 0 / 1.224 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.7354, allocations: 5.219 kB / 1.224 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.7355, allocations: 170.2 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.7355, allocations: 0 / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-06/0.7355, allocations: 1 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.7355, allocations: 3.938 kB / 1.224 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.7355, allocations: 9 kB / 1.224 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7355, allocations: 4.031 kB / 1.224 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.7355, allocations: 1.188 kB / 1.224 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.006e-05/0.7356, allocations: 76.55 kB / 1.224 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.7357, allocations: 87.25 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.7357, allocations: 0 / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.559e-05/0.7357, allocations: 5.203 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.7357, allocations: 0 / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.7357, allocations: 5.094 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.232e-05/0.7358, allocations: 118 kB / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.7358, allocations: 0 / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003443/0.7362, allocations: 87.89 kB / 1.224 GB, free: 14.85 MB / 0.9356 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.0004933/0.7367, allocations: 248.5 kB / 1.225 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001649/0.7368, allocations: 94.55 kB / 1.225 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.7368, allocations: 0 / 1.225 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.428e-05/0.7368, allocations: 7.562 kB / 1.225 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.737, allocations: 6.219 kB / 1.225 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002696/0.7372, allocations: 159.7 kB / 1.225 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.7376, allocations: 0.6942 MB / 1.225 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.025e-05/0.7376, allocations: 10.3 kB / 1.226 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.644e-05/0.7376, allocations: 8.625 kB / 1.226 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/0.7376, allocations: 0 / 1.226 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of Templates: time 0.005233/0.7428, allocations: 2.101 MB / 1.228 GB, free: 12.7 MB / 0.9356 GB " [Timeout remaining time 299] 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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.388715331442654]