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.001025/0.001025, 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.00111/0.00111, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9056/0.9056, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.807/1.807, allocations: 377.9 MB / 0.6221 GB, free: 8.68 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_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: Performance of FrontEnd - loaded program: time 1.153e-06/1.153e-06, allocations: 0 / 0.9809 GB, free: 1.52 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.037e-06/1.019e-05, allocations: 2.281 kB / 0.9809 GB, free: 1.516 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0009243/0.0009345, allocations: 0.5195 MB / 0.9814 GB, free: 1 MB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.002399, allocations: 1.614 MB / 0.983 GB, free: 15.37 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.877e-05/0.002428, allocations: 7.938 kB / 0.983 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.00258, allocations: 51.91 kB / 0.9831 GB, free: 15.31 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 2.63e-05/0.002606, allocations: 35.89 kB / 0.9831 GB, free: 15.27 MB / 0.9011 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.0006155/0.003222, allocations: 286.6 kB / 0.9834 GB, free: 15 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 6.083e-05/0.003282, allocations: 31.91 kB / 0.9834 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.199e-05/0.003314, allocations: 0 / 0.9834 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 3.988e-05/0.003354, allocations: 27.95 kB / 0.9834 GB, free: 14.94 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.077e-05/0.003405, allocations: 51.88 kB / 0.9835 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.003416, allocations: 0 / 0.9835 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004552/0.003871, allocations: 455 kB / 0.9839 GB, free: 14.44 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.003916, allocations: 23.92 kB / 0.9839 GB, free: 14.42 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.897e-05/0.003935, allocations: 15.94 kB / 0.984 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003126/0.004248, allocations: 359.1 kB / 0.9843 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004249, allocations: 0 / 0.9843 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.583e-06/0.004251, allocations: 4 kB / 0.9843 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.004255, allocations: 0 / 0.9843 GB, free: 14.05 MB / 0.9011 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.0003119/0.004567, allocations: 365.3 kB / 0.9846 GB, free: 13.66 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.004601, allocations: 12.03 kB / 0.9847 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.352e-05/0.004624, allocations: 34.69 kB / 0.9847 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.004648, allocations: 16.84 kB / 0.9847 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.004762, allocations: 126.2 kB / 0.9848 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.00477, allocations: 4.375 kB / 0.9848 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-06/0.004776, allocations: 384 / 0.9848 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.561e-05/0.004852, allocations: 38.2 kB / 0.9849 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.004858, allocations: 192 / 0.9849 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.004864, allocations: 4.125 kB / 0.9849 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.004868, allocations: 4 kB / 0.9849 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.524e-05/0.004893, allocations: 23.98 kB / 0.9849 GB, free: 13.36 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00012/0.005013, allocations: 148.8 kB / 0.985 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 3.651e-05/0.00505, allocations: 30.56 kB / 0.9851 GB, free: 13.14 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/0.005066, allocations: 16.86 kB / 0.9851 GB, free: 13.12 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.005095, allocations: 11.98 kB / 0.9851 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.005113, allocations: 34.5 kB / 0.9851 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.005114, allocations: 3.938 kB / 0.9851 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of matching and sorting (n=1): time 0.0001121/0.005226, allocations: 69.53 kB / 0.9852 GB, free: 12.98 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.00525, allocations: 51.53 kB / 0.9852 GB, free: 12.92 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.005408, allocations: 223.6 kB / 0.9855 GB, free: 12.7 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.005416, allocations: 25.7 kB / 0.9855 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.005459, allocations: 108 kB / 0.9856 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.043e-05/0.005469, allocations: 11.95 kB / 0.9856 GB, free: 12.54 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.005498, allocations: 25.7 kB / 0.9856 GB, free: 12.51 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.225e-05/0.005571, allocations: 326.8 kB / 0.9859 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.394e-05/0.005614, allocations: 47.98 kB / 0.986 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.89e-05/0.005663, allocations: 59.91 kB / 0.986 GB, free: 12.08 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.505e-05/0.005728, allocations: 88.83 kB / 0.9861 GB, free: 11.99 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.00573, allocations: 0 / 0.9861 GB, free: 11.99 MB / 0.9011 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001124/0.005842, allocations: 172.1 kB / 0.9863 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.005854, allocations: 4 kB / 0.9863 GB, free: 11.81 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.005866, allocations: 0 / 0.9863 GB, free: 11.81 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.005876, allocations: 7.938 kB / 0.9863 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.207e-06/0.005885, allocations: 0 / 0.9863 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.00589, allocations: 0 / 0.9863 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.783e-05/0.005907, allocations: 11.84 kB / 0.9863 GB, free: 11.79 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.005915, allocations: 4 kB / 0.9863 GB, free: 11.79 MB / 0.9011 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 8.527e-05/0.006, allocations: 132.2 kB / 0.9864 GB, free: 11.65 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-06/0.006007, allocations: 7.953 kB / 0.9865 GB, free: 11.64 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.324e-05/0.00608, allocations: 70.16 kB / 0.9865 GB, free: 11.57 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.006083, allocations: 7.922 kB / 0.9865 GB, free: 11.56 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.006086, allocations: 0 / 0.9865 GB, free: 11.56 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.006089, allocations: 0 / 0.9865 GB, free: 11.56 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.604e-05/0.006165, allocations: 152.7 kB / 0.9867 GB, free: 11.37 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.006165, allocations: 0 / 0.9867 GB, free: 11.37 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-06/0.006167, allocations: 0 / 0.9867 GB, free: 11.37 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.006169, allocations: 0 / 0.9867 GB, free: 11.37 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.006174, allocations: 4 kB / 0.9867 GB, free: 11.37 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.006176, allocations: 3.938 kB / 0.9867 GB, free: 11.36 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.006177, allocations: 8.031 kB / 0.9867 GB, free: 11.36 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.068e-05/0.006228, allocations: 88.95 kB / 0.9868 GB, free: 11.25 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 1.008e-05/0.006238, allocations: 15.89 kB / 0.9868 GB, free: 11.23 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-06/0.006247, allocations: 0 / 0.9868 GB, free: 11.23 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.317e-06/0.006256, allocations: 7.938 kB / 0.9868 GB, free: 11.23 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-06/0.006266, allocations: 0 / 0.9868 GB, free: 11.23 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-06/0.006267, allocations: 3.938 kB / 0.9868 GB, free: 11.22 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 7.231e-05/0.00634, allocations: 147.2 kB / 0.9869 GB, free: 11.08 MB / 0.9011 GB Notification: Performance of sort global known variables: time 7e-08/0.00634, allocations: 0 / 0.9869 GB, free: 11.08 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002057/0.006545, allocations: 87.8 kB / 0.987 GB, free: 10.99 MB / 0.9011 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.0005005/0.007046, allocations: 0.7651 MB / 0.9878 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001221/0.007168, allocations: 121.6 kB / 0.9879 GB, free: 10.09 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.00717, allocations: 0 / 0.9879 GB, free: 10.09 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 8.446e-06/0.007178, allocations: 12.09 kB / 0.9879 GB, free: 10.08 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001043/0.007282, allocations: 5.969 kB / 0.9879 GB, free: 10.08 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.008382, allocations: 1.826 MB / 0.9897 GB, free: 8.168 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.082e-05/0.008433, allocations: 100 kB / 0.9898 GB, free: 8.051 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 1.546e-05/0.008448, allocations: 4 kB / 0.9898 GB, free: 8.047 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.008477, allocations: 24.48 kB / 0.9898 GB, free: 8.02 MB / 0.9011 GB Notification: Performance of SimCode: time 3.9e-07/0.008478, allocations: 0 / 0.9898 GB, free: 8.02 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.02958, allocations: 4.634 MB / 0.9943 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.894/6.923, allocations: 8.5 kB / 0.9943 GB, free: 3.5 MB / 0.9011 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable cmp in file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.071931725367904]