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.000775/0.000775, allocations: 68.47 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0007865/0.0007865, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 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 0.861/0.861, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.682/1.682, allocations: 359 MB / 0.6037 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 0.9504 GB, free: 3.555 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.897e-05/2.077e-05, allocations: 2.281 kB / 0.9504 GB, free: 3.551 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001715/0.001736, allocations: 0.5237 MB / 0.951 GB, free: 3.023 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.004156, allocations: 1.607 MB / 0.9525 GB, free: 1.398 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.651e-05/0.004203, allocations: 4 kB / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.00443, allocations: 67.83 kB / 0.9526 GB, free: 1.328 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 3.683e-05/0.004467, allocations: 23.97 kB / 0.9526 GB, free: 1.305 MB / 0.9011 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.2-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.001019/0.005486, allocations: 262 kB / 0.9529 GB, free: 1.051 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 9.561e-05/0.005582, allocations: 39.89 kB / 0.9529 GB, free: 1.012 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.2e-05/0.005624, allocations: 7.938 kB / 0.9529 GB, free: 1.004 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 5.288e-05/0.005677, allocations: 19.97 kB / 0.9529 GB, free: 0.9844 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.442e-05/0.005751, allocations: 47.88 kB / 0.953 GB, free: 0.9375 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.005766, allocations: 0 / 0.953 GB, free: 0.9375 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00073/0.006496, allocations: 427.1 kB / 0.9534 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 6.048e-05/0.006557, allocations: 23.94 kB / 0.9534 GB, free: 0.4961 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.573e-05/0.006583, allocations: 7.938 kB / 0.9534 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0005075/0.00709, allocations: 355.1 kB / 0.9538 GB, free: 144 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.007093, allocations: 0 / 0.9538 GB, free: 144 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.633e-06/0.007095, allocations: 4 kB / 0.9538 GB, free: 140 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.007101, allocations: 3.938 kB / 0.9538 GB, free: 136 kB / 0.9011 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.0005185/0.007619, allocations: 368.3 kB / 0.9541 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.007668, allocations: 8.031 kB / 0.9541 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.76e-05/0.007706, allocations: 30.75 kB / 0.9542 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.459e-05/0.007751, allocations: 8.891 kB / 0.9542 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.007916, allocations: 137.6 kB / 0.9543 GB, free: 15.53 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.007927, allocations: 4.312 kB / 0.9543 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.186e-06/0.007935, allocations: 384 / 0.9543 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.008042, allocations: 34.27 kB / 0.9543 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.00805, allocations: 4.188 kB / 0.9543 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.008059, allocations: 9.109 kB / 0.9543 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.008065, allocations: 0 / 0.9543 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.394e-05/0.008099, allocations: 19.98 kB / 0.9544 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001951/0.008294, allocations: 156.7 kB / 0.9545 GB, free: 15.26 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 6.1e-05/0.008355, allocations: 34.44 kB / 0.9545 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.008377, allocations: 16.92 kB / 0.9546 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 4.255e-05/0.00842, allocations: 7.984 kB / 0.9546 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.008449, allocations: 30.56 kB / 0.9546 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.00845, allocations: 0 / 0.9546 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.008621, allocations: 69.64 kB / 0.9547 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.008658, allocations: 55.41 kB / 0.9547 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.008847, allocations: 216.5 kB / 0.9549 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.008862, allocations: 25.7 kB / 0.9549 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.972e-05/0.008921, allocations: 112.1 kB / 0.9551 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.038e-05/0.008932, allocations: 0 / 0.9551 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.008981, allocations: 29.7 kB / 0.9551 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.009081, allocations: 326.8 kB / 0.9554 GB, free: 14.28 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.909e-05/0.00915, allocations: 55.98 kB / 0.9554 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.766e-05/0.009208, allocations: 55.97 kB / 0.9555 GB, free: 14.17 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.00931, allocations: 84.94 kB / 0.9556 GB, free: 14.08 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.009314, allocations: 8 kB / 0.9556 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001899/0.009504, allocations: 172.2 kB / 0.9558 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.009518, allocations: 4 kB / 0.9558 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.009536, allocations: 4 kB / 0.9558 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.009548, allocations: 0 / 0.9558 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.691e-05/0.009565, allocations: 0 / 0.9558 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.00957, allocations: 0 / 0.9558 GB, free: 13.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.576e-05/0.009606, allocations: 19.77 kB / 0.9558 GB, free: 13.88 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.009614, allocations: 0 / 0.9558 GB, free: 13.88 MB / 0.9167 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.0001668/0.009781, allocations: 137.8 kB / 0.9559 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.009795, allocations: 11.91 kB / 0.9559 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.009908, allocations: 62.19 kB / 0.956 GB, free: 13.65 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.009911, allocations: 7.922 kB / 0.956 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.009915, allocations: 0 / 0.956 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.009919, allocations: 3.938 kB / 0.956 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.01002, allocations: 148.7 kB / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.01002, allocations: 0 / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5e-06/0.01003, allocations: 0 / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.01003, allocations: 4 kB / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.01004, allocations: 4.031 kB / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01004, allocations: 0 / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.01004, allocations: 0 / 0.9561 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.026e-05/0.01012, allocations: 88.95 kB / 0.9562 GB, free: 13.34 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.464e-05/0.01013, allocations: 15.89 kB / 0.9562 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.01015, allocations: 0 / 0.9562 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.365e-05/0.01016, allocations: 0 / 0.9562 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.157e-05/0.01017, allocations: 0 / 0.9562 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.01018, allocations: 3.938 kB / 0.9562 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001141/0.01029, allocations: 152.3 kB / 0.9564 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01029, allocations: 3.938 kB / 0.9564 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003731/0.01066, allocations: 91.83 kB / 0.9565 GB, free: 13.08 MB / 0.9167 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.0008187/0.01148, allocations: 0.7714 MB / 0.9572 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002006/0.01168, allocations: 113.7 kB / 0.9573 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.01169, allocations: 4.094 kB / 0.9573 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 1.232e-05/0.0117, allocations: 8 kB / 0.9574 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001634/0.01186, allocations: 14.59 kB / 0.9574 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.01351, allocations: 1.822 MB / 0.9591 GB, free: 10.25 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.755e-05/0.01358, allocations: 92.16 kB / 0.9592 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.266e-05/0.01361, allocations: 4 kB / 0.9592 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.503e-05/0.01365, allocations: 28.48 kB / 0.9593 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of SimCode: time 5.71e-07/0.01365, allocations: 3.938 kB / 0.9593 GB, free: 10.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.04177, allocations: 4.534 MB / 0.9637 GB, free: 5.699 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.792/6.834, allocations: 3.938 kB / 0.9637 GB, free: 5.695 MB / 0.9167 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 10.704024971462786]