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.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.001394/0.001394, allocations: 112.2 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.001389/0.001389, allocations: 190.6 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.27/1.27, allocations: 225.6 MB / 249.3 MB, free: 3.164 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.472/2.472, allocations: 476.7 MB / 0.7628 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 67.88 kB / 1.107 GB, free: 5.199 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7875/0.7893, allocations: 168.7 MB / 1.271 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001429/0.7907, allocations: 0.535 MB / 1.272 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.7925, allocations: 1.623 MB / 1.273 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.7925, allocations: 0 / 1.273 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.7927, allocations: 63.36 kB / 1.274 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.692e-05/0.7927, allocations: 26.75 kB / 1.274 GB, free: 6.121 MB / 0.9981 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 11.1.0-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.0007388/0.7935, allocations: 254.9 kB / 1.274 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.12e-05/0.7935, allocations: 27.73 kB / 1.274 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.7936, allocations: 1.469 kB / 1.274 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.263e-05/0.7936, allocations: 24.98 kB / 1.274 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.223e-05/0.7937, allocations: 48.14 kB / 1.274 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.7937, allocations: 0 / 1.274 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004895/0.7942, allocations: 369.3 kB / 1.274 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.514e-05/0.7942, allocations: 25.25 kB / 1.274 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.937e-05/0.7942, allocations: 29.83 kB / 1.274 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.7946, allocations: 301.8 kB / 1.275 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.7946, allocations: 0.75 kB / 1.275 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.7946, allocations: 0 / 1.275 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7946, allocations: 0.8438 kB / 1.275 GB, free: 5.762 MB / 0.9981 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.0003412/0.7949, allocations: 433.1 kB / 1.275 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.795, allocations: 9.531 kB / 1.275 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.799e-05/0.795, allocations: 39.59 kB / 1.275 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.55e-05/0.795, allocations: 10.12 kB / 1.275 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.7951, allocations: 193.4 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-06/0.7951, allocations: 384 / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.7951, allocations: 2.156 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.006e-05/0.7952, allocations: 40.83 kB / 1.275 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.7952, allocations: 0 / 1.275 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-06/0.7952, allocations: 3.938 kB / 1.275 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-06/0.7952, allocations: 0 / 1.275 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.205e-05/0.7953, allocations: 24 kB / 1.275 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.7954, allocations: 184.4 kB / 1.275 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.801e-05/0.7954, allocations: 33.47 kB / 1.275 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.025e-05/0.7954, allocations: 19.19 kB / 1.276 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.7955, allocations: 6.172 kB / 1.276 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.332e-05/0.7955, allocations: 35.5 kB / 1.276 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.7955, allocations: 0.9062 kB / 1.276 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001283/0.7956, allocations: 71.8 kB / 1.276 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.7956, allocations: 52.34 kB / 1.276 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.7958, allocations: 220.2 kB / 1.276 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.971e-06/0.7958, allocations: 25.7 kB / 1.276 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.428e-05/0.7958, allocations: 105.6 kB / 1.276 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.975e-06/0.7958, allocations: 0.75 kB / 1.276 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.7959, allocations: 32.92 kB / 1.276 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.084e-05/0.7959, allocations: 327.2 kB / 1.276 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.164e-05/0.796, allocations: 53.05 kB / 1.276 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.108e-05/0.796, allocations: 57.03 kB / 1.276 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.905e-05/0.7961, allocations: 95.52 kB / 1.277 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.7961, allocations: 0 / 1.277 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001623/0.7963, allocations: 166.8 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.7963, allocations: 5.031 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.7963, allocations: 1.781 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.7963, allocations: 0.9688 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.059e-05/0.7963, allocations: 2.859 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.7963, allocations: 4.781 kB / 1.277 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.491e-05/0.7963, allocations: 14.14 kB / 1.277 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.7964, allocations: 1.406 kB / 1.277 GB, free: 3.898 MB / 0.9981 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 9.442e-05/0.7964, allocations: 127.8 kB / 1.277 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.7965, allocations: 11.86 kB / 1.277 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.693e-05/0.7966, allocations: 70.77 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.7966, allocations: 0.875 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7966, allocations: 6.281 kB / 1.277 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-06/0.7966, allocations: 0.8438 kB / 1.277 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.282e-05/0.7966, allocations: 180.3 kB / 1.277 GB, free: 3.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.7966, allocations: 0.9375 kB / 1.277 GB, free: 3.523 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-06/0.7966, allocations: 3.938 kB / 1.277 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.7966, allocations: 4.703 kB / 1.277 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-06/0.7967, allocations: 0 / 1.277 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.7967, allocations: 4.969 kB / 1.277 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.7967, allocations: 0 / 1.277 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.132e-05/0.7967, allocations: 83.53 kB / 1.277 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.039e-05/0.7967, allocations: 95.67 kB / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.7967, allocations: 3.781 kB / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.221e-05/0.7968, allocations: 0 / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.445e-06/0.7968, allocations: 4.75 kB / 1.277 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-06/0.7968, allocations: 0.5938 kB / 1.277 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.027e-05/0.7969, allocations: 150.7 kB / 1.277 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.7969, allocations: 0 / 1.277 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003212/0.7972, allocations: 91.69 kB / 1.278 GB, free: 3.219 MB / 0.9981 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.0005556/0.7977, allocations: 0.7485 MB / 1.278 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.7979, allocations: 119.2 kB / 1.278 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.7979, allocations: 0 / 1.278 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.555e-05/0.7979, allocations: 11.12 kB / 1.278 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.798, allocations: 4.844 kB / 1.278 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.7994, allocations: 1.814 MB / 1.28 GB, free: 17.26 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.7997, allocations: 0.7045 MB / 1.281 GB, free: 16.57 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.69e-05/0.7997, allocations: 1.406 kB / 1.281 GB, free: 16.57 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.7998, allocations: 30.62 kB / 1.281 GB, free: 16.54 MB / 1.014 GB Notification: Performance of SimCode: time 4.91e-07/0.7998, allocations: 0.8125 kB / 1.281 GB, free: 16.54 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.8259, allocations: 3.875 MB / 1.285 GB, free: 15.96 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.06/7.886, allocations: 8.922 kB / 1.285 GB, free: 15.96 MB / 1.014 GB " [Timeout remaining time 292] (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: 13.218225050004548]