Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001775/0.001775, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001494/0.001494, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.524/1.524, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.988/2.988, allocations: 0.5003 GB / 0.8026 GB, free: 6.703 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_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.002113/0.002113, allocations: 63.91 kB / 1.165 GB, free: 0.5078 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013/1.015, allocations: 179 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001966/1.017, allocations: 0.5192 MB / 1.341 GB, free: 15.93 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002589/1.019, allocations: 1.682 MB / 1.342 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.819e-05/1.019, allocations: 1.094 kB / 1.342 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000179/1.02, allocations: 20.31 kB / 1.342 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.881e-05/1.02, allocations: 8.438 kB / 1.342 GB, free: 14.73 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.001026/1.021, allocations: 262.9 kB / 1.343 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.52e-05/1.021, allocations: 24.27 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.373e-05/1.021, allocations: 2.609 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.417e-05/1.021, allocations: 18.34 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/1.021, allocations: 15.02 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/1.021, allocations: 0 / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006402/1.021, allocations: 388.7 kB / 1.343 GB, free: 14.48 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.701e-05/1.021, allocations: 26.08 kB / 1.343 GB, free: 14.47 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.696e-05/1.021, allocations: 20.47 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004627/1.022, allocations: 288.9 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/1.022, allocations: 0 / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.573e-06/1.022, allocations: 3.938 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.572e-06/1.022, allocations: 0.6094 kB / 1.343 GB, free: 14.38 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.000434/1.022, allocations: 412.8 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/1.022, allocations: 10.05 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.881e-05/1.022, allocations: 9.406 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.966e-05/1.023, allocations: 30.75 kB / 1.344 GB, free: 13.92 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/1.023, allocations: 7.609 kB / 1.344 GB, free: 13.91 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/1.023, allocations: 178.5 kB / 1.344 GB, free: 13.71 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/1.023, allocations: 1.078 kB / 1.344 GB, free: 13.71 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/1.023, allocations: 1.531 kB / 1.344 GB, free: 13.71 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/1.023, allocations: 39.7 kB / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/1.023, allocations: 0 / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-06/1.023, allocations: 1.094 kB / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/1.023, allocations: 0 / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.903e-05/1.023, allocations: 24.44 kB / 1.344 GB, free: 13.67 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/1.023, allocations: 177.1 kB / 1.344 GB, free: 13.46 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 5.102e-05/1.023, allocations: 24.14 kB / 1.344 GB, free: 13.44 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.429e-05/1.023, allocations: 13.12 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/1.023, allocations: 10.28 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/1.023, allocations: 36.25 kB / 1.344 GB, free: 13.39 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/1.023, allocations: 4 kB / 1.344 GB, free: 13.38 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001709/1.023, allocations: 63.55 kB / 1.344 GB, free: 13.34 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/1.023, allocations: 52.5 kB / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/1.024, allocations: 172.4 kB / 1.344 GB, free: 13.16 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/1.024, allocations: 29.64 kB / 1.345 GB, free: 13.12 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.911e-05/1.024, allocations: 95.67 kB / 1.345 GB, free: 13.03 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.009e-05/1.024, allocations: 4.609 kB / 1.345 GB, free: 13.03 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/1.024, allocations: 29.78 kB / 1.345 GB, free: 13 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.389e-05/1.024, allocations: 326.1 kB / 1.345 GB, free: 12.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.59e-05/1.024, allocations: 39.2 kB / 1.345 GB, free: 12.68 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.91e-05/1.024, allocations: 42.61 kB / 1.345 GB, free: 12.67 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.721e-05/1.024, allocations: 68.06 kB / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/1.024, allocations: 0 / 1.345 GB, free: 12.65 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001552/1.024, allocations: 135 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/1.024, allocations: 5.25 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/1.024, allocations: 2.125 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/1.024, allocations: 0 / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.426e-05/1.024, allocations: 6.328 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/1.024, allocations: 0 / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.371e-05/1.024, allocations: 9.266 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-06/1.024, allocations: 1.375 kB / 1.345 GB, free: 12.58 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 0.0001466/1.024, allocations: 125.8 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/1.024, allocations: 10.64 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/1.024, allocations: 62.44 kB / 1.345 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/1.024, allocations: 32 / 1.345 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.024, allocations: 6.031 kB / 1.345 GB, free: 12.4 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/1.024, allocations: 0 / 1.345 GB, free: 12.4 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.941e-05/1.024, allocations: 164.7 kB / 1.346 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/1.024, allocations: 5.312 kB / 1.346 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.659e-06/1.024, allocations: 0.7031 kB / 1.346 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/1.024, allocations: 0 / 1.346 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/1.025, allocations: 2.125 kB / 1.346 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/1.025, allocations: 3.984 kB / 1.346 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.025, allocations: 0 / 1.346 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.336e-05/1.025, allocations: 82.45 kB / 1.346 GB, free: 12.13 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.426e-05/1.025, allocations: 87.08 kB / 1.346 GB, free: 12.03 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/1.025, allocations: 1.938 kB / 1.346 GB, free: 12.03 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/1.025, allocations: 0 / 1.346 GB, free: 12.03 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/1.025, allocations: 1.938 kB / 1.346 GB, free: 12.03 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/1.025, allocations: 0.5625 kB / 1.346 GB, free: 12.03 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.956e-05/1.025, allocations: 133.9 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.025, allocations: 0 / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003639/1.025, allocations: 88.39 kB / 1.346 GB, free: 11.92 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.0007062/1.026, allocations: 0.7489 MB / 1.347 GB, free: 11.28 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001761/1.026, allocations: 91.11 kB / 1.347 GB, free: 11.24 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.026, allocations: 1.375 kB / 1.347 GB, free: 11.24 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.68e-05/1.026, allocations: 12.59 kB / 1.347 GB, free: 11.23 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/1.026, allocations: 5.375 kB / 1.347 GB, free: 11.23 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/1.027, allocations: 1.545 MB / 1.348 GB, free: 10.02 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/1.028, allocations: 0.692 MB / 1.349 GB, free: 9.328 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.002e-05/1.028, allocations: 1.531 kB / 1.349 GB, free: 9.328 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/1.028, allocations: 23.42 kB / 1.349 GB, free: 9.309 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/1.028, allocations: 0 / 1.349 GB, free: 9.309 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/1.05, allocations: 3.632 MB / 1.353 GB, free: 8.742 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.429/9.478, allocations: 20.7 kB / 1.353 GB, free: 8.73 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.107390589022543]