Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001405/0.001405, allocations: 110.8 kB / 17.54 MB, free: 4.641 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.001409/0.001409, allocations: 189.9 kB / 20.71 MB, free: 1.484 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.302/1.302, allocations: 225.6 MB / 249.3 MB, free: 3.168 MB / 190.1 MB " [Timeout remaining time 179] 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.363/2.363, allocations: 443.5 MB / 0.7304 GB, free: 13.91 MB / 0.5762 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.89 kB / 1.059 GB, free: 0.9531 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2623, allocations: 160.7 MB / 1.216 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001607/0.2639, allocations: 0.522 MB / 1.216 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00227/0.2662, allocations: 1.63 MB / 1.218 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.2662, allocations: 0 / 1.218 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.2664, allocations: 59.84 kB / 1.218 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.141e-05/0.2664, allocations: 35.89 kB / 1.218 GB, free: 13.65 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.0008172/0.2672, allocations: 251.3 kB / 1.218 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.758e-05/0.2673, allocations: 27.91 kB / 1.218 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.507e-05/0.2673, allocations: 7.984 kB / 1.218 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.603e-05/0.2674, allocations: 23.91 kB / 1.218 GB, free: 13.35 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.704e-05/0.2674, allocations: 43.89 kB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.2675, allocations: 4 kB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005879/0.268, allocations: 367.4 kB / 1.218 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.918e-05/0.2681, allocations: 27.92 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.353e-05/0.2681, allocations: 27.73 kB / 1.218 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.2685, allocations: 299.4 kB / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2685, allocations: 0 / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2685, allocations: 0 / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2685, allocations: 0 / 1.219 GB, free: 12.59 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.0004622/0.269, allocations: 438.4 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.269, allocations: 8.031 kB / 1.219 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.536e-05/0.2691, allocations: 38.69 kB / 1.219 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.2691, allocations: 12.84 kB / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.2693, allocations: 188.2 kB / 1.219 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.2693, allocations: 4.375 kB / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-06/0.2693, allocations: 4.375 kB / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.231e-05/0.2694, allocations: 41.81 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.2694, allocations: 3.938 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-06/0.2694, allocations: 0 / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-06/0.2694, allocations: 0 / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.132e-05/0.2694, allocations: 19.98 kB / 1.219 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.2696, allocations: 189.6 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.096e-05/0.2696, allocations: 30.52 kB / 1.22 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.812e-05/0.2697, allocations: 20.91 kB / 1.22 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.2697, allocations: 4 kB / 1.22 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.2697, allocations: 34.5 kB / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.2697, allocations: 0 / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001422/0.2699, allocations: 81.52 kB / 1.22 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2699, allocations: 51.41 kB / 1.22 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.2701, allocations: 219.2 kB / 1.22 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.2701, allocations: 25.7 kB / 1.22 GB, free: 11 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.2702, allocations: 100.1 kB / 1.22 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.2702, allocations: 3.953 kB / 1.22 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.2702, allocations: 33.7 kB / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.2703, allocations: 323 kB / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.534e-05/0.2704, allocations: 59.97 kB / 1.221 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.682e-05/0.2705, allocations: 51.98 kB / 1.221 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.802e-05/0.2706, allocations: 94.03 kB / 1.221 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2706, allocations: 0 / 1.221 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001817/0.2707, allocations: 171.2 kB / 1.221 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.2708, allocations: 4 kB / 1.221 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.2708, allocations: 4 kB / 1.221 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.2708, allocations: 0 / 1.221 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.164e-05/0.2708, allocations: 3.984 kB / 1.221 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.2708, allocations: 4.062 kB / 1.221 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.722e-05/0.2708, allocations: 11.91 kB / 1.221 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.2708, allocations: 0 / 1.221 GB, free: 10.13 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: 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.0001278/0.271, allocations: 129.8 kB / 1.221 GB, free: 9.996 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.271, allocations: 11.89 kB / 1.221 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.2711, allocations: 70.22 kB / 1.221 GB, free: 9.906 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2711, allocations: 0 / 1.221 GB, free: 9.906 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2711, allocations: 32 / 1.221 GB, free: 9.906 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.2711, allocations: 4 kB / 1.221 GB, free: 9.902 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.2712, allocations: 181.7 kB / 1.221 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2712, allocations: 3.938 kB / 1.221 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.715e-06/0.2712, allocations: 7.922 kB / 1.221 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2712, allocations: 0 / 1.221 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-06/0.2712, allocations: 0 / 1.221 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2712, allocations: 4 kB / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2712, allocations: 3.938 kB / 1.221 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.558e-05/0.2713, allocations: 85.03 kB / 1.221 GB, free: 9.555 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.212e-05/0.2714, allocations: 92.95 kB / 1.221 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.2714, allocations: 4 kB / 1.221 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.313e-05/0.2714, allocations: 0 / 1.221 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.2714, allocations: 7.984 kB / 1.221 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.2714, allocations: 0 / 1.221 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001098/0.2715, allocations: 140.4 kB / 1.222 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.2715, allocations: 0 / 1.222 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003041/0.2718, allocations: 91.8 kB / 1.222 GB, free: 9.207 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.0007429/0.2726, allocations: 0.7531 MB / 1.222 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001702/0.2727, allocations: 113.7 kB / 1.223 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2727, allocations: 3.938 kB / 1.223 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.684e-05/0.2728, allocations: 15.98 kB / 1.223 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.2729, allocations: 6.125 kB / 1.223 GB, free: 8.301 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.2745, allocations: 1.815 MB / 1.224 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.2748, allocations: 0.7078 MB / 1.225 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.869e-05/0.2749, allocations: 7.953 kB / 1.225 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/0.2749, allocations: 27.42 kB / 1.225 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of SimCode: time 3.51e-07/0.2749, allocations: 4.031 kB / 1.225 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02592/0.3008, allocations: 3.868 MB / 1.229 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.148/7.448, allocations: 8.438 kB / 1.229 GB, free: 1.844 MB / 0.9669 GB " [Timeout remaining time 292] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.682846172996506]