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.00154/0.00154, allocations: 116.1 kB / 17.16 MB, free: 6.023 MB / 14.72 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.001698/0.001698, allocations: 205.5 kB / 20.13 MB, free: 3.078 MB / 14.72 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 1.556/1.556, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.051/3.051, allocations: 0.49 GB / 0.7923 GB, free: 1.484 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003372/0.003372, allocations: 69.77 kB / 1.149 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.066/1.07, allocations: 176.1 MB / 1.321 GB, free: 25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001536/1.071, allocations: 0.5217 MB / 1.322 GB, free: 24.68 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001717/1.073, allocations: 1.681 MB / 1.324 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.911e-05/1.073, allocations: 3.938 kB / 1.324 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001509/1.073, allocations: 66.91 kB / 1.324 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.693e-05/1.073, allocations: 29.5 kB / 1.324 GB, free: 23.47 MB / 1.061 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.0007275/1.074, allocations: 264.7 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.099e-05/1.074, allocations: 32.88 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/1.074, allocations: 0 / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.172e-05/1.074, allocations: 28.23 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.464e-05/1.074, allocations: 44.5 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/1.074, allocations: 0 / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004599/1.074, allocations: 389.1 kB / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.565e-05/1.074, allocations: 25.44 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/1.075, allocations: 25.03 kB / 1.324 GB, free: 23.19 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.00032/1.075, allocations: 313.5 kB / 1.325 GB, free: 23.1 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/1.075, allocations: 0 / 1.325 GB, free: 23.1 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.833e-06/1.075, allocations: 0 / 1.325 GB, free: 23.1 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.07e-06/1.075, allocations: 0 / 1.325 GB, free: 23.1 MB / 1.061 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.000363/1.075, allocations: 437.9 kB / 1.325 GB, free: 22.67 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/1.075, allocations: 19.45 kB / 1.325 GB, free: 22.66 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.549e-05/1.075, allocations: 192 / 1.325 GB, free: 22.66 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.666e-05/1.075, allocations: 30.75 kB / 1.325 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/1.075, allocations: 14 kB / 1.325 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/1.075, allocations: 183.7 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/1.075, allocations: 384 / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/1.075, allocations: 3.469 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.229e-05/1.076, allocations: 48.72 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/1.076, allocations: 0 / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-06/1.076, allocations: 4 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-06/1.076, allocations: 0 / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.519e-05/1.076, allocations: 20.03 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/1.076, allocations: 184.5 kB / 1.326 GB, free: 22.16 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.803e-05/1.076, allocations: 29.86 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/1.076, allocations: 15.86 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/1.076, allocations: 13.19 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.06e-05/1.076, allocations: 34.56 kB / 1.326 GB, free: 22.07 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/1.076, allocations: 3.984 kB / 1.326 GB, free: 22.07 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001271/1.076, allocations: 70.28 kB / 1.326 GB, free: 22.03 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.609e-05/1.076, allocations: 51.41 kB / 1.326 GB, free: 21.97 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/1.076, allocations: 212 kB / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.462e-06/1.076, allocations: 25.7 kB / 1.326 GB, free: 21.8 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.299e-05/1.076, allocations: 107 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.648e-06/1.076, allocations: 4 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/1.076, allocations: 31.62 kB / 1.326 GB, free: 21.68 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.397e-05/1.076, allocations: 331.7 kB / 1.327 GB, free: 21.36 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.018e-05/1.076, allocations: 58.98 kB / 1.327 GB, free: 21.35 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.107e-05/1.076, allocations: 54.27 kB / 1.327 GB, free: 21.34 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.149e-05/1.076, allocations: 95.78 kB / 1.327 GB, free: 21.31 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/1.076, allocations: 0 / 1.327 GB, free: 21.31 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001469/1.077, allocations: 168.7 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/1.077, allocations: 6.094 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/1.077, allocations: 1.125 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/1.077, allocations: 4.75 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.059e-05/1.077, allocations: 0 / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/1.077, allocations: 0.5 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.574e-05/1.077, allocations: 6.328 kB / 1.327 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/1.077, allocations: 2.031 kB / 1.327 GB, free: 21.23 MB / 1.061 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 0.000113/1.077, allocations: 132.9 kB / 1.327 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/1.077, allocations: 15.88 kB / 1.327 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/1.077, allocations: 68.28 kB / 1.327 GB, free: 21.06 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/1.077, allocations: 0 / 1.327 GB, free: 21.06 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/1.077, allocations: 4 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/1.077, allocations: 7.781 kB / 1.327 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.937e-05/1.077, allocations: 179.7 kB / 1.327 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/1.077, allocations: 4.594 kB / 1.327 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.28e-06/1.077, allocations: 0.5 kB / 1.327 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.077, allocations: 0.9062 kB / 1.327 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/1.077, allocations: 3.328 kB / 1.327 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/1.077, allocations: 1 kB / 1.327 GB, free: 20.85 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/1.077, allocations: 4.031 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.226e-05/1.077, allocations: 87.06 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/1.077, allocations: 87.78 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/1.077, allocations: 4.828 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/1.077, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/1.077, allocations: 0.5312 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-06/1.077, allocations: 1.344 kB / 1.328 GB, free: 20.66 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.984e-05/1.077, allocations: 152.3 kB / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/1.077, allocations: 0 / 1.328 GB, free: 20.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003453/1.078, allocations: 89.14 kB / 1.328 GB, free: 20.55 MB / 1.061 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.0006417/1.078, allocations: 0.7604 MB / 1.328 GB, free: 19.9 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001787/1.078, allocations: 115.8 kB / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.078, allocations: 0 / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.738e-05/1.078, allocations: 8.938 kB / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/1.079, allocations: 7.656 kB / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/1.08, allocations: 1.82 MB / 1.33 GB, free: 18.59 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/1.08, allocations: 0.707 MB / 1.331 GB, free: 17.89 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.646e-05/1.08, allocations: 1.469 kB / 1.331 GB, free: 17.89 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.064e-05/1.08, allocations: 28.05 kB / 1.331 GB, free: 17.86 MB / 1.061 GB Notification: Performance of SimCode: time 2.81e-07/1.08, allocations: 1.062 kB / 1.331 GB, free: 17.86 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/1.102, allocations: 4.024 MB / 1.335 GB, free: 17.27 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.512/9.615, allocations: 2.984 kB / 1.335 GB, free: 17.27 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 16.250987444014754]