Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 225.6 MB / 249.3 MB, free: 3.184 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.346/2.346, allocations: 443.5 MB / 0.7304 GB, free: 13.93 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 63.91 kB / 1.059 GB, free: 1 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2606, allocations: 160.7 MB / 1.215 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.00156/0.2622, allocations: 0.5299 MB / 1.216 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002099/0.2643, allocations: 1.63 MB / 1.218 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.325e-05/0.2643, allocations: 4 kB / 1.218 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.2644, allocations: 23.91 kB / 1.218 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.052e-05/0.2645, allocations: 7.984 kB / 1.218 GB, free: 13.76 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 10.1.1-maint.10.0.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.0007225/0.2652, allocations: 243.3 kB / 1.218 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.936e-05/0.2652, allocations: 19.92 kB / 1.218 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.157e-05/0.2653, allocations: 4 kB / 1.218 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.203e-05/0.2653, allocations: 19.91 kB / 1.218 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.968e-05/0.2653, allocations: 23.91 kB / 1.218 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.268e-06/0.2653, allocations: 0 / 1.218 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005368/0.2659, allocations: 363.4 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.959e-05/0.2659, allocations: 15.98 kB / 1.218 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.331e-05/0.2659, allocations: 19.81 kB / 1.218 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.2663, allocations: 279.5 kB / 1.219 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.2663, allocations: 0 / 1.219 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2663, allocations: 0 / 1.219 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.2663, allocations: 0 / 1.219 GB, free: 12.79 MB / 0.9669 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.0004109/0.2667, allocations: 422.6 kB / 1.219 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.2667, allocations: 8.031 kB / 1.219 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.916e-05/0.2668, allocations: 34.75 kB / 1.219 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.182e-05/0.2668, allocations: 4.891 kB / 1.219 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.2669, allocations: 186.1 kB / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-06/0.267, allocations: 384 / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.267, allocations: 384 / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.463e-05/0.267, allocations: 45.75 kB / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.2671, allocations: 4 kB / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-06/0.2671, allocations: 3.984 kB / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-06/0.2671, allocations: 4 kB / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.42e-05/0.2671, allocations: 12 kB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.2672, allocations: 169.7 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.962e-05/0.2673, allocations: 30.56 kB / 1.219 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.316e-05/0.2673, allocations: 16.92 kB / 1.219 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2673, allocations: 7.938 kB / 1.219 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.2674, allocations: 38.5 kB / 1.22 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.2674, allocations: 0 / 1.22 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001274/0.2675, allocations: 61.62 kB / 1.22 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.2675, allocations: 51.41 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.2677, allocations: 183.5 kB / 1.22 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.2677, allocations: 29.64 kB / 1.22 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.2678, allocations: 88.14 kB / 1.22 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.648e-06/0.2678, allocations: 8.078 kB / 1.22 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.2678, allocations: 25.7 kB / 1.22 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.2679, allocations: 322.8 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.151e-05/0.268, allocations: 39.98 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.513e-05/0.268, allocations: 43.92 kB / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.138e-05/0.2681, allocations: 72.86 kB / 1.22 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2681, allocations: 4 kB / 1.22 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001443/0.2682, allocations: 125.5 kB / 1.221 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/0.2683, allocations: 7.938 kB / 1.221 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.2683, allocations: 12.06 kB / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.417e-06/0.2683, allocations: 0 / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.466e-06/0.2683, allocations: 0 / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.407e-06/0.2683, allocations: 0 / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.2683, allocations: 7.953 kB / 1.221 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.2683, allocations: 0 / 1.221 GB, free: 10.53 MB / 0.9669 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.0001093/0.2684, allocations: 133.5 kB / 1.221 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.232e-05/0.2684, allocations: 7.891 kB / 1.221 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.2685, allocations: 65.55 kB / 1.221 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.2685, allocations: 0 / 1.221 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.2685, allocations: 0 / 1.221 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.2686, allocations: 0 / 1.221 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.2687, allocations: 165.7 kB / 1.221 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2687, allocations: 3.984 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.2687, allocations: 3.938 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.2687, allocations: 0 / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-06/0.2687, allocations: 0 / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.2687, allocations: 0 / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2687, allocations: 4.031 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.852e-05/0.2688, allocations: 84.95 kB / 1.221 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/0.2688, allocations: 89 kB / 1.221 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.528e-06/0.2688, allocations: 0 / 1.221 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.094e-05/0.2688, allocations: 0 / 1.221 GB, free: 9.879 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.2688, allocations: 3.984 kB / 1.221 GB, free: 9.875 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.2688, allocations: 4 kB / 1.221 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.138e-05/0.2689, allocations: 126.5 kB / 1.221 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.2689, allocations: 0 / 1.221 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002917/0.2692, allocations: 83.8 kB / 1.221 GB, free: 9.668 MB / 0.9669 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.0007429/0.27, allocations: 0.7532 MB / 1.222 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001402/0.2701, allocations: 89.67 kB / 1.222 GB, free: 8.812 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2701, allocations: 0 / 1.222 GB, free: 8.812 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.536e-05/0.2701, allocations: 8 kB / 1.222 GB, free: 8.805 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.2703, allocations: 9.859 kB / 1.222 GB, free: 8.797 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.2716, allocations: 1.534 MB / 1.224 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.2719, allocations: 0.7001 MB / 1.224 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.504e-05/0.2719, allocations: 4.219 kB / 1.224 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.725e-05/0.2719, allocations: 19.38 kB / 1.224 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.2719, allocations: 3.938 kB / 1.224 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.2977, allocations: 3.476 MB / 1.228 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.147/7.445, allocations: 7.922 kB / 1.228 GB, free: 3.035 MB / 0.9669 GB " [Timeout remaining time 292] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv. Warning: Get data of variable cmp from file Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.646101174999785]