Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_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.006512/0.006513, allocations: 100.8 kB / 15.87 MB, free: 6.312 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.001658/0.001658, allocations: 197.4 kB / 16.79 MB, free: 6.242 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.271/1.271, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6144/0.6144, allocations: 115.3 MB / 406 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 67.83 kB / 493 MB, free: 6.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1134, allocations: 76.18 MB / 0.5558 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00146/0.1149, allocations: 0.5677 MB / 0.5564 GB, free: 10.12 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1167, allocations: 1.64 MB / 0.558 GB, free: 8.469 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.213e-05/0.1168, allocations: 0 / 0.558 GB, free: 8.469 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1169, allocations: 15.97 kB / 0.558 GB, free: 8.453 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 1.933e-05/0.1169, allocations: 11.92 kB / 0.558 GB, free: 8.441 MB / 430.1 MB [/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.0005769/0.1175, allocations: 195.6 kB / 0.5582 GB, free: 8.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.639e-05/0.1175, allocations: 27.91 kB / 0.5582 GB, free: 8.223 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.796e-05/0.1176, allocations: 4 kB / 0.5582 GB, free: 8.219 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.413e-05/0.1176, allocations: 15.92 kB / 0.5582 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.248e-05/0.1176, allocations: 15.92 kB / 0.5583 GB, free: 8.188 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.1177, allocations: 0 / 0.5583 GB, free: 8.188 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003813/0.118, allocations: 271.6 kB / 0.5585 GB, free: 7.922 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.137e-05/0.1181, allocations: 23.91 kB / 0.5585 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.333e-05/0.1181, allocations: 15.88 kB / 0.5586 GB, free: 7.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.1184, allocations: 271.4 kB / 0.5588 GB, free: 7.617 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1184, allocations: 3.938 kB / 0.5588 GB, free: 7.613 MB / 430.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.1184, allocations: 0 / 0.5588 GB, free: 7.613 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.1185, allocations: 4 kB / 0.5588 GB, free: 7.609 MB / 430.1 MB 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.0003379/0.1188, allocations: 407.5 kB / 0.5592 GB, free: 7.164 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.1188, allocations: 15.97 kB / 0.5592 GB, free: 7.148 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.515e-05/0.1189, allocations: 30.75 kB / 0.5593 GB, free: 7.109 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.254e-05/0.1189, allocations: 4.844 kB / 0.5593 GB, free: 7.105 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.119, allocations: 187.8 kB / 0.5594 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-06/0.119, allocations: 384 / 0.5594 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.119, allocations: 4.375 kB / 0.5594 GB, free: 6.883 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.765e-05/0.1191, allocations: 41.81 kB / 0.5595 GB, free: 6.836 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.1191, allocations: 4 kB / 0.5595 GB, free: 6.832 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-06/0.1191, allocations: 3.938 kB / 0.5595 GB, free: 6.828 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-06/0.1191, allocations: 0 / 0.5595 GB, free: 6.828 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.42e-05/0.1192, allocations: 12 kB / 0.5595 GB, free: 6.816 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.1193, allocations: 177.6 kB / 0.5597 GB, free: 6.594 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.557e-05/0.1194, allocations: 26.56 kB / 0.5597 GB, free: 6.559 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.796e-05/0.1194, allocations: 12.92 kB / 0.5597 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1194, allocations: 8 kB / 0.5597 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.1194, allocations: 34.5 kB / 0.5598 GB, free: 6.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1194, allocations: 0 / 0.5598 GB, free: 6.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001164/0.1196, allocations: 65.52 kB / 0.5598 GB, free: 6.422 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.1196, allocations: 59.41 kB / 0.5599 GB, free: 6.352 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.1197, allocations: 166.2 kB / 0.56 GB, free: 6.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.1197, allocations: 25.7 kB / 0.5601 GB, free: 6.148 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.1198, allocations: 100.2 kB / 0.5602 GB, free: 6.047 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.037e-06/0.1198, allocations: 3.906 kB / 0.5602 GB, free: 6.043 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.428e-05/0.1198, allocations: 29.7 kB / 0.5602 GB, free: 6.008 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.365e-05/0.1199, allocations: 318.8 kB / 0.5605 GB, free: 5.688 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.755e-05/0.12, allocations: 35.98 kB / 0.5605 GB, free: 5.652 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.444e-05/0.12, allocations: 39.98 kB / 0.5606 GB, free: 5.613 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.853e-05/0.1201, allocations: 76.77 kB / 0.5606 GB, free: 5.535 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1201, allocations: 0 / 0.5606 GB, free: 5.535 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000127/0.1202, allocations: 131.7 kB / 0.5608 GB, free: 5.402 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.1203, allocations: 14.25 kB / 0.5608 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1203, allocations: 0 / 0.5608 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.655e-06/0.1203, allocations: 0 / 0.5608 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.107e-06/0.1203, allocations: 0 / 0.5608 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.647e-06/0.1203, allocations: 0 / 0.5608 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.135e-05/0.1203, allocations: 7.906 kB / 0.5608 GB, free: 5.383 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.1203, allocations: 0 / 0.5608 GB, free: 5.383 MB / 430.1 MB 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 9.603e-05/0.1204, allocations: 129.8 kB / 0.5609 GB, free: 5.246 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.1205, allocations: 15.78 kB / 0.5609 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.058e-05/0.1206, allocations: 65.48 kB / 0.561 GB, free: 5.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1206, allocations: 3.984 kB / 0.561 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1206, allocations: 0 / 0.561 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-06/0.1206, allocations: 4 kB / 0.561 GB, free: 5.152 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.117e-05/0.1207, allocations: 161.7 kB / 0.5611 GB, free: 4.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1207, allocations: 3.984 kB / 0.5611 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.526e-06/0.1207, allocations: 3.938 kB / 0.5612 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.1207, allocations: 0 / 0.5612 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1207, allocations: 4 kB / 0.5612 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1207, allocations: 7.969 kB / 0.5612 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1207, allocations: 4 kB / 0.5612 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.477e-05/0.1208, allocations: 76.97 kB / 0.5612 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.1208, allocations: 84.95 kB / 0.5613 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.759e-06/0.1208, allocations: 0 / 0.5613 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.073e-05/0.1209, allocations: 0 / 0.5613 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.1209, allocations: 7.984 kB / 0.5613 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.1209, allocations: 4.031 kB / 0.5613 GB, free: 4.715 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.776e-05/0.121, allocations: 122.7 kB / 0.5614 GB, free: 4.598 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.121, allocations: 0 / 0.5614 GB, free: 4.598 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.1212, allocations: 87.98 kB / 0.5615 GB, free: 4.512 MB / 430.1 MB 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.0006008/0.1218, allocations: 0.7336 MB / 0.5622 GB, free: 3.773 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.122, allocations: 101.6 kB / 0.5623 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.122, allocations: 4 kB / 0.5624 GB, free: 3.664 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.335e-05/0.122, allocations: 8 kB / 0.5624 GB, free: 3.656 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1221, allocations: 7.984 kB / 0.5624 GB, free: 3.648 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.1232, allocations: 1.539 MB / 0.5639 GB, free: 2.031 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.1234, allocations: 0.6887 MB / 0.5645 GB, free: 1.316 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.821e-05/0.1234, allocations: 7.922 kB / 0.5645 GB, free: 1.309 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.576e-05/0.1235, allocations: 27.42 kB / 0.5646 GB, free: 1.281 MB / 430.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1235, allocations: 0 / 0.5646 GB, free: 1.281 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1985/0.322, allocations: 3.316 MB / 0.5678 GB, free: 14.06 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.3222, allocations: 248.6 kB / 0.568 GB, free: 13.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.153, allocations: 0 / 0.568 GB, free: 13.8 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)