Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.001034/0.001034, allocations: 80.45 kB / 19.96 MB, free: 4.59 MB / 18.57 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.0008367/0.0008367, allocations: 173.2 kB / 23.24 MB, free: 1.312 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.8937/0.8937, allocations: 177.1 MB / 203.5 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.883/1.883, allocations: 389.6 MB / 0.6343 GB, free: 12.59 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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_13_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_13_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 1.001 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.043e-05/2.238e-05, allocations: 6.281 kB / 1.001 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001644/0.001666, allocations: 0.5168 MB / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.002694/0.004361, allocations: 1.615 MB / 1.003 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.632e-05/0.004417, allocations: 4 kB / 1.003 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.004604, allocations: 23.84 kB / 1.003 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.94e-05/0.004634, allocations: 11.92 kB / 1.003 GB, free: 11.37 MB / 0.9636 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.001101/0.005734, allocations: 277.8 kB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.005838, allocations: 23.91 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.987e-05/0.005887, allocations: 4 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 5.601e-05/0.005943, allocations: 15.92 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.246e-05/0.005996, allocations: 19.97 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.006014, allocations: 0 / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007459/0.006759, allocations: 451 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.886e-05/0.006828, allocations: 19.94 kB / 1.004 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.713e-05/0.006855, allocations: 11.88 kB / 1.004 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.007358, allocations: 351.2 kB / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.00736, allocations: 0 / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.243e-06/0.007361, allocations: 0 / 1.004 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.007366, allocations: 0 / 1.004 GB, free: 10.22 MB / 0.9636 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.0004588/0.007825, allocations: 337.5 kB / 1.004 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.007878, allocations: 9.344 kB / 1.004 GB, free: 9.852 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.822e-05/0.007926, allocations: 34.75 kB / 1.004 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.007957, allocations: 4.891 kB / 1.004 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.008105, allocations: 125.6 kB / 1.004 GB, free: 9.656 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.008115, allocations: 384 / 1.004 GB, free: 9.656 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.008126, allocations: 8.375 kB / 1.004 GB, free: 9.648 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.008227, allocations: 38.25 kB / 1.004 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.008236, allocations: 192 / 1.004 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.008247, allocations: 4.125 kB / 1.004 GB, free: 9.602 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.008251, allocations: 0 / 1.004 GB, free: 9.602 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.039e-05/0.008282, allocations: 19.97 kB / 1.004 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.008447, allocations: 148.7 kB / 1.005 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.705e-05/0.008504, allocations: 26.5 kB / 1.005 GB, free: 9.359 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.406e-05/0.008528, allocations: 12.92 kB / 1.005 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 4.592e-05/0.008574, allocations: 15.98 kB / 1.005 GB, free: 9.328 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.008595, allocations: 38.56 kB / 1.005 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.008596, allocations: 0 / 1.005 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1): time 0.0001612/0.008757, allocations: 61.58 kB / 1.005 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.008789, allocations: 51.41 kB / 1.005 GB, free: 9.152 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.008935, allocations: 168.9 kB / 1.005 GB, free: 8.98 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.008947, allocations: 29.64 kB / 1.005 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.009, allocations: 96.09 kB / 1.005 GB, free: 8.848 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.087e-05/0.009011, allocations: 0 / 1.005 GB, free: 8.848 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.009053, allocations: 25.7 kB / 1.005 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.009154, allocations: 322.8 kB / 1.005 GB, free: 8.492 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.65e-05/0.00921, allocations: 48.05 kB / 1.005 GB, free: 8.445 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.125e-05/0.009252, allocations: 35.98 kB / 1.005 GB, free: 8.41 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.296e-05/0.009335, allocations: 72.88 kB / 1.006 GB, free: 8.336 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.009337, allocations: 4 kB / 1.006 GB, free: 8.332 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001469/0.009484, allocations: 125.5 kB / 1.006 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.009505, allocations: 4 kB / 1.006 GB, free: 8.199 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.009521, allocations: 4 kB / 1.006 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.009535, allocations: 3.938 kB / 1.006 GB, free: 8.191 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.466e-05/0.00955, allocations: 3.938 kB / 1.006 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.009555, allocations: 0 / 1.006 GB, free: 8.188 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.976e-05/0.009584, allocations: 11.95 kB / 1.006 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.009594, allocations: 4.062 kB / 1.006 GB, free: 8.172 MB / 0.9636 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.0001234/0.009717, allocations: 124.5 kB / 1.006 GB, free: 8.043 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-06/0.009727, allocations: 7.891 kB / 1.006 GB, free: 8.035 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.009836, allocations: 65.42 kB / 1.006 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.009839, allocations: 3.938 kB / 1.006 GB, free: 7.961 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.009843, allocations: 0 / 1.006 GB, free: 7.961 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.009846, allocations: 4 kB / 1.006 GB, free: 7.957 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.009949, allocations: 140.7 kB / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.00995, allocations: 0 / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.667e-06/0.009954, allocations: 4.031 kB / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.009956, allocations: 0 / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.009962, allocations: 0 / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.009965, allocations: 7.938 kB / 1.006 GB, free: 7.766 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.009966, allocations: 0 / 1.006 GB, free: 7.766 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.28e-05/0.01004, allocations: 84.97 kB / 1.006 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 9.207e-06/0.01005, allocations: 3.953 kB / 1.006 GB, free: 7.66 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.01006, allocations: 4 kB / 1.006 GB, free: 7.656 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.384e-05/0.01007, allocations: 3.938 kB / 1.006 GB, free: 7.652 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.897e-05/0.01009, allocations: 3.984 kB / 1.006 GB, free: 7.648 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.01009, allocations: 4.031 kB / 1.006 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 8.033e-05/0.01017, allocations: 121.7 kB / 1.006 GB, free: 7.527 MB / 0.9636 GB Notification: Performance of sort global known variables: time 9e-08/0.01017, allocations: 0 / 1.006 GB, free: 7.527 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0003485/0.01052, allocations: 87.8 kB / 1.006 GB, free: 7.441 MB / 0.9636 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.0007697/0.01129, allocations: 0.7679 MB / 1.007 GB, free: 6.672 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001788/0.01147, allocations: 93.66 kB / 1.007 GB, free: 6.574 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.01147, allocations: 3.938 kB / 1.007 GB, free: 6.57 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.438e-06/0.01148, allocations: 8 kB / 1.007 GB, free: 6.562 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.0116, allocations: 11.94 kB / 1.007 GB, free: 6.551 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.0127, allocations: 1.546 MB / 1.009 GB, free: 4.922 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.233e-05/0.01275, allocations: 75.33 kB / 1.009 GB, free: 4.828 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.772e-05/0.01277, allocations: 3.984 kB / 1.009 GB, free: 4.824 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.0128, allocations: 20.66 kB / 1.009 GB, free: 4.805 MB / 0.9636 GB Notification: Performance of SimCode: time 7.01e-07/0.0128, allocations: 4 kB / 1.009 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07699/0.08979, allocations: 4.245 MB / 1.013 GB, free: 0.6641 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.949/7.038, allocations: 10.91 kB / 1.013 GB, free: 0.6602 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu) > Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d_fmpy.pipe ; mkfifo Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu) > Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_1d_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.576185371726751]