Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00136/0.00136, allocations: 106.6 kB / 18.94 MB, free: 2.957 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.001504/0.001504, allocations: 220 kB / 22.25 MB, free: 5.133 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.449/1.449, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.755/2.755, allocations: 476.7 MB / 0.7707 GB, free: 4.211 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [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.002069/0.002069, allocations: 68.69 kB / 1.117 GB, free: 40.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3407, allocations: 170 MB / 1.283 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001646/0.3424, allocations: 0.5247 MB / 1.284 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002473/0.3448, allocations: 1.686 MB / 1.286 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.722e-05/0.3449, allocations: 3.938 kB / 1.286 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.3451, allocations: 59.84 kB / 1.286 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.242e-05/0.3451, allocations: 31.95 kB / 1.286 GB, free: 9.402 MB / 0.9825 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.001045/0.3462, allocations: 263.2 kB / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.604e-05/0.3463, allocations: 31.97 kB / 1.286 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.3463, allocations: 4 kB / 1.286 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.906e-05/0.3464, allocations: 27.89 kB / 1.286 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.957e-05/0.3464, allocations: 43.89 kB / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.3465, allocations: 0 / 1.286 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007598/0.3472, allocations: 467.2 kB / 1.286 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.3473, allocations: 23.92 kB / 1.286 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.535e-05/0.3473, allocations: 23.75 kB / 1.286 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005294/0.3478, allocations: 310.6 kB / 1.287 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3478, allocations: 4 kB / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.834e-06/0.3478, allocations: 0 / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.3479, allocations: 0 / 1.287 GB, free: 8.23 MB / 0.9825 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.0005319/0.3484, allocations: 361.3 kB / 1.287 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3484, allocations: 8.031 kB / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.3485, allocations: 30.75 kB / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.3485, allocations: 12.84 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.3487, allocations: 134.4 kB / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.268e-06/0.3487, allocations: 384 / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.3487, allocations: 384 / 1.287 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.3488, allocations: 41.83 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3488, allocations: 7.922 kB / 1.287 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.3488, allocations: 3.984 kB / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3488, allocations: 0 / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.565e-05/0.3489, allocations: 19.94 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001985/0.3491, allocations: 164.7 kB / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.108e-05/0.3491, allocations: 22.58 kB / 1.288 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.681e-05/0.3492, allocations: 20.91 kB / 1.288 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.3492, allocations: 8 kB / 1.288 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3492, allocations: 42.5 kB / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3492, allocations: 0 / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001796/0.3494, allocations: 73.52 kB / 1.288 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.3495, allocations: 51.41 kB / 1.288 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.3497, allocations: 204.8 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.3497, allocations: 33.83 kB / 1.288 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.3497, allocations: 104.1 kB / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.868e-06/0.3498, allocations: 0 / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/0.3498, allocations: 33.7 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.35, allocations: 322.8 kB / 1.288 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.601e-05/0.35, allocations: 59.97 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.826e-05/0.3501, allocations: 51.98 kB / 1.288 GB, free: 6.273 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.3502, allocations: 95.73 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3502, allocations: 0 / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001942/0.3504, allocations: 173.4 kB / 1.289 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3504, allocations: 8 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.3504, allocations: 4 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.3505, allocations: 0 / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.193e-05/0.3505, allocations: 0 / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.3505, allocations: 0 / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.731e-05/0.3505, allocations: 11.89 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.3505, allocations: 0 / 1.289 GB, free: 5.98 MB / 0.9825 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.0001823/0.3507, allocations: 133.8 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.3507, allocations: 15.84 kB / 1.289 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.3508, allocations: 70.11 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3508, allocations: 0 / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3508, allocations: 0 / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.3508, allocations: 0 / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.351, allocations: 152.7 kB / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.351, allocations: 0 / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.992e-06/0.351, allocations: 7.938 kB / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.351, allocations: 0 / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.351, allocations: 4.031 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.351, allocations: 0 / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.351, allocations: 3.938 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.3511, allocations: 85.02 kB / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.807e-05/0.3511, allocations: 11.89 kB / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.3511, allocations: 0 / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.622e-05/0.3511, allocations: 7.938 kB / 1.289 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.3511, allocations: 4.031 kB / 1.289 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.3511, allocations: 0 / 1.289 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001364/0.3513, allocations: 152.3 kB / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3513, allocations: 0 / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003572/0.3516, allocations: 87.8 kB / 1.289 GB, free: 5.184 MB / 0.9825 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.0009028/0.3525, allocations: 0.7558 MB / 1.29 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002073/0.3528, allocations: 113.6 kB / 1.29 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3528, allocations: 4 kB / 1.29 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.745e-05/0.3528, allocations: 8 kB / 1.29 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.3529, allocations: 8.125 kB / 1.29 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.3547, allocations: 1.821 MB / 1.292 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.3551, allocations: 0.7079 MB / 1.293 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.938e-05/0.3551, allocations: 4 kB / 1.293 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.159e-05/0.3552, allocations: 19.44 kB / 1.293 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.3552, allocations: 0 / 1.293 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05053/0.4057, allocations: 4.005 MB / 1.297 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.08, allocations: 6.078 kB / 1.297 GB, free: 13.75 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable cmp in file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.662372266000602]