Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001361/0.001361, 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.001412/0.001412, 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.9107/0.9107, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.673/1.673, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 0.9505 GB, free: 3.527 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194e-05/1.337e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009758/0.0009892, allocations: 0.5276 MB / 0.951 GB, free: 2.992 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.002505, allocations: 1.607 MB / 0.9525 GB, free: 1.367 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.138e-05/0.002537, allocations: 7.938 kB / 0.9525 GB, free: 1.359 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.002668, allocations: 15.97 kB / 0.9526 GB, free: 1.344 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 1.984e-05/0.002688, allocations: 15.91 kB / 0.9526 GB, free: 1.328 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0006244/0.003312, allocations: 267 kB / 0.9528 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 5.658e-05/0.003369, allocations: 19.91 kB / 0.9529 GB, free: 1.047 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.173e-05/0.0034, allocations: 4 kB / 0.9529 GB, free: 1.043 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 4.01e-05/0.003441, allocations: 15.92 kB / 0.9529 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 3.37e-05/0.003474, allocations: 15.98 kB / 0.9529 GB, free: 1.012 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.003487, allocations: 0 / 0.9529 GB, free: 1.012 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004387/0.003926, allocations: 427.1 kB / 0.9533 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 4.455e-05/0.00397, allocations: 19.94 kB / 0.9533 GB, free: 0.5742 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.774e-05/0.003988, allocations: 11.92 kB / 0.9533 GB, free: 0.5625 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000297/0.004285, allocations: 335.2 kB / 0.9536 GB, free: 240 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.004287, allocations: 0 / 0.9536 GB, free: 240 kB / 0.9011 GB Notification: Performance of FrontEnd: time 9.22e-07/0.004287, allocations: 0 / 0.9536 GB, free: 240 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.004292, allocations: 3.938 kB / 0.9536 GB, free: 236 kB / 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.000429/0.004721, allocations: 349.4 kB / 0.954 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.004754, allocations: 8.031 kB / 0.954 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.506e-05/0.004779, allocations: 30.75 kB / 0.954 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.078e-05/0.0048, allocations: 8.891 kB / 0.954 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.004905, allocations: 117.7 kB / 0.9541 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.004912, allocations: 384 / 0.9541 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.00492, allocations: 4.375 kB / 0.9541 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.464e-05/0.004995, allocations: 38.27 kB / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.005001, allocations: 192 / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.005008, allocations: 4.125 kB / 0.9542 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.005012, allocations: 0 / 0.9542 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.34e-05/0.005035, allocations: 23.92 kB / 0.9542 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/0.00515, allocations: 140.8 kB / 0.9543 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 3.359e-05/0.005184, allocations: 22.58 kB / 0.9544 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.636e-05/0.0052, allocations: 12.92 kB / 0.9544 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.00523, allocations: 7.984 kB / 0.9544 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.005246, allocations: 38.5 kB / 0.9544 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.005247, allocations: 4 kB / 0.9544 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1): time 0.0001178/0.005365, allocations: 69.47 kB / 0.9545 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.005388, allocations: 51.41 kB / 0.9545 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.005489, allocations: 172.9 kB / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.005496, allocations: 25.7 kB / 0.9547 GB, free: 14.96 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.005533, allocations: 96.08 kB / 0.9548 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.366e-06/0.005542, allocations: 4 kB / 0.9548 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.00557, allocations: 21.72 kB / 0.9548 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.498e-05/0.005645, allocations: 322.8 kB / 0.9552 GB, free: 14.51 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.767e-05/0.005682, allocations: 35.98 kB / 0.9552 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.776e-05/0.00571, allocations: 40.11 kB / 0.9552 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.708e-05/0.005767, allocations: 76.77 kB / 0.9553 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.005769, allocations: 0 / 0.9553 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.384e-05/0.005863, allocations: 129.5 kB / 0.9554 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.005875, allocations: 4 kB / 0.9554 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.005888, allocations: 4 kB / 0.9554 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.005898, allocations: 3.938 kB / 0.9554 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-05/0.005909, allocations: 3.984 kB / 0.9554 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.005913, allocations: 0 / 0.9554 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.005929, allocations: 7.891 kB / 0.9554 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-06/0.005936, allocations: 4.062 kB / 0.9554 GB, free: 14.2 MB / 0.9167 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.531e-05/0.006021, allocations: 133.8 kB / 0.9556 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-06/0.006027, allocations: 3.953 kB / 0.9556 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.963e-05/0.006107, allocations: 61.44 kB / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.006109, allocations: 7.875 kB / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.006113, allocations: 0 / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.006115, allocations: 0 / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.804e-05/0.006183, allocations: 144.7 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.006184, allocations: 0 / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.734e-06/0.006185, allocations: 4.031 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.006186, allocations: 0 / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-06/0.006191, allocations: 0 / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.006192, allocations: 3.938 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.006194, allocations: 4 kB / 0.9558 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.868e-05/0.006242, allocations: 77.08 kB / 0.9559 GB, free: 13.69 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-06/0.00625, allocations: 7.938 kB / 0.9559 GB, free: 13.68 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.00626, allocations: 4 kB / 0.9559 GB, free: 13.68 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.675e-06/0.006267, allocations: 3.938 kB / 0.9559 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.768e-06/0.006277, allocations: 3.938 kB / 0.9559 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-06/0.006278, allocations: 0 / 0.9559 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 5.792e-05/0.006336, allocations: 130.1 kB / 0.956 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.006336, allocations: 0 / 0.956 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002085/0.006545, allocations: 83.8 kB / 0.9561 GB, free: 13.46 MB / 0.9167 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.0004962/0.007041, allocations: 0.7655 MB / 0.9568 GB, free: 12.69 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001152/0.007156, allocations: 97.59 kB / 0.9569 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.007157, allocations: 0 / 0.9569 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.943e-06/0.007164, allocations: 8 kB / 0.9569 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000108/0.007272, allocations: 14.75 kB / 0.957 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008976/0.00817, allocations: 1.549 MB / 0.9585 GB, free: 10.94 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.365e-05/0.008214, allocations: 75.33 kB / 0.9585 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 1.553e-05/0.008229, allocations: 3.984 kB / 0.9585 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.421e-05/0.008253, allocations: 16.66 kB / 0.9586 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of SimCode: time 4.11e-07/0.008254, allocations: 4 kB / 0.9586 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.02481, allocations: 4.153 MB / 0.9626 GB, free: 6.789 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.728/6.753, allocations: 10.34 kB / 0.9626 GB, free: 6.781 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.661201399751008]