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.001792/0.001792, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.002109/0.002109, allocations: 219.9 kB / 23.05 MB, free: 5.074 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.251/3.251, allocations: 0.49 GB / 0.7959 GB, free: 33.39 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.002007/0.002007, allocations: 67.23 kB / 1.155 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3215, allocations: 176.1 MB / 1.327 GB, free: 1.973 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001642/0.3232, allocations: 0.5184 MB / 1.327 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002457/0.3256, allocations: 1.693 MB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.3257, allocations: 0 / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.3259, allocations: 67.83 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.578e-05/0.3259, allocations: 23.97 kB / 1.329 GB, free: 15.66 MB / 1.029 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.0009382/0.3268, allocations: 288.2 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.502e-05/0.3269, allocations: 31.89 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.298e-05/0.3269, allocations: 4.281 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.912e-05/0.327, allocations: 19.92 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.96e-05/0.327, allocations: 43.92 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.3271, allocations: 8 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007751/0.3278, allocations: 495.1 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.136e-05/0.3279, allocations: 31.86 kB / 1.33 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.3279, allocations: 23.75 kB / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.3283, allocations: 311.1 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3284, allocations: 0 / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3284, allocations: 0 / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.3284, allocations: 0 / 1.33 GB, free: 14.43 MB / 1.029 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.0005068/0.3289, allocations: 365.3 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.3289, allocations: 8.031 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.12e-05/0.3289, allocations: 192 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.026e-05/0.3289, allocations: 34.75 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.169e-05/0.329, allocations: 16.83 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.3291, allocations: 130.4 kB / 1.331 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.14e-06/0.3291, allocations: 4.312 kB / 1.331 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.3291, allocations: 4.375 kB / 1.331 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.3293, allocations: 41.62 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.3293, allocations: 4 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-06/0.3293, allocations: 0 / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.3293, allocations: 0 / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.194e-05/0.3293, allocations: 19.98 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001909/0.3295, allocations: 152.7 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.905e-05/0.3296, allocations: 34.5 kB / 1.331 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.729e-05/0.3296, allocations: 16.92 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.3297, allocations: 7.938 kB / 1.331 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.3297, allocations: 42.55 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3297, allocations: 3.938 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001829/0.3299, allocations: 69.59 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.3299, allocations: 51.41 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.3302, allocations: 210.2 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3302, allocations: 25.7 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.79e-05/0.3303, allocations: 112.1 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.294e-05/0.3303, allocations: 12 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.3303, allocations: 33.7 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3305, allocations: 322.8 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.967e-05/0.3306, allocations: 51.98 kB / 1.332 GB, free: 12.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-05/0.3306, allocations: 55.97 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.3307, allocations: 88.78 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3307, allocations: 0 / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001922/0.3309, allocations: 168.2 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.3309, allocations: 4.062 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.331, allocations: 11.98 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.331, allocations: 3.938 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.103e-05/0.331, allocations: 0 / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.331, allocations: 0 / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.859e-05/0.331, allocations: 11.89 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.331, allocations: 0 / 1.332 GB, free: 12.16 MB / 1.029 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.0001704/0.3312, allocations: 126.4 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.3312, allocations: 19.83 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.3313, allocations: 66.19 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.3313, allocations: 3.938 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3314, allocations: 0 / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.3314, allocations: 0 / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.3315, allocations: 156.7 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3315, allocations: 3.938 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-06/0.3315, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.3315, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.3315, allocations: 3.938 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3315, allocations: 4 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3315, allocations: 4.031 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.3316, allocations: 77.03 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.653e-05/0.3316, allocations: 15.89 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.3316, allocations: 3.984 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.328e-05/0.3317, allocations: 4 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.353e-05/0.3317, allocations: 0 / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.3317, allocations: 0 / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001342/0.3318, allocations: 155.1 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3318, allocations: 0 / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003604/0.3322, allocations: 87.75 kB / 1.333 GB, free: 11.36 MB / 1.029 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.0009353/0.3331, allocations: 0.7607 MB / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000215/0.3333, allocations: 113.7 kB / 1.334 GB, free: 10.47 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3333, allocations: 0 / 1.334 GB, free: 10.47 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.925e-05/0.3333, allocations: 11.98 kB / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001446/0.3335, allocations: 5.203 kB / 1.334 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.3354, allocations: 1.837 MB / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3357, allocations: 0.7041 MB / 1.336 GB, free: 7.812 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.288e-05/0.3357, allocations: 4 kB / 1.336 GB, free: 7.809 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.767e-05/0.3358, allocations: 27.42 kB / 1.336 GB, free: 7.781 MB / 1.029 GB Notification: Performance of SimCode: time 9.92e-07/0.3358, allocations: 0 / 1.336 GB, free: 7.781 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.3625, allocations: 4.112 MB / 1.34 GB, free: 3.82 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.78, allocations: 4.062 kB / 1.34 GB, free: 3.816 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.736269020009786]