Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001732/0.001732, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002157/0.002157, allocations: 219 kB / 22.25 MB, free: 5.258 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.216/3.216, allocations: 0.49 GB / 0.7951 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_12_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.001998/0.001998, allocations: 62.75 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.332, allocations: 176.1 MB / 1.326 GB, free: 1.473 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001705/0.3337, allocations: 0.5338 MB / 1.326 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002478/0.3362, allocations: 1.603 MB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.657e-05/0.3362, allocations: 4 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.3364, allocations: 63.84 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.819e-05/0.3365, allocations: 23.97 kB / 1.328 GB, free: 15.23 MB / 1.029 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.001061/0.3375, allocations: 295.1 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.877e-05/0.3376, allocations: 27.91 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.095e-05/0.3377, allocations: 4.281 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.411e-05/0.3377, allocations: 23.91 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.257e-05/0.3378, allocations: 47.88 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.3378, allocations: 0 / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008164/0.3386, allocations: 495.1 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.3387, allocations: 27.91 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.218e-05/0.3387, allocations: 19.81 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004516/0.3392, allocations: 311.1 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3392, allocations: 0 / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3392, allocations: 0 / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.3392, allocations: 0 / 1.329 GB, free: 14.01 MB / 1.029 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.0005525/0.3397, allocations: 365.3 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3398, allocations: 12.03 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.719e-05/0.3398, allocations: 30.75 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.3398, allocations: 12.84 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.34, allocations: 134.3 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-06/0.34, allocations: 384 / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.3401, allocations: 12.36 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.3402, allocations: 41.81 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3402, allocations: 0 / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.707e-06/0.3402, allocations: 0 / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3402, allocations: 0 / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.486e-05/0.3402, allocations: 19.98 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001934/0.3404, allocations: 156.7 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.075e-05/0.3405, allocations: 26.52 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.718e-05/0.3405, allocations: 16.91 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.3405, allocations: 7.906 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.3406, allocations: 46.5 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.3406, allocations: 0 / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.3408, allocations: 73.52 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.3408, allocations: 51.41 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.341, allocations: 210.2 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.341, allocations: 25.7 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.811e-05/0.3411, allocations: 104.1 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.3411, allocations: 3.938 kB / 1.33 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.881e-05/0.3412, allocations: 29.7 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3413, allocations: 330.8 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.417e-05/0.3414, allocations: 56.09 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.902e-05/0.3414, allocations: 51.98 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.3416, allocations: 96.77 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3416, allocations: 3.938 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000193/0.3418, allocations: 167.4 kB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3418, allocations: 4 kB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.3418, allocations: 0 / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3418, allocations: 4 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.149e-05/0.3418, allocations: 0 / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.3418, allocations: 0 / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.158e-05/0.3418, allocations: 15.83 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.3419, allocations: 12.05 kB / 1.331 GB, free: 11.73 MB / 1.029 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.0001703/0.342, allocations: 128.8 kB / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.342, allocations: 15.84 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.3422, allocations: 66.17 kB / 1.331 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.3422, allocations: 0 / 1.331 GB, free: 11.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3422, allocations: 4 kB / 1.331 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3422, allocations: 3.938 kB / 1.331 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.3423, allocations: 152.7 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3423, allocations: 4.031 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-06/0.3423, allocations: 3.938 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.3423, allocations: 0 / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.3423, allocations: 4 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.3423, allocations: 4 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3423, allocations: 3.984 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.232e-05/0.3424, allocations: 81.03 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.69e-05/0.3424, allocations: 11.89 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.3425, allocations: 0 / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.328e-05/0.3425, allocations: 0 / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.3425, allocations: 0 / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.3425, allocations: 8.031 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001311/0.3426, allocations: 151.1 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3426, allocations: 0 / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003325/0.343, allocations: 87.8 kB / 1.332 GB, free: 10.94 MB / 1.029 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.0009423/0.3439, allocations: 0.7796 MB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000212/0.3441, allocations: 109.7 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3441, allocations: 0 / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.175e-05/0.3441, allocations: 15.94 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.3443, allocations: 7.984 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.3462, allocations: 1.806 MB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.93e-05/0.3463, allocations: 96.11 kB / 1.335 GB, free: 8.016 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.831e-05/0.3463, allocations: 160 / 1.335 GB, free: 8.016 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.623e-05/0.3464, allocations: 31.42 kB / 1.335 GB, free: 7.984 MB / 1.029 GB Notification: Performance of SimCode: time 4e-07/0.3464, allocations: 0 / 1.335 GB, free: 7.984 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.3787, allocations: 4.512 MB / 1.339 GB, free: 3.605 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.75, allocations: 4.609 kB / 1.339 GB, free: 3.605 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.627858371997718]