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.00133/0.00133, allocations: 107.1 kB / 16.45 MB, free: 6.453 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.001438/0.001438, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.454/1.454, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.239/3.239, allocations: 0.49 GB / 0.7916 GB, free: 33.34 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.001984/0.001984, allocations: 68.73 kB / 1.149 GB, free: 26.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3289, allocations: 176.1 MB / 1.321 GB, free: 3.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001691/0.3306, allocations: 0.5193 MB / 1.321 GB, free: 2.859 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002434/0.333, allocations: 1.677 MB / 1.323 GB, free: 1.164 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.747e-05/0.333, allocations: 0 / 1.323 GB, free: 1.164 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.3332, allocations: 67.83 kB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.284e-05/0.3333, allocations: 31.89 kB / 1.323 GB, free: 1.066 MB / 1.014 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.00091/0.3342, allocations: 263.2 kB / 1.323 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.003e-05/0.3343, allocations: 27.97 kB / 1.323 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.084e-05/0.3343, allocations: 4.281 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.223e-05/0.3344, allocations: 27.89 kB / 1.323 GB, free: 0.75 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.835e-05/0.3344, allocations: 43.94 kB / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.3344, allocations: 0 / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006178/0.3351, allocations: 391.3 kB / 1.324 GB, free: 332 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.025e-05/0.3351, allocations: 35.8 kB / 1.324 GB, free: 296 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.3351, allocations: 23.75 kB / 1.324 GB, free: 272 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004299/0.3356, allocations: 307 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3356, allocations: 0 / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3356, allocations: 0 / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.255e-06/0.3356, allocations: 0 / 1.324 GB, free: 15.96 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.0005396/0.3361, allocations: 438.4 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3362, allocations: 11.98 kB / 1.325 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.3362, allocations: 38.75 kB / 1.325 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.3363, allocations: 16.83 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.3365, allocations: 188.2 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.3365, allocations: 384 / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.3365, allocations: 384 / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.3366, allocations: 41.81 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3366, allocations: 7.922 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.3366, allocations: 0 / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3366, allocations: 0 / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.712e-05/0.3367, allocations: 27.92 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002372/0.3369, allocations: 181.7 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.83e-05/0.337, allocations: 26.56 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.53e-05/0.337, allocations: 12.92 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.337, allocations: 7.984 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.3371, allocations: 38.5 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3371, allocations: 0 / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.3372, allocations: 77.53 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.3373, allocations: 51.41 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.3375, allocations: 210.8 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.3375, allocations: 29.7 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/0.3376, allocations: 104.1 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.173e-05/0.3376, allocations: 0 / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-05/0.3377, allocations: 29.7 kB / 1.326 GB, free: 14.24 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.3378, allocations: 331 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.641e-05/0.3379, allocations: 59.86 kB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.17e-05/0.338, allocations: 55.97 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.3381, allocations: 87.45 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.3381, allocations: 7.938 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002035/0.3383, allocations: 165.5 kB / 1.326 GB, free: 13.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3383, allocations: 8 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3383, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3383, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.379e-05/0.3383, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3384, allocations: 4.062 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.175e-05/0.3384, allocations: 15.83 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.3384, allocations: 0 / 1.326 GB, free: 13.5 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.0001872/0.3386, allocations: 140 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.3386, allocations: 11.84 kB / 1.326 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.3387, allocations: 66.19 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3387, allocations: 0 / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3387, allocations: 4.031 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.3387, allocations: 3.984 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.3389, allocations: 181.6 kB / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3389, allocations: 0 / 1.327 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.218e-06/0.3389, allocations: 7.938 kB / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.3389, allocations: 0 / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.3389, allocations: 0 / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3389, allocations: 4 kB / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3389, allocations: 0 / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.339, allocations: 89.03 kB / 1.327 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-05/0.3391, allocations: 88.98 kB / 1.327 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.3391, allocations: 7.938 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.284e-05/0.3391, allocations: 0 / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.11e-05/0.3391, allocations: 0 / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.3391, allocations: 0 / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001348/0.3392, allocations: 155.1 kB / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3392, allocations: 0 / 1.327 GB, free: 12.66 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004265/0.3397, allocations: 83.8 kB / 1.327 GB, free: 12.57 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.0009175/0.3406, allocations: 0.7616 MB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002034/0.3408, allocations: 117.6 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3408, allocations: 4 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.515e-05/0.3408, allocations: 8 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.341, allocations: 4 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.3429, allocations: 1.822 MB / 1.33 GB, free: 9.766 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.3433, allocations: 0.7002 MB / 1.33 GB, free: 9.039 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.718e-05/0.3433, allocations: 7.984 kB / 1.33 GB, free: 9.031 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.722e-05/0.3433, allocations: 23.44 kB / 1.33 GB, free: 9.008 MB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.3433, allocations: 4.031 kB / 1.33 GB, free: 9.004 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.3715, allocations: 3.98 MB / 1.334 GB, free: 5.117 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.447, allocations: 17.56 kB / 1.334 GB, free: 5.105 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.142055616946891]