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.0009239/0.0009239, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009213/0.0009213, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8934/0.8934, 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.713/1.713, 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.392e-06/1.392e-06, allocations: 0 / 0.9809 GB, free: 1.5 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.284e-05/1.424e-05, allocations: 5.234 kB / 0.9809 GB, free: 1.496 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009937/0.001008, allocations: 0.5129 MB / 0.9814 GB, free: 0.9844 MB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.002528, allocations: 1.622 MB / 0.983 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.64e-05/0.002564, allocations: 4 kB / 0.983 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.002693, allocations: 19.91 kB / 0.983 GB, free: 15.32 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 1.846e-05/0.002712, allocations: 4 kB / 0.983 GB, free: 15.32 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.00069/0.003401, allocations: 283 kB / 0.9833 GB, free: 15.04 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 6.669e-05/0.003468, allocations: 19.92 kB / 0.9833 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.003503, allocations: 0 / 0.9833 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 3.912e-05/0.003542, allocations: 15.98 kB / 0.9833 GB, free: 15 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 3.558e-05/0.003577, allocations: 23.91 kB / 0.9834 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.00359, allocations: 0 / 0.9834 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004814/0.004071, allocations: 455 kB / 0.9838 GB, free: 14.54 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 4.777e-05/0.004119, allocations: 23.92 kB / 0.9838 GB, free: 14.51 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.741e-05/0.004136, allocations: 15.88 kB / 0.9838 GB, free: 14.5 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.004453, allocations: 339.2 kB / 0.9842 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.004455, allocations: 0 / 0.9842 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of FrontEnd: time 8.62e-07/0.004456, allocations: 0 / 0.9842 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.004459, allocations: 0 / 0.9842 GB, free: 14.16 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.0002974/0.004757, allocations: 337.6 kB / 0.9845 GB, free: 13.8 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.00479, allocations: 8.031 kB / 0.9845 GB, free: 13.8 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.458e-05/0.004815, allocations: 38.75 kB / 0.9845 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.045e-05/0.004835, allocations: 8.891 kB / 0.9845 GB, free: 13.74 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.004942, allocations: 133.5 kB / 0.9847 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.243e-06/0.004949, allocations: 384 / 0.9847 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.396e-06/0.004957, allocations: 12.31 kB / 0.9847 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.664e-05/0.005034, allocations: 34.27 kB / 0.9847 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.00504, allocations: 192 / 0.9847 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.005046, allocations: 4.125 kB / 0.9847 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.005051, allocations: 3.984 kB / 0.9847 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.192e-05/0.005073, allocations: 12 kB / 0.9847 GB, free: 13.52 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001207/0.005193, allocations: 144.8 kB / 0.9849 GB, free: 13.33 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 3.53e-05/0.005229, allocations: 26.58 kB / 0.9849 GB, free: 13.3 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.766e-05/0.005246, allocations: 16.84 kB / 0.9849 GB, free: 13.28 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.005276, allocations: 4 kB / 0.9849 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.678e-05/0.005292, allocations: 34.56 kB / 0.985 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.005293, allocations: 0 / 0.985 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of matching and sorting (n=1): time 0.0001203/0.005413, allocations: 65.58 kB / 0.985 GB, free: 13.16 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.456e-05/0.005438, allocations: 51.41 kB / 0.9851 GB, free: 13.1 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.005545, allocations: 176.6 kB / 0.9852 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.005554, allocations: 29.64 kB / 0.9853 GB, free: 12.88 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 3.863e-05/0.005592, allocations: 100.2 kB / 0.9854 GB, free: 12.78 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.175e-06/0.005601, allocations: 3.953 kB / 0.9854 GB, free: 12.77 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.005629, allocations: 25.7 kB / 0.9854 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.486e-05/0.005704, allocations: 318.8 kB / 0.9857 GB, free: 12.42 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.913e-05/0.005743, allocations: 39.97 kB / 0.9857 GB, free: 12.38 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.674e-05/0.00577, allocations: 39.98 kB / 0.9858 GB, free: 12.34 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.174e-05/0.005821, allocations: 60.84 kB / 0.9858 GB, free: 12.28 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.005824, allocations: 4 kB / 0.9858 GB, free: 12.28 MB / 0.9011 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.005e-05/0.005914, allocations: 125.6 kB / 0.9859 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.005923, allocations: 4 kB / 0.9859 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.005937, allocations: 4 kB / 0.986 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.005948, allocations: 8 kB / 0.986 GB, free: 12.13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.13e-05/0.005959, allocations: 3.938 kB / 0.986 GB, free: 12.13 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.005965, allocations: 3.984 kB / 0.986 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.005981, allocations: 11.89 kB / 0.986 GB, free: 12.11 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.005987, allocations: 0 / 0.986 GB, free: 12.11 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: 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.266e-05/0.00607, allocations: 121.8 kB / 0.9861 GB, free: 11.98 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.482e-06/0.006077, allocations: 7.953 kB / 0.9861 GB, free: 11.98 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.234e-05/0.006149, allocations: 57.44 kB / 0.9862 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.006151, allocations: 3.969 kB / 0.9862 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.006156, allocations: 4 kB / 0.9862 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.006157, allocations: 4 kB / 0.9862 GB, free: 11.9 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.791e-05/0.006225, allocations: 140.7 kB / 0.9863 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.006227, allocations: 3.984 kB / 0.9863 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-06/0.00623, allocations: 0 / 0.9863 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.006231, allocations: 0 / 0.9863 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-06/0.006236, allocations: 3.938 kB / 0.9863 GB, free: 11.71 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.006243, allocations: 7.938 kB / 0.9863 GB, free: 11.71 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.006244, allocations: 4 kB / 0.9863 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.44e-05/0.006299, allocations: 81 kB / 0.9864 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 7.855e-06/0.006306, allocations: 11.98 kB / 0.9864 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-06/0.006314, allocations: 0 / 0.9864 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.517e-06/0.006323, allocations: 7.938 kB / 0.9864 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.768e-06/0.006333, allocations: 0 / 0.9864 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-06/0.006334, allocations: 3.938 kB / 0.9864 GB, free: 11.58 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 5.495e-05/0.006389, allocations: 123.2 kB / 0.9865 GB, free: 11.46 MB / 0.9011 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006389, allocations: 0 / 0.9865 GB, free: 11.46 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002272/0.006616, allocations: 87.8 kB / 0.9866 GB, free: 11.38 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.0006162/0.007232, allocations: 0.768 MB / 0.9874 GB, free: 10.61 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0001145/0.007347, allocations: 89.67 kB / 0.9875 GB, free: 10.51 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.007349, allocations: 4 kB / 0.9875 GB, free: 10.51 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 7.143e-06/0.007356, allocations: 4 kB / 0.9875 GB, free: 10.5 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001034/0.00746, allocations: 11.88 kB / 0.9875 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009022/0.008362, allocations: 1.554 MB / 0.989 GB, free: 8.855 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.806e-05/0.00841, allocations: 79.31 kB / 0.9891 GB, free: 8.758 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 1.468e-05/0.008424, allocations: 0 / 0.9891 GB, free: 8.758 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.008452, allocations: 24.48 kB / 0.9891 GB, free: 8.734 MB / 0.9011 GB Notification: Performance of SimCode: time 3.81e-07/0.008452, allocations: 0 / 0.9891 GB, free: 8.734 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.02379, allocations: 4.247 MB / 0.9932 GB, free: 4.613 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.961/6.984, allocations: 3.25 kB / 0.9932 GB, free: 4.613 MB / 0.9011 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_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_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.csv","/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] "Error: Could not read variable cmp in file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv. Warning: Get data of variable cmp from file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.047195116989315]