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.001415/0.001415, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002096/0.002096, allocations: 218.8 kB / 22.26 MB, free: 5.125 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.561/1.561, allocations: 230.6 MB / 256 MB, free: 7.949 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.411/3.411, allocations: 0.49 GB / 0.7951 GB, free: 33.45 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.002778/0.002778, allocations: 67.72 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3256, allocations: 176.1 MB / 1.326 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001779/0.3273, allocations: 0.508 MB / 1.326 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002744/0.3301, allocations: 1.7 MB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.173e-05/0.3301, allocations: 0 / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.3304, allocations: 63.84 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.367e-05/0.3304, allocations: 31.94 kB / 1.328 GB, free: 15.65 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.00121/0.3316, allocations: 287.2 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.3317, allocations: 27.91 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.798e-05/0.3318, allocations: 4.281 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.549e-05/0.3318, allocations: 27.89 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.868e-05/0.3319, allocations: 35.95 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.3319, allocations: 11.98 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009908/0.3329, allocations: 499.1 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.82e-05/0.333, allocations: 31.86 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.333, allocations: 23.75 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000622/0.3336, allocations: 307.1 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3337, allocations: 0 / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.043e-06/0.3337, allocations: 0 / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.3337, allocations: 0 / 1.329 GB, free: 14.42 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.0005861/0.3342, allocations: 373.2 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3343, allocations: 11.97 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.231e-05/0.3343, allocations: 30.75 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.645e-05/0.3344, allocations: 12.84 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.3345, allocations: 130.4 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.3346, allocations: 384 / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-06/0.3346, allocations: 384 / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.3347, allocations: 45.77 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.3347, allocations: 0 / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.3347, allocations: 0 / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3347, allocations: 7.984 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.216e-05/0.3347, allocations: 16 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.3349, allocations: 156.7 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.686e-05/0.335, allocations: 30.52 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.713e-05/0.335, allocations: 16.91 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.3351, allocations: 8 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.3351, allocations: 38.5 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 2.534e-06/0.3351, allocations: 7.984 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001654/0.3353, allocations: 73.52 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.3353, allocations: 55.41 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.3355, allocations: 202.3 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.3355, allocations: 25.7 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.3356, allocations: 108.1 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.3356, allocations: 7.938 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.3357, allocations: 29.83 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3358, allocations: 334.8 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.283e-05/0.3359, allocations: 51.97 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.471e-05/0.336, allocations: 51.98 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.3361, allocations: 94.89 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3361, allocations: 0 / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002027/0.3363, allocations: 173.4 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3363, allocations: 4 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.3363, allocations: 0 / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.3363, allocations: 4 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.457e-05/0.3363, allocations: 4.062 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3363, allocations: 3.984 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.011e-05/0.3364, allocations: 7.891 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.3364, allocations: 4 kB / 1.331 GB, free: 12.15 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.0002094/0.3366, allocations: 132 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.3366, allocations: 15.84 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.3367, allocations: 66.17 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3367, allocations: 4.031 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3368, allocations: 0 / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3368, allocations: 11.81 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.3369, allocations: 152.7 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3369, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.224e-06/0.3369, allocations: 3.938 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3369, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.3369, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3369, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3369, allocations: 4 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.337, allocations: 85.02 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.909e-05/0.337, allocations: 11.89 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.3371, allocations: 4 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.39e-05/0.3371, allocations: 0 / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.123e-05/0.3371, allocations: 4 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.3371, allocations: 0 / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001297/0.3372, allocations: 147.1 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3372, allocations: 8.031 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003797/0.3376, allocations: 87.8 kB / 1.332 GB, free: 11.34 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.0009248/0.3385, allocations: 0.7613 MB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001962/0.3387, allocations: 113.7 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3387, allocations: 0 / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.832e-05/0.3387, allocations: 11.94 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001446/0.3389, allocations: 4 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.3407, allocations: 1.823 MB / 1.335 GB, free: 8.535 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.3411, allocations: 0.7117 MB / 1.335 GB, free: 7.797 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.105e-05/0.3411, allocations: 4.031 kB / 1.335 GB, free: 7.793 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.704e-05/0.3412, allocations: 27.42 kB / 1.335 GB, free: 7.766 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3412, allocations: 0 / 1.335 GB, free: 7.766 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6737/1.015, allocations: 4.086 MB / 1.339 GB, free: 3.816 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.74, allocations: 6.188 kB / 1.339 GB, free: 3.812 MB / 1.029 GB " [Timeout remaining time 287] (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: 20.057947097811848]