Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008367/0.0008366, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004817/0.004817, allocations: 169 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.194/1.194, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.452/2.452, allocations: 462.7 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003439/0.0003439, allocations: 12.09 kB / 0.9029 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2417, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0005522/0.2423, allocations: 258.2 kB / 1.059 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002066/0.2444, allocations: 1.622 MB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.391e-05/0.2444, allocations: 0 / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.2446, allocations: 19.92 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.462e-05/0.2446, allocations: 11.98 kB / 1.061 GB, free: 2.969 MB / 0.8106 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006771/0.2453, allocations: 195.6 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.728e-05/0.2453, allocations: 23.86 kB / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.2454, allocations: 4 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.126e-05/0.2454, allocations: 15.98 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.518e-05/0.2455, allocations: 15.92 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.087e-06/0.2455, allocations: 0 / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004667/0.246, allocations: 279.5 kB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.369e-05/0.246, allocations: 19.92 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.439e-05/0.246, allocations: 41.52 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.2464, allocations: 267.5 kB / 1.061 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2464, allocations: 4 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.405e-06/0.2464, allocations: 4 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.105e-06/0.2464, allocations: 7.938 kB / 1.061 GB, free: 2.102 MB / 0.8106 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.0003573/0.2468, allocations: 391.6 kB / 1.062 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2469, allocations: 15.97 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.141e-05/0.2469, allocations: 30.75 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.2469, allocations: 8.844 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.2471, allocations: 184.1 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.713e-06/0.2471, allocations: 384 / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.2471, allocations: 8.375 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.795e-05/0.2472, allocations: 45.81 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-06/0.2472, allocations: 0 / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-06/0.2472, allocations: 0 / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.2472, allocations: 0 / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.616e-05/0.2472, allocations: 15.98 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.2474, allocations: 177.5 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.103e-05/0.2474, allocations: 30.5 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.017e-05/0.2475, allocations: 12.92 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.2475, allocations: 8 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.2475, allocations: 38.48 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.2475, allocations: 0 / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001308/0.2477, allocations: 65.59 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.2477, allocations: 51.41 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.2478, allocations: 171.5 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.2478, allocations: 25.7 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.374e-05/0.2479, allocations: 100.2 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.564e-06/0.2479, allocations: 0 / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.089e-05/0.2479, allocations: 25.7 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.248, allocations: 322.8 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.669e-05/0.2481, allocations: 35.98 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.731e-05/0.2481, allocations: 39.98 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.401e-05/0.2482, allocations: 72.86 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2482, allocations: 3.938 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000156/0.2484, allocations: 125.6 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.2484, allocations: 12.05 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.2484, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2484, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.083e-05/0.2485, allocations: 3.938 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.2485, allocations: 4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.516e-05/0.2485, allocations: 11.84 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.2485, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 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.0001113/0.2486, allocations: 125.8 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.2486, allocations: 11.84 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.485e-05/0.2487, allocations: 65.55 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2488, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.2488, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.2488, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.2489, allocations: 165.7 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2489, allocations: 3.984 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-06/0.2489, allocations: 3.938 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2489, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.2489, allocations: 4 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2489, allocations: 7.969 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2489, allocations: 0 / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.089e-05/0.249, allocations: 77.02 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-05/0.249, allocations: 84.95 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.2491, allocations: 0 / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.26e-05/0.2491, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.111e-05/0.2491, allocations: 7.984 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.2491, allocations: 32 / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.339e-05/0.2492, allocations: 126.1 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2492, allocations: 0 / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003141/0.2495, allocations: 83.98 kB / 1.064 GB, free: 15.02 MB / 0.8262 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.0006457/0.2502, allocations: 0.7444 MB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001301/0.2503, allocations: 101.7 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2503, allocations: 0 / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.553e-05/0.2503, allocations: 8 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.2505, allocations: 4 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.2516, allocations: 1.529 MB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.2519, allocations: 0.6889 MB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.843e-05/0.2519, allocations: 4 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.867e-05/0.2519, allocations: 27.36 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2519, allocations: 0 / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.569/2.821, allocations: 3.242 MB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/2.822, allocations: 247.9 kB / 1.071 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/4.585, allocations: 1.25 kB / 1.071 GB, free: 8.426 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches