Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001292/0.001292, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001466/0.001466, allocations: 218.8 kB / 23.03 MB, free: 4.949 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.34/3.34, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",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.001925/0.001925, allocations: 63.25 kB / 1.17 GB, free: 19.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3857/0.3877, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001845/0.3895, allocations: 0.5165 MB / 1.346 GB, free: 15.45 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00265/0.3921, allocations: 1.607 MB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.189e-05/0.3922, allocations: 7.938 kB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.3924, allocations: 55.89 kB / 1.347 GB, free: 13.76 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.877e-05/0.3925, allocations: 35.91 kB / 1.347 GB, free: 13.73 MB / 1.045 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'. Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.3936, allocations: 282 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.308e-05/0.3937, allocations: 35.95 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.367e-05/0.3937, allocations: 288 / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.217e-05/0.3938, allocations: 19.98 kB / 1.348 GB, free: 13.4 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.108e-05/0.3939, allocations: 55.8 kB / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.3939, allocations: 0 / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000973/0.3948, allocations: 491.2 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.004e-05/0.3949, allocations: 27.92 kB / 1.348 GB, free: 12.84 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.769e-05/0.395, allocations: 19.75 kB / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005658/0.3955, allocations: 311.1 kB / 1.349 GB, free: 12.51 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.3955, allocations: 4 kB / 1.349 GB, free: 12.51 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3955, allocations: 4 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.3955, allocations: 0 / 1.349 GB, free: 12.5 MB / 1.045 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.0004693/0.396, allocations: 365.3 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.396, allocations: 8.031 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.462e-05/0.396, allocations: 192 / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.681e-05/0.3961, allocations: 30.75 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.119e-05/0.3961, allocations: 12.84 kB / 1.349 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.3963, allocations: 134.4 kB / 1.349 GB, free: 11.9 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.3963, allocations: 384 / 1.349 GB, free: 11.9 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.3963, allocations: 4.375 kB / 1.349 GB, free: 11.9 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.198e-05/0.3964, allocations: 49.62 kB / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.3964, allocations: 0 / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-06/0.3964, allocations: 3.938 kB / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.025e-06/0.3964, allocations: 0 / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.395e-05/0.3964, allocations: 19.98 kB / 1.349 GB, free: 11.82 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.3966, allocations: 156.7 kB / 1.349 GB, free: 11.62 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 4.846e-05/0.3966, allocations: 22.58 kB / 1.349 GB, free: 11.59 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.121e-05/0.3967, allocations: 20.91 kB / 1.349 GB, free: 11.57 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.3967, allocations: 7.938 kB / 1.349 GB, free: 11.56 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.3967, allocations: 34.56 kB / 1.349 GB, free: 11.52 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 2.725e-06/0.3967, allocations: 4 kB / 1.349 GB, free: 11.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001775/0.3969, allocations: 77.52 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.397, allocations: 55.34 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.3972, allocations: 207.4 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.3972, allocations: 29.7 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.3973, allocations: 100.1 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.3973, allocations: 7.891 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.3974, allocations: 29.7 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3975, allocations: 322.8 kB / 1.35 GB, free: 10.65 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.651e-05/0.3976, allocations: 59.97 kB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.355e-05/0.3976, allocations: 56.11 kB / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.3978, allocations: 99.66 kB / 1.35 GB, free: 10.44 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3978, allocations: 0 / 1.35 GB, free: 10.44 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002103/0.398, allocations: 157.5 kB / 1.351 GB, free: 10.28 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.398, allocations: 8 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.398, allocations: 0 / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.398, allocations: 0 / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.298e-05/0.398, allocations: 0 / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.398, allocations: 7.938 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.521e-05/0.3981, allocations: 15.83 kB / 1.351 GB, free: 10.25 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3981, allocations: 4 kB / 1.351 GB, free: 10.25 MB / 1.045 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.0002095/0.3983, allocations: 133.9 kB / 1.351 GB, free: 10.11 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.988e-05/0.3983, allocations: 11.89 kB / 1.351 GB, free: 10.09 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001406/0.3985, allocations: 74.09 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.3985, allocations: 0 / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3985, allocations: 0 / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3985, allocations: 0 / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.3986, allocations: 148.7 kB / 1.351 GB, free: 9.824 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3986, allocations: 7.938 kB / 1.351 GB, free: 9.816 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.231e-06/0.3986, allocations: 0 / 1.351 GB, free: 9.816 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3986, allocations: 4.031 kB / 1.351 GB, free: 9.812 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-06/0.3986, allocations: 0 / 1.351 GB, free: 9.812 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3986, allocations: 3.984 kB / 1.351 GB, free: 9.809 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3986, allocations: 0 / 1.351 GB, free: 9.809 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.3987, allocations: 92.97 kB / 1.351 GB, free: 9.699 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.3988, allocations: 11.84 kB / 1.351 GB, free: 9.688 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.3988, allocations: 7.938 kB / 1.351 GB, free: 9.68 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.406e-05/0.3988, allocations: 0 / 1.351 GB, free: 9.68 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/0.3988, allocations: 0 / 1.351 GB, free: 9.68 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.3988, allocations: 0 / 1.351 GB, free: 9.68 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001394/0.3989, allocations: 155.1 kB / 1.351 GB, free: 9.527 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3989, allocations: 4.031 kB / 1.351 GB, free: 9.523 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003782/0.3993, allocations: 83.8 kB / 1.351 GB, free: 9.441 MB / 1.045 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.0009301/0.4003, allocations: 0.7425 MB / 1.352 GB, free: 8.691 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001862/0.4004, allocations: 125.6 kB / 1.352 GB, free: 8.562 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.4004, allocations: 0 / 1.352 GB, free: 8.562 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.943e-05/0.4005, allocations: 11.98 kB / 1.352 GB, free: 8.551 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.4006, allocations: 9 kB / 1.352 GB, free: 8.543 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.4025, allocations: 1.812 MB / 1.354 GB, free: 6.641 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.21e-05/0.4026, allocations: 96.16 kB / 1.354 GB, free: 6.527 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.107e-05/0.4026, allocations: 7.891 kB / 1.354 GB, free: 6.52 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.945e-05/0.4027, allocations: 31.42 kB / 1.354 GB, free: 6.488 MB / 1.045 GB Notification: Performance of SimCode: time 5.31e-07/0.4027, allocations: 4.156 kB / 1.354 GB, free: 6.484 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.4289, allocations: 4.152 MB / 1.358 GB, free: 2.488 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.05, allocations: 15.78 kB / 1.358 GB, free: 2.477 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 19.116585367009975]