Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001667/0.001667, allocations: 116.1 kB / 17.17 MB, free: 6 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.001693/0.001693, allocations: 209.5 kB / 20.13 MB, free: 3.055 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 / 253.5 MB, free: 15.1 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.016/3.016, allocations: 0.49 GB / 0.7923 GB, free: 1.312 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_1d,fileNamePrefix="Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_12_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.00212/0.00212, allocations: 71.89 kB / 1.149 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9032/0.9054, allocations: 176.1 MB / 1.321 GB, free: 24.71 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001392/0.9067, allocations: 0.5214 MB / 1.322 GB, free: 24.39 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001593/0.9083, allocations: 1.687 MB / 1.324 GB, free: 23.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.717e-05/0.9084, allocations: 0 / 1.324 GB, free: 23.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.9085, allocations: 21.41 kB / 1.324 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 1.954e-05/0.9085, allocations: 9.891 kB / 1.324 GB, free: 23.19 MB / 1.061 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.0007268/0.9092, allocations: 268 kB / 1.324 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.443e-05/0.9093, allocations: 20.78 kB / 1.324 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.9093, allocations: 0 / 1.324 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.653e-05/0.9094, allocations: 19 kB / 1.324 GB, free: 23.06 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 3.746e-05/0.9094, allocations: 14.66 kB / 1.324 GB, free: 23.06 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.9094, allocations: 2.469 kB / 1.324 GB, free: 23.06 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004661/0.9099, allocations: 395.9 kB / 1.324 GB, free: 22.93 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.276e-05/0.9099, allocations: 11.2 kB / 1.324 GB, free: 22.93 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.256e-05/0.9099, allocations: 24.75 kB / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002983/0.9102, allocations: 295.2 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.9102, allocations: 0 / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9102, allocations: 0 / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.9103, allocations: 0 / 1.325 GB, free: 22.83 MB / 1.061 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.0003415/0.9106, allocations: 413.9 kB / 1.325 GB, free: 22.42 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.9106, allocations: 12.45 kB / 1.325 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.888e-05/0.9106, allocations: 3.219 kB / 1.325 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.545e-05/0.9107, allocations: 30.75 kB / 1.325 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.504e-05/0.9107, allocations: 11.73 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.9108, allocations: 183 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.9108, allocations: 384 / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.9108, allocations: 3.188 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.849e-05/0.9109, allocations: 38.64 kB / 1.325 GB, free: 22.13 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.9109, allocations: 0 / 1.325 GB, free: 22.13 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.9109, allocations: 6.594 kB / 1.325 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.9109, allocations: 0 / 1.325 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.285e-05/0.9109, allocations: 20.23 kB / 1.325 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.911, allocations: 177.5 kB / 1.325 GB, free: 21.92 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.806e-05/0.9111, allocations: 25.91 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.573e-05/0.9111, allocations: 10.27 kB / 1.326 GB, free: 21.89 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.9111, allocations: 12.2 kB / 1.326 GB, free: 21.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.495e-05/0.9111, allocations: 30.56 kB / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.9111, allocations: 0 / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001276/0.9113, allocations: 67.58 kB / 1.326 GB, free: 21.8 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.9113, allocations: 55.41 kB / 1.326 GB, free: 21.73 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.9114, allocations: 175.7 kB / 1.326 GB, free: 21.61 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.033e-06/0.9114, allocations: 25.7 kB / 1.326 GB, free: 21.58 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.87e-05/0.9114, allocations: 97.92 kB / 1.326 GB, free: 21.49 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.715e-06/0.9114, allocations: 2.719 kB / 1.326 GB, free: 21.49 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.9115, allocations: 24.53 kB / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.638e-05/0.9115, allocations: 320.8 kB / 1.326 GB, free: 21.15 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.253e-05/0.9116, allocations: 44.73 kB / 1.326 GB, free: 21.14 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.307e-05/0.9116, allocations: 41.58 kB / 1.326 GB, free: 21.13 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.088e-05/0.9117, allocations: 68.44 kB / 1.326 GB, free: 21.11 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.9117, allocations: 2.812 kB / 1.326 GB, free: 21.11 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001164/0.9118, allocations: 131 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.9118, allocations: 7.25 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.9118, allocations: 2.938 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.9118, allocations: 0 / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.999e-06/0.9118, allocations: 3.938 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.9118, allocations: 2.594 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.9119, allocations: 16.02 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.9119, allocations: 2.438 kB / 1.327 GB, free: 21.04 MB / 1.061 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 8.845e-05/0.9119, allocations: 122.9 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.912, allocations: 10.52 kB / 1.327 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.283e-05/0.912, allocations: 62.47 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.912, allocations: 2.375 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.912, allocations: 0 / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.912, allocations: 4.031 kB / 1.327 GB, free: 20.86 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.585e-05/0.9121, allocations: 169.9 kB / 1.327 GB, free: 20.67 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.9121, allocations: 3.938 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-06/0.9121, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.9121, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.9121, allocations: 6.703 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.9121, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.9121, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.551e-05/0.9122, allocations: 79.47 kB / 1.327 GB, free: 20.59 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.83e-05/0.9122, allocations: 87.78 kB / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.9122, allocations: 0 / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.9122, allocations: 3.938 kB / 1.327 GB, free: 20.48 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.014e-05/0.9122, allocations: 7.938 kB / 1.327 GB, free: 20.48 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.9122, allocations: 2.875 kB / 1.327 GB, free: 20.48 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.358e-05/0.9123, allocations: 120 kB / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of sort global known variables: time 6.1e-08/0.9123, allocations: 0 / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003486/0.9127, allocations: 86.27 kB / 1.327 GB, free: 20.38 MB / 1.061 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.0007082/0.9134, allocations: 0.7366 MB / 1.328 GB, free: 19.75 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001917/0.9136, allocations: 101.9 kB / 1.328 GB, free: 19.7 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.9136, allocations: 0 / 1.328 GB, free: 19.7 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.061e-05/0.9136, allocations: 11.08 kB / 1.328 GB, free: 19.7 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.9137, allocations: 1.75 kB / 1.328 GB, free: 19.7 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.9148, allocations: 1.542 MB / 1.33 GB, free: 18.5 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.431e-05/0.9149, allocations: 0.6916 MB / 1.33 GB, free: 17.8 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.618e-05/0.9149, allocations: 2.125 kB / 1.33 GB, free: 17.8 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.53e-05/0.915, allocations: 19.73 kB / 1.33 GB, free: 17.79 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.915, allocations: 0 / 1.33 GB, free: 17.79 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02166/0.9366, allocations: 3.635 MB / 1.334 GB, free: 17.21 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.548/9.484, allocations: 13.27 kB / 1.334 GB, free: 17.2 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 16.184156689967494]