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.0008492/0.0008492, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009403/0.0009403, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8851/0.8851, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.746/1.746, allocations: 377.9 MB / 0.6221 GB, free: 8.648 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 0.9809 GB, free: 2.645 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.065e-05/2.272e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.641 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.00175/0.001773, allocations: 0.5351 MB / 0.9814 GB, free: 2.109 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.003473, allocations: 1.618 MB / 0.983 GB, free: 484 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.494e-05/0.003508, allocations: 4 kB / 0.983 GB, free: 480 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.003683, allocations: 59.84 kB / 0.9831 GB, free: 420 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 2.698e-05/0.00371, allocations: 31.89 kB / 0.9831 GB, free: 388 kB / 0.9323 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.0007737/0.004483, allocations: 285.6 kB / 0.9834 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 7.233e-05/0.004556, allocations: 31.91 kB / 0.9834 GB, free: 72 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.004595, allocations: 7.984 kB / 0.9834 GB, free: 64 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 4.332e-05/0.004638, allocations: 23.91 kB / 0.9834 GB, free: 40 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 6.473e-05/0.004703, allocations: 43.98 kB / 0.9835 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.004717, allocations: 0 / 0.9835 GB, free: 15.99 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005182/0.005235, allocations: 454.9 kB / 0.9839 GB, free: 15.55 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 5.703e-05/0.005292, allocations: 35.86 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 1.999e-05/0.005312, allocations: 7.938 kB / 0.984 GB, free: 15.51 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.005657, allocations: 355.2 kB / 0.9843 GB, free: 15.16 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.00566, allocations: 0 / 0.9843 GB, free: 15.16 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.01e-07/0.005661, allocations: 0 / 0.9843 GB, free: 15.16 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.005664, allocations: 0 / 0.9843 GB, free: 15.16 MB / 0.948 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.0003838/0.006048, allocations: 369.2 kB / 0.9846 GB, free: 14.77 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.006085, allocations: 8.031 kB / 0.9847 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.646e-05/0.006111, allocations: 30.75 kB / 0.9847 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.006139, allocations: 12.84 kB / 0.9847 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.006275, allocations: 142.1 kB / 0.9848 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-06/0.006283, allocations: 384 / 0.9848 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-06/0.00629, allocations: 4.375 kB / 0.9848 GB, free: 14.54 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.395e-05/0.006374, allocations: 42.25 kB / 0.9849 GB, free: 14.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.00638, allocations: 192 / 0.9849 GB, free: 14.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.006387, allocations: 4.125 kB / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.006391, allocations: 0 / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.541e-05/0.006417, allocations: 16 kB / 0.9849 GB, free: 14.48 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.006549, allocations: 160.6 kB / 0.985 GB, free: 14.28 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.936e-05/0.006589, allocations: 30.52 kB / 0.9851 GB, free: 14.24 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.769e-05/0.006606, allocations: 16.91 kB / 0.9851 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.006637, allocations: 4 kB / 0.9851 GB, free: 14.21 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.006671, allocations: 34.56 kB / 0.9851 GB, free: 14.17 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.006672, allocations: 0 / 0.9851 GB, free: 14.17 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.0001319/0.006804, allocations: 77.52 kB / 0.9852 GB, free: 14.09 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.006831, allocations: 59.33 kB / 0.9853 GB, free: 14.02 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.006959, allocations: 207.7 kB / 0.9855 GB, free: 13.81 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.006968, allocations: 25.7 kB / 0.9855 GB, free: 13.78 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.007012, allocations: 108.1 kB / 0.9856 GB, free: 13.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.256e-06/0.00702, allocations: 0 / 0.9856 GB, free: 13.67 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.007052, allocations: 29.7 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.007129, allocations: 326.8 kB / 0.9859 GB, free: 13.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.824e-05/0.007177, allocations: 56.09 kB / 0.986 GB, free: 13.25 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.974e-05/0.007247, allocations: 55.98 kB / 0.986 GB, free: 13.2 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.627e-05/0.007313, allocations: 84.83 kB / 0.9861 GB, free: 13.11 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.007315, allocations: 8 kB / 0.9861 GB, free: 13.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001193/0.007435, allocations: 167.8 kB / 0.9863 GB, free: 12.93 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.007446, allocations: 8 kB / 0.9863 GB, free: 12.93 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.007459, allocations: 3.938 kB / 0.9863 GB, free: 12.92 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.007471, allocations: 3.938 kB / 0.9863 GB, free: 12.92 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.033e-05/0.007481, allocations: 0 / 0.9863 GB, free: 12.92 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.007486, allocations: 0 / 0.9863 GB, free: 12.92 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.064e-05/0.007506, allocations: 11.91 kB / 0.9863 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.007513, allocations: 4.062 kB / 0.9863 GB, free: 12.9 MB / 0.948 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 9.589e-05/0.007609, allocations: 137.8 kB / 0.9864 GB, free: 12.76 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-06/0.007616, allocations: 3.953 kB / 0.9864 GB, free: 12.75 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.643e-05/0.007703, allocations: 66.17 kB / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.007706, allocations: 3.938 kB / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.00771, allocations: 0 / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.007712, allocations: 4 kB / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.447e-05/0.007797, allocations: 152.7 kB / 0.9867 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.007798, allocations: 0 / 0.9867 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.581e-06/0.007803, allocations: 7.969 kB / 0.9867 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.007805, allocations: 0 / 0.9867 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.829e-06/0.00781, allocations: 0 / 0.9867 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.007811, allocations: 3.938 kB / 0.9867 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.007812, allocations: 3.938 kB / 0.9867 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.45e-05/0.007867, allocations: 89.02 kB / 0.9868 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.007877, allocations: 11.91 kB / 0.9868 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.646e-06/0.007886, allocations: 0 / 0.9868 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-06/0.007895, allocations: 3.938 kB / 0.9868 GB, free: 12.35 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.007906, allocations: 4 kB / 0.9868 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-06/0.007907, allocations: 4.031 kB / 0.9868 GB, free: 12.34 MB / 0.948 GB Notification: Performance of sorting global known variables: time 7.395e-05/0.007981, allocations: 147.2 kB / 0.9869 GB, free: 12.2 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.007981, allocations: 4 kB / 0.9869 GB, free: 12.19 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002424/0.008224, allocations: 83.8 kB / 0.987 GB, free: 12.11 MB / 0.948 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.0006199/0.008844, allocations: 0.7725 MB / 0.9878 GB, free: 11.33 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001307/0.008974, allocations: 113.7 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.008976, allocations: 0 / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.867e-06/0.008985, allocations: 8 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001083/0.009093, allocations: 15.92 kB / 0.9879 GB, free: 11.19 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.01021, allocations: 1.831 MB / 0.9897 GB, free: 9.277 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.397e-05/0.01026, allocations: 92.27 kB / 0.9898 GB, free: 9.168 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.675e-05/0.01028, allocations: 0 / 0.9898 GB, free: 9.168 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.01031, allocations: 32.64 kB / 0.9898 GB, free: 9.137 MB / 0.948 GB Notification: Performance of SimCode: time 4.21e-07/0.01031, allocations: 4 kB / 0.9898 GB, free: 9.133 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.02869, allocations: 4.624 MB / 0.9943 GB, free: 4.625 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/7.153, allocations: 8.656 kB / 0.9943 GB, free: 4.621 MB / 0.948 GB " [Timeout remaining time 293] (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/jenkins/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: 11.17723248898983]