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.001774/0.001774, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002297/0.002297, allocations: 219.5 kB / 23.04 MB, free: 5.074 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.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 8.008 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 3.505/3.505, allocations: 0.5003 GB / 0.8061 GB, free: 26.76 MB / 0.6231 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.002295/0.002295, allocations: 66.28 kB / 1.171 GB, free: 19.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4142, allocations: 179 MB / 1.345 GB, free: 484 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001782/0.416, allocations: 0.5205 MB / 1.346 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002594/0.4186, allocations: 1.693 MB / 1.347 GB, free: 14.24 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.12e-05/0.4186, allocations: 0 / 1.347 GB, free: 14.24 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.4187, allocations: 23.91 kB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.468e-05/0.4187, allocations: 11.98 kB / 1.347 GB, free: 14.2 MB / 1.045 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.0009667/0.4197, allocations: 278 kB / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.326e-05/0.4198, allocations: 23.92 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.898e-05/0.4198, allocations: 4.266 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 3.624e-05/0.4199, allocations: 15.92 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.66e-05/0.4199, allocations: 19.97 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.4199, allocations: 4 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008071/0.4207, allocations: 487.1 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.515e-05/0.4208, allocations: 23.92 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.4208, allocations: 15.81 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.4213, allocations: 299.1 kB / 1.349 GB, free: 13.06 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4213, allocations: 3.984 kB / 1.349 GB, free: 13.05 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4213, allocations: 0 / 1.349 GB, free: 13.05 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.4213, allocations: 0 / 1.349 GB, free: 13.05 MB / 1.045 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.0005003/0.4218, allocations: 345.6 kB / 1.349 GB, free: 12.69 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.4218, allocations: 12.03 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.268e-05/0.4219, allocations: 192 / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.314e-05/0.4219, allocations: 34.69 kB / 1.349 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.724e-05/0.4219, allocations: 4.891 kB / 1.349 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.4221, allocations: 129.4 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.4221, allocations: 4.375 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.4221, allocations: 384 / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.4222, allocations: 49.61 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.4222, allocations: 0 / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-06/0.4222, allocations: 0 / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-06/0.4222, allocations: 0 / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.187e-05/0.4222, allocations: 16 kB / 1.349 GB, free: 12.41 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.4224, allocations: 144.8 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.391e-05/0.4225, allocations: 30.56 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.104e-05/0.4225, allocations: 8.859 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.755e-05/0.4225, allocations: 11.94 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.4226, allocations: 34.56 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.4226, allocations: 0 / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001495/0.4227, allocations: 69.56 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.4228, allocations: 55.34 kB / 1.35 GB, free: 11.98 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.4229, allocations: 166.2 kB / 1.35 GB, free: 11.8 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.4229, allocations: 25.7 kB / 1.35 GB, free: 11.77 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.423, allocations: 96.25 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.423, allocations: 11.95 kB / 1.35 GB, free: 11.66 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.4231, allocations: 29.64 kB / 1.35 GB, free: 11.63 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.4232, allocations: 322.8 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.435e-05/0.4233, allocations: 35.98 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.893e-05/0.4233, allocations: 39.98 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.91e-05/0.4234, allocations: 68.88 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4234, allocations: 0 / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001754/0.4236, allocations: 129.5 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.4236, allocations: 13.61 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.4236, allocations: 0 / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.4236, allocations: 4 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.247e-05/0.4237, allocations: 0 / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.4237, allocations: 3.984 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.743e-05/0.4237, allocations: 11.89 kB / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.4237, allocations: 8 kB / 1.35 GB, free: 10.99 MB / 1.045 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.0001547/0.4239, allocations: 117.8 kB / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.4239, allocations: 11.89 kB / 1.351 GB, free: 10.85 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001255/0.424, allocations: 69.42 kB / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.424, allocations: 0 / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.424, allocations: 0 / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.424, allocations: 0 / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.4241, allocations: 136.8 kB / 1.351 GB, free: 10.59 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4241, allocations: 7.938 kB / 1.351 GB, free: 10.59 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.097e-06/0.4241, allocations: 7.922 kB / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4241, allocations: 0 / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-06/0.4241, allocations: 0 / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4242, allocations: 4.031 kB / 1.351 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.4242, allocations: 0 / 1.351 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.097e-05/0.4242, allocations: 77.11 kB / 1.351 GB, free: 10.48 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.4243, allocations: 15.89 kB / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.4243, allocations: 0 / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.4243, allocations: 0 / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.4243, allocations: 0 / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.4243, allocations: 3.984 kB / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001064/0.4244, allocations: 126.1 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4244, allocations: 0 / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000362/0.4248, allocations: 91.73 kB / 1.351 GB, free: 10.25 MB / 1.045 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.0008772/0.4256, allocations: 0.7486 MB / 1.352 GB, free: 9.496 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001801/0.4258, allocations: 89.67 kB / 1.352 GB, free: 9.402 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4258, allocations: 0 / 1.352 GB, free: 9.402 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.912e-05/0.4259, allocations: 11.98 kB / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.426, allocations: 4 kB / 1.352 GB, free: 9.387 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.4275, allocations: 1.543 MB / 1.353 GB, free: 7.762 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.4279, allocations: 0.7001 MB / 1.354 GB, free: 7.035 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.072e-05/0.4279, allocations: 4 kB / 1.354 GB, free: 7.031 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.688e-05/0.4279, allocations: 15.44 kB / 1.354 GB, free: 7.016 MB / 1.045 GB Notification: Performance of SimCode: time 5.51e-07/0.4279, allocations: 0 / 1.354 GB, free: 7.016 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.4543, allocations: 3.732 MB / 1.358 GB, free: 3.438 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.85, allocations: 4.422 kB / 1.358 GB, free: 3.438 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.98750193201704]