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.001655/0.001655, allocations: 107.6 kB / 18.95 MB, free: 2.828 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.002354/0.002354, allocations: 219.1 kB / 22.25 MB, free: 5.105 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.567/1.567, allocations: 230.6 MB / 256 MB, free: 7.809 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.456/3.456, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_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.002333/0.002333, allocations: 75.55 kB / 1.186 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3897, allocations: 181.9 MB / 1.363 GB, free: 14.15 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002088/0.3918, allocations: 0.5194 MB / 1.364 GB, free: 13.63 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002814/0.3946, allocations: 1.616 MB / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.873e-05/0.3946, allocations: 0 / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.3948, allocations: 63.84 kB / 1.366 GB, free: 11.93 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.458e-05/0.3949, allocations: 27.95 kB / 1.366 GB, free: 11.91 MB / 1.061 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.001163/0.396, allocations: 279.2 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.3962, allocations: 31.89 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.3962, allocations: 288 / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.682e-05/0.3963, allocations: 27.91 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.381e-05/0.3963, allocations: 47.88 kB / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.3963, allocations: 0 / 1.366 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008884/0.3972, allocations: 459.2 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.3973, allocations: 27.91 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.384e-05/0.3973, allocations: 19.81 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005694/0.3979, allocations: 311 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3979, allocations: 0 / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3979, allocations: 0 / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.3979, allocations: 0 / 1.367 GB, free: 10.73 MB / 1.061 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.0005787/0.3985, allocations: 361.3 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3985, allocations: 8.031 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.226e-05/0.3986, allocations: 30.75 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.3986, allocations: 12.89 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.3988, allocations: 138.3 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.3988, allocations: 384 / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.3988, allocations: 8.375 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.3989, allocations: 45.75 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3989, allocations: 0 / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.3989, allocations: 0 / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.399, allocations: 0 / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.864e-05/0.399, allocations: 19.98 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002088/0.3992, allocations: 156.7 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 5.692e-05/0.3993, allocations: 30.58 kB / 1.367 GB, free: 9.812 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.707e-05/0.3993, allocations: 16.91 kB / 1.367 GB, free: 9.793 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.3993, allocations: 4 kB / 1.367 GB, free: 9.789 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.3994, allocations: 42.44 kB / 1.368 GB, free: 9.738 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3994, allocations: 0 / 1.368 GB, free: 9.738 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001775/0.3995, allocations: 65.62 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.3996, allocations: 51.41 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002337/0.3998, allocations: 210.8 kB / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.3998, allocations: 37.64 kB / 1.368 GB, free: 9.344 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.519e-05/0.3999, allocations: 100.2 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.4, allocations: 15.92 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/0.4, allocations: 29.7 kB / 1.368 GB, free: 9.191 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000271/0.4003, allocations: 322.8 kB / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.4004, allocations: 55.97 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.519e-05/0.4005, allocations: 55.98 kB / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.4006, allocations: 96.7 kB / 1.369 GB, free: 8.66 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4006, allocations: 0 / 1.369 GB, free: 8.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002011/0.4008, allocations: 164.2 kB / 1.369 GB, free: 8.496 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.4008, allocations: 4 kB / 1.369 GB, free: 8.492 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.4009, allocations: 0 / 1.369 GB, free: 8.492 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.4009, allocations: 4.062 kB / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.829e-05/0.4009, allocations: 4 kB / 1.369 GB, free: 8.484 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.4009, allocations: 0 / 1.369 GB, free: 8.484 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.415e-05/0.4009, allocations: 15.78 kB / 1.369 GB, free: 8.469 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.4009, allocations: 4 kB / 1.369 GB, free: 8.465 MB / 1.061 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.0001924/0.4011, allocations: 129.8 kB / 1.369 GB, free: 8.328 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.808e-05/0.4011, allocations: 11.89 kB / 1.369 GB, free: 8.316 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.4013, allocations: 70.11 kB / 1.369 GB, free: 8.238 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4013, allocations: 0 / 1.369 GB, free: 8.238 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4013, allocations: 4.031 kB / 1.369 GB, free: 8.234 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.4013, allocations: 0 / 1.369 GB, free: 8.234 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.4015, allocations: 156.7 kB / 1.369 GB, free: 8.039 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4015, allocations: 0 / 1.369 GB, free: 8.039 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.925e-06/0.4015, allocations: 3.938 kB / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4015, allocations: 0 / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.4015, allocations: 0 / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.4015, allocations: 0 / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.4015, allocations: 4 kB / 1.369 GB, free: 8.031 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.4016, allocations: 92.98 kB / 1.369 GB, free: 7.922 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.86e-05/0.4016, allocations: 15.88 kB / 1.369 GB, free: 7.906 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.4016, allocations: 8 kB / 1.369 GB, free: 7.898 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.347e-05/0.4016, allocations: 0 / 1.369 GB, free: 7.898 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.4017, allocations: 0 / 1.369 GB, free: 7.898 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.4017, allocations: 0 / 1.369 GB, free: 7.898 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001452/0.4018, allocations: 152.3 kB / 1.369 GB, free: 7.75 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4018, allocations: 0 / 1.369 GB, free: 7.75 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003776/0.4022, allocations: 87.8 kB / 1.369 GB, free: 7.664 MB / 1.061 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.0009551/0.4031, allocations: 0.7556 MB / 1.37 GB, free: 6.902 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002093/0.4034, allocations: 121.6 kB / 1.37 GB, free: 6.777 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4034, allocations: 0 / 1.37 GB, free: 6.777 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.767e-05/0.4034, allocations: 8 kB / 1.37 GB, free: 6.77 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.4035, allocations: 4 kB / 1.37 GB, free: 6.766 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.4056, allocations: 1.817 MB / 1.372 GB, free: 4.863 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.4057, allocations: 104.1 kB / 1.372 GB, free: 4.742 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.065e-05/0.4057, allocations: 0 / 1.372 GB, free: 4.742 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/0.4057, allocations: 27.42 kB / 1.372 GB, free: 4.715 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.4057, allocations: 3.938 kB / 1.372 GB, free: 4.711 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03445/0.4402, allocations: 4.488 MB / 1.377 GB, free: 372 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.64, allocations: 7.438 kB / 1.377 GB, free: 368 kB / 1.061 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: 18.84581728000194]