Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.00169/0.00169, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001467/0.001467, allocations: 213.8 kB / 23.03 MB, free: 4.926 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.518/1.518, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.258/3.258, allocations: 0.5003 GB / 0.8062 GB, free: 28.24 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_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",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.00216/0.00216, allocations: 70.33 kB / 1.17 GB, free: 19.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3678, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002129/0.3699, allocations: 0.5087 MB / 1.346 GB, free: 15.43 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003645/0.3735, allocations: 1.603 MB / 1.347 GB, free: 13.81 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.485e-05/0.3736, allocations: 0 / 1.347 GB, free: 13.81 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.3738, allocations: 19.91 kB / 1.347 GB, free: 13.79 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.352e-05/0.3738, allocations: 19.91 kB / 1.347 GB, free: 13.77 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.001465/0.3753, allocations: 279.2 kB / 1.348 GB, free: 13.5 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.43e-05/0.3754, allocations: 27.91 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.824e-05/0.3754, allocations: 4.281 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.348e-05/0.3755, allocations: 7.984 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.456e-05/0.3755, allocations: 27.91 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.3755, allocations: 0 / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.3768, allocations: 487.1 kB / 1.348 GB, free: 12.96 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.401e-05/0.3769, allocations: 23.92 kB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.3769, allocations: 11.88 kB / 1.348 GB, free: 12.92 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0008964/0.3778, allocations: 303.1 kB / 1.348 GB, free: 12.62 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3779, allocations: 3.938 kB / 1.348 GB, free: 12.62 MB / 1.045 GB Notification: Performance of FrontEnd: time 5.33e-06/0.3779, allocations: 4 kB / 1.348 GB, free: 12.62 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.285e-06/0.3779, allocations: 0 / 1.348 GB, free: 12.62 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.0007049/0.3786, allocations: 341.6 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.155e-05/0.3786, allocations: 8.031 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.267e-05/0.3787, allocations: 192 / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.3787, allocations: 42.73 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.3787, allocations: 4.891 kB / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.379, allocations: 126.4 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.379, allocations: 384 / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.379, allocations: 4.375 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.3791, allocations: 41.62 kB / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3791, allocations: 0 / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.3791, allocations: 4 kB / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3791, allocations: 0 / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.964e-05/0.3792, allocations: 23.92 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002357/0.3794, allocations: 140.8 kB / 1.349 GB, free: 11.79 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.32e-05/0.3795, allocations: 22.62 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.492e-05/0.3795, allocations: 16.86 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.536e-05/0.3796, allocations: 7.938 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.3796, allocations: 38.55 kB / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 1.203e-06/0.3796, allocations: 0 / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001992/0.3798, allocations: 65.67 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.791e-05/0.3798, allocations: 55.44 kB / 1.349 GB, free: 11.54 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.3801, allocations: 173 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.3801, allocations: 25.7 kB / 1.35 GB, free: 11.33 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.413e-05/0.3802, allocations: 92.14 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.3802, allocations: 3.953 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.236e-05/0.3803, allocations: 29.64 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3804, allocations: 322.8 kB / 1.35 GB, free: 10.88 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.918e-05/0.3805, allocations: 35.98 kB / 1.35 GB, free: 10.84 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.114e-05/0.3806, allocations: 47.92 kB / 1.35 GB, free: 10.79 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.3807, allocations: 64.83 kB / 1.35 GB, free: 10.73 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3807, allocations: 4.031 kB / 1.35 GB, free: 10.72 MB / 1.045 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002171/0.3809, allocations: 129.5 kB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3809, allocations: 4 kB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.3809, allocations: 4 kB / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.381, allocations: 0 / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-05/0.381, allocations: 0 / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.381, allocations: 0 / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.711e-05/0.381, allocations: 15.89 kB / 1.35 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.381, allocations: 0 / 1.35 GB, free: 10.57 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0002215/0.3813, allocations: 125.8 kB / 1.35 GB, free: 10.43 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.3813, allocations: 15.92 kB / 1.35 GB, free: 10.42 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.3814, allocations: 65.36 kB / 1.35 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3814, allocations: 0 / 1.35 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3814, allocations: 4 kB / 1.35 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3815, allocations: 0 / 1.35 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.3816, allocations: 136.8 kB / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3816, allocations: 7.922 kB / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.493e-06/0.3816, allocations: 0 / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3816, allocations: 0 / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.3816, allocations: 4 kB / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3816, allocations: 8.031 kB / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3816, allocations: 3.984 kB / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001201/0.3818, allocations: 73.08 kB / 1.351 GB, free: 10.05 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.453e-05/0.3818, allocations: 15.88 kB / 1.351 GB, free: 10.03 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.3818, allocations: 4 kB / 1.351 GB, free: 10.03 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.641e-05/0.3818, allocations: 0 / 1.351 GB, free: 10.03 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.679e-05/0.3819, allocations: 7.922 kB / 1.351 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3819, allocations: 0 / 1.351 GB, free: 10.02 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001247/0.382, allocations: 122.1 kB / 1.351 GB, free: 9.902 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.4e-07/0.382, allocations: 0 / 1.351 GB, free: 9.902 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005309/0.3825, allocations: 95.77 kB / 1.351 GB, free: 9.809 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.001209/0.3837, allocations: 0.7402 MB / 1.352 GB, free: 9.066 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002164/0.3839, allocations: 93.67 kB / 1.352 GB, free: 8.969 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3839, allocations: 8.031 kB / 1.352 GB, free: 8.961 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.421e-05/0.384, allocations: 11.98 kB / 1.352 GB, free: 8.949 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.3842, allocations: 1.031 kB / 1.352 GB, free: 8.949 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/0.3863, allocations: 1.531 MB / 1.353 GB, free: 7.336 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.3864, allocations: 87 kB / 1.353 GB, free: 7.23 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.703e-05/0.3864, allocations: 0 / 1.353 GB, free: 7.23 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.393e-05/0.3865, allocations: 19.44 kB / 1.353 GB, free: 7.211 MB / 1.045 GB Notification: Performance of SimCode: time 5.81e-07/0.3865, allocations: 0 / 1.353 GB, free: 7.211 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.4193, allocations: 3.775 MB / 1.357 GB, free: 3.59 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.04, allocations: 8.062 kB / 1.357 GB, free: 3.582 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.93633251299616]