Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.0007544/0.0007544, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.000791/0.000791, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8807/0.8807, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7152/0.7152, allocations: 154.6 MB / 413.8 MB, free: 0.7891 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.6181 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.598e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001237/0.001253, allocations: 0.5246 MB / 0.6186 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.002898, allocations: 1.618 MB / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.197e-05/0.00293, allocations: 0 / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.00308, allocations: 27.91 kB / 0.6202 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.409e-05/0.003104, allocations: 7.984 kB / 0.6202 GB, free: 11.5 MB / 0.5886 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.0006601/0.003764, allocations: 279 kB / 0.6205 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 6.05e-05/0.003825, allocations: 27.84 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.328e-05/0.003858, allocations: 0 / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 3.866e-05/0.003897, allocations: 23.92 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 3.474e-05/0.003932, allocations: 11.98 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.003944, allocations: 0 / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004355/0.004379, allocations: 455.1 kB / 0.6209 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 4.713e-05/0.004426, allocations: 15.94 kB / 0.621 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.687e-05/0.004443, allocations: 7.938 kB / 0.621 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.004758, allocations: 355.1 kB / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.00476, allocations: 0 / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.02e-07/0.004761, allocations: 4 kB / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.004765, allocations: 0 / 0.6213 GB, free: 10.35 MB / 0.5886 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.0003102/0.005075, allocations: 333.5 kB / 0.6216 GB, free: 9.992 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.005114, allocations: 12.02 kB / 0.6216 GB, free: 9.98 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.82e-05/0.005142, allocations: 30.75 kB / 0.6217 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.561e-05/0.005168, allocations: 8.891 kB / 0.6217 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.005286, allocations: 121.7 kB / 0.6218 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-06/0.005294, allocations: 384 / 0.6218 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.005302, allocations: 384 / 0.6218 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.613e-05/0.005388, allocations: 38.25 kB / 0.6218 GB, free: 9.746 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.005394, allocations: 192 / 0.6218 GB, free: 9.746 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.597e-06/0.005403, allocations: 12.12 kB / 0.6218 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.005408, allocations: 0 / 0.6218 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.352e-05/0.005431, allocations: 19.92 kB / 0.6219 GB, free: 9.715 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001241/0.005555, allocations: 140.7 kB / 0.622 GB, free: 9.535 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.431e-05/0.005599, allocations: 26.56 kB / 0.622 GB, free: 9.5 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.235e-05/0.005622, allocations: 12.92 kB / 0.622 GB, free: 9.484 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.005655, allocations: 7.938 kB / 0.622 GB, free: 9.477 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.005676, allocations: 42.55 kB / 0.6221 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.005676, allocations: 0 / 0.6221 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001294/0.005806, allocations: 65.61 kB / 0.6221 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.005837, allocations: 55.44 kB / 0.6222 GB, free: 9.289 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.005941, allocations: 165.5 kB / 0.6224 GB, free: 9.121 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.005951, allocations: 29.64 kB / 0.6224 GB, free: 9.086 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.005993, allocations: 96.09 kB / 0.6225 GB, free: 8.988 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 8.566e-06/0.006001, allocations: 4 kB / 0.6225 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.00603, allocations: 25.7 kB / 0.6225 GB, free: 8.953 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.934e-05/0.00611, allocations: 322.8 kB / 0.6228 GB, free: 8.629 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.76e-05/0.006147, allocations: 35.98 kB / 0.6228 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.795e-05/0.006175, allocations: 39.98 kB / 0.6229 GB, free: 8.555 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.947e-05/0.006235, allocations: 75.88 kB / 0.623 GB, free: 8.48 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.006237, allocations: 4.031 kB / 0.623 GB, free: 8.477 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.065e-05/0.006328, allocations: 133.5 kB / 0.6231 GB, free: 8.34 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.006339, allocations: 4 kB / 0.6231 GB, free: 8.336 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.006352, allocations: 4 kB / 0.6231 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.006364, allocations: 3.938 kB / 0.6231 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.029e-05/0.006374, allocations: 0 / 0.6231 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.006379, allocations: 0 / 0.6231 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.793e-05/0.006397, allocations: 11.89 kB / 0.6231 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.006404, allocations: 4 kB / 0.6231 GB, free: 8.312 MB / 0.5886 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 8.304e-05/0.006487, allocations: 122.8 kB / 0.6232 GB, free: 8.184 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-06/0.006492, allocations: 7.984 kB / 0.6232 GB, free: 8.176 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.683e-05/0.006579, allocations: 65.44 kB / 0.6233 GB, free: 8.105 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.006583, allocations: 11.86 kB / 0.6233 GB, free: 8.094 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.006588, allocations: 0 / 0.6233 GB, free: 8.094 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.00659, allocations: 3.938 kB / 0.6233 GB, free: 8.09 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.21e-05/0.006662, allocations: 144.7 kB / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.006663, allocations: 0 / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.006665, allocations: 0 / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.11e-07/0.006666, allocations: 0 / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-06/0.006671, allocations: 0 / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.006672, allocations: 7.969 kB / 0.6235 GB, free: 7.898 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.006673, allocations: 0 / 0.6235 GB, free: 7.898 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.845e-05/0.006721, allocations: 81.08 kB / 0.6235 GB, free: 7.801 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-06/0.006728, allocations: 3.953 kB / 0.6235 GB, free: 7.797 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.416e-06/0.006736, allocations: 0 / 0.6235 GB, free: 7.797 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-06/0.006743, allocations: 7.938 kB / 0.6236 GB, free: 7.789 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.144e-05/0.006755, allocations: 3.984 kB / 0.6236 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-06/0.006756, allocations: 0 / 0.6236 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.335e-05/0.006809, allocations: 122.7 kB / 0.6237 GB, free: 7.668 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006809, allocations: 0 / 0.6237 GB, free: 7.668 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002019/0.007011, allocations: 95.77 kB / 0.6238 GB, free: 7.574 MB / 0.5886 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.0006802/0.007692, allocations: 0.7464 MB / 0.6245 GB, free: 6.824 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001253/0.007817, allocations: 97.67 kB / 0.6246 GB, free: 6.723 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.007819, allocations: 4.094 kB / 0.6246 GB, free: 6.719 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.268e-06/0.007828, allocations: 15.92 kB / 0.6246 GB, free: 6.703 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001053/0.007934, allocations: 6.438 kB / 0.6246 GB, free: 6.699 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009381/0.008872, allocations: 1.543 MB / 0.6261 GB, free: 5.074 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.166e-05/0.008923, allocations: 75.33 kB / 0.6262 GB, free: 4.98 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.79e-05/0.008941, allocations: 7.984 kB / 0.6262 GB, free: 4.973 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/0.008969, allocations: 20.48 kB / 0.6262 GB, free: 4.953 MB / 0.5886 GB Notification: Performance of SimCode: time 1.062e-06/0.00897, allocations: 0 / 0.6262 GB, free: 4.953 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.02547, allocations: 4.243 MB / 0.6304 GB, free: 0.8359 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.856/6.882, allocations: 9.906 kB / 0.6304 GB, free: 0.832 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d.fmu > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.722237245179713] Failed to read output from testmodel.py, exit status != 0: 6.9664919432252645 6.975961531 6.969279379 Calling exit ...