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.0008206/0.0008206, 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.0008862/0.0008862, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8717/0.8717, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.706/1.706, allocations: 377.8 MB / 0.6221 GB, free: 8.668 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_1d,fileNamePrefix="Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 0.9809 GB, free: 2.633 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.227e-05/2.396e-05, allocations: 4.812 kB / 0.9809 GB, free: 2.629 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001256/0.00128, allocations: 0.5246 MB / 0.9814 GB, free: 2.105 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001706/0.002986, allocations: 1.618 MB / 0.983 GB, free: 480 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.495e-05/0.003021, allocations: 3.938 kB / 0.983 GB, free: 476 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.00317, allocations: 15.97 kB / 0.983 GB, free: 460 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 2.133e-05/0.003191, allocations: 15.92 kB / 0.983 GB, free: 444 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.000679/0.00387, allocations: 275 kB / 0.9833 GB, free: 168 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.003933, allocations: 19.92 kB / 0.9833 GB, free: 148 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.003969, allocations: 7.984 kB / 0.9833 GB, free: 140 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 3.646e-05/0.004005, allocations: 15.97 kB / 0.9833 GB, free: 124 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.613e-05/0.004041, allocations: 15.98 kB / 0.9834 GB, free: 108 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.004055, allocations: 0 / 0.9834 GB, free: 108 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004777/0.004532, allocations: 455 kB / 0.9838 GB, free: 15.66 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.004581, allocations: 19.92 kB / 0.9838 GB, free: 15.64 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.0046, allocations: 7.984 kB / 0.9838 GB, free: 15.63 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.004916, allocations: 355.1 kB / 0.9842 GB, free: 15.29 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.004919, allocations: 0 / 0.9842 GB, free: 15.29 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.32e-07/0.004919, allocations: 0 / 0.9842 GB, free: 15.29 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.004923, allocations: 4 kB / 0.9842 GB, free: 15.28 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.00033/0.005253, allocations: 333.6 kB / 0.9845 GB, free: 14.93 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.00529, allocations: 12.03 kB / 0.9845 GB, free: 14.91 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.644e-05/0.005316, allocations: 30.75 kB / 0.9845 GB, free: 14.88 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.326e-05/0.005339, allocations: 4.891 kB / 0.9845 GB, free: 14.87 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.005454, allocations: 124.1 kB / 0.9846 GB, free: 14.73 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-06/0.005462, allocations: 4.375 kB / 0.9846 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-06/0.005469, allocations: 8.25 kB / 0.9847 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.205e-05/0.005551, allocations: 42.25 kB / 0.9847 GB, free: 14.67 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.005557, allocations: 192 / 0.9847 GB, free: 14.67 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.005564, allocations: 8.125 kB / 0.9847 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.005568, allocations: 0 / 0.9847 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.159e-05/0.005589, allocations: 15.94 kB / 0.9847 GB, free: 14.64 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001214/0.005711, allocations: 144.8 kB / 0.9849 GB, free: 14.46 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.971e-05/0.005751, allocations: 26.56 kB / 0.9849 GB, free: 14.43 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.629e-05/0.005767, allocations: 12.86 kB / 0.9849 GB, free: 14.41 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.005797, allocations: 8 kB / 0.9849 GB, free: 14.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.005815, allocations: 30.56 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.005815, allocations: 0 / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of matching and sorting (n=1): time 0.0001374/0.005952, allocations: 77.5 kB / 0.985 GB, free: 14.28 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.005982, allocations: 55.53 kB / 0.9851 GB, free: 14.21 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.006095, allocations: 168.9 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.006105, allocations: 25.7 kB / 0.9852 GB, free: 14.01 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.224e-05/0.006147, allocations: 100.1 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.566e-06/0.006155, allocations: 0 / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.006189, allocations: 25.7 kB / 0.9854 GB, free: 13.88 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.895e-05/0.006268, allocations: 322.8 kB / 0.9857 GB, free: 13.55 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.069e-05/0.006309, allocations: 43.86 kB / 0.9857 GB, free: 13.51 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.075e-05/0.006339, allocations: 47.92 kB / 0.9858 GB, free: 13.46 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.914e-05/0.006398, allocations: 64.83 kB / 0.9858 GB, free: 13.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.0064, allocations: 0 / 0.9858 GB, free: 13.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.515e-05/0.006496, allocations: 121.7 kB / 0.9859 GB, free: 13.27 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.00651, allocations: 11.98 kB / 0.9859 GB, free: 13.26 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.006524, allocations: 0 / 0.9859 GB, free: 13.26 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.006535, allocations: 3.938 kB / 0.986 GB, free: 13.26 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.27e-05/0.006548, allocations: 0 / 0.986 GB, free: 13.26 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.006552, allocations: 0 / 0.986 GB, free: 13.26 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.858e-05/0.006571, allocations: 15.89 kB / 0.986 GB, free: 13.24 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.006578, allocations: 0 / 0.986 GB, free: 13.24 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: 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 9.958e-05/0.006678, allocations: 127.9 kB / 0.9861 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-06/0.006684, allocations: 11.98 kB / 0.9861 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.837e-05/0.006773, allocations: 61.42 kB / 0.9862 GB, free: 13.04 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.006777, allocations: 7.938 kB / 0.9862 GB, free: 13.03 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.006782, allocations: 4 kB / 0.9862 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.006785, allocations: 0 / 0.9862 GB, free: 13.02 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.947e-05/0.006865, allocations: 136.8 kB / 0.9863 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.006865, allocations: 0 / 0.9863 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.875e-06/0.006868, allocations: 0 / 0.9863 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.00687, allocations: 7.984 kB / 0.9863 GB, free: 12.84 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-06/0.006877, allocations: 0 / 0.9863 GB, free: 12.84 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.006878, allocations: 3.969 kB / 0.9863 GB, free: 12.84 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.006879, allocations: 4 kB / 0.9863 GB, free: 12.83 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.923e-05/0.006948, allocations: 77.02 kB / 0.9864 GB, free: 12.74 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-06/0.006958, allocations: 7.953 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.006969, allocations: 3.938 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-06/0.006978, allocations: 3.938 kB / 0.9864 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.006993, allocations: 0 / 0.9864 GB, free: 12.72 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-06/0.006995, allocations: 0 / 0.9864 GB, free: 12.72 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.396e-05/0.007059, allocations: 127.2 kB / 0.9865 GB, free: 12.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007059, allocations: 0 / 0.9865 GB, free: 12.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000222/0.007281, allocations: 83.8 kB / 0.9866 GB, free: 12.52 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.0006209/0.007902, allocations: 0.7671 MB / 0.9874 GB, free: 11.74 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001421/0.008044, allocations: 93.67 kB / 0.9874 GB, free: 11.64 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.008046, allocations: 0 / 0.9874 GB, free: 11.64 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.051e-05/0.008056, allocations: 20.08 kB / 0.9875 GB, free: 11.62 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001162/0.008172, allocations: 7.875 kB / 0.9875 GB, free: 11.62 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000983/0.009155, allocations: 1.553 MB / 0.989 GB, free: 9.98 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.389e-05/0.009209, allocations: 75.33 kB / 0.9891 GB, free: 9.887 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.785e-05/0.009227, allocations: 3.938 kB / 0.9891 GB, free: 9.883 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.009262, allocations: 28.48 kB / 0.9891 GB, free: 9.855 MB / 0.948 GB Notification: Performance of SimCode: time 5.91e-07/0.009262, allocations: 0 / 0.9891 GB, free: 9.855 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.03009, allocations: 4.248 MB / 0.9932 GB, free: 5.73 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.084/7.114, allocations: 12.66 kB / 0.9933 GB, free: 5.727 MB / 0.948 GB " [Timeout remaining time 293] (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/jenkins/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: 11.08967823907733]