Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.003991/0.003991, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001649/0.001649, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9678/0.9678, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7351/0.7351, allocations: 154.5 MB / 413.7 MB, free: 0.8359 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 master/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_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",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.618 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.53e-05/1.673e-05, allocations: 2.281 kB / 0.618 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001031/0.001048, allocations: 0.5279 MB / 0.6185 GB, free: 13.27 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.002731, allocations: 1.61 MB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.751e-05/0.002769, allocations: 0 / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.002932, allocations: 63.84 kB / 0.6201 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.801e-05/0.00296, allocations: 35.89 kB / 0.6202 GB, free: 11.54 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.0007528/0.003712, allocations: 275 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0003306/0.004043, allocations: 31.89 kB / 0.6205 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.49e-05/0.004078, allocations: 4 kB / 0.6205 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.117e-05/0.004119, allocations: 19.97 kB / 0.6205 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.199e-05/0.004171, allocations: 51.88 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.004185, allocations: 4 kB / 0.6205 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005449/0.00473, allocations: 447.1 kB / 0.621 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.351e-05/0.004783, allocations: 23.92 kB / 0.621 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.013e-05/0.004803, allocations: 15.88 kB / 0.621 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.005145, allocations: 363.1 kB / 0.6214 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.005147, allocations: 0 / 0.6214 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.62e-07/0.005147, allocations: 0 / 0.6214 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.005151, allocations: 4 kB / 0.6214 GB, free: 10.33 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.000352/0.005503, allocations: 365.3 kB / 0.6217 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.005543, allocations: 9.469 kB / 0.6217 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.005575, allocations: 30.75 kB / 0.6217 GB, free: 9.895 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.446e-05/0.005599, allocations: 8.891 kB / 0.6218 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.005737, allocations: 137.5 kB / 0.6219 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.255e-06/0.005745, allocations: 384 / 0.6219 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.005753, allocations: 384 / 0.6219 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.72e-05/0.00585, allocations: 38.25 kB / 0.6219 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.005858, allocations: 192 / 0.6219 GB, free: 9.684 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.005867, allocations: 16.11 kB / 0.6219 GB, free: 9.668 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.005872, allocations: 0 / 0.6219 GB, free: 9.668 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.728e-05/0.0059, allocations: 19.98 kB / 0.622 GB, free: 9.648 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.006056, allocations: 156.7 kB / 0.6221 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.78e-05/0.006103, allocations: 30.58 kB / 0.6221 GB, free: 9.414 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.349e-05/0.006127, allocations: 20.84 kB / 0.6222 GB, free: 9.391 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 4.784e-05/0.006175, allocations: 4 kB / 0.6222 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.006196, allocations: 30.56 kB / 0.6222 GB, free: 9.348 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 6.61e-07/0.006197, allocations: 0 / 0.6222 GB, free: 9.348 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.006342, allocations: 77.5 kB / 0.6223 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.006378, allocations: 55.53 kB / 0.6223 GB, free: 9.199 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.006527, allocations: 205.1 kB / 0.6225 GB, free: 8.988 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.006538, allocations: 29.64 kB / 0.6225 GB, free: 8.953 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.106e-05/0.006589, allocations: 108.1 kB / 0.6226 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-06/0.006599, allocations: 0 / 0.6226 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.006634, allocations: 33.7 kB / 0.6227 GB, free: 8.805 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.006733, allocations: 322.8 kB / 0.623 GB, free: 8.48 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.27e-05/0.006786, allocations: 55.97 kB / 0.623 GB, free: 8.426 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4e-05/0.006826, allocations: 51.98 kB / 0.6231 GB, free: 8.375 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.947e-05/0.006906, allocations: 95.98 kB / 0.6232 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006907, allocations: 0 / 0.6232 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001286/0.007036, allocations: 165.6 kB / 0.6233 GB, free: 8.113 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.007051, allocations: 6.188 kB / 0.6233 GB, free: 8.109 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.007066, allocations: 4 kB / 0.6233 GB, free: 8.105 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.007079, allocations: 3.938 kB / 0.6234 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.169e-05/0.007091, allocations: 3.938 kB / 0.6234 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.007103, allocations: 0 / 0.6234 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.007124, allocations: 15.83 kB / 0.6234 GB, free: 8.082 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.007135, allocations: 3.984 kB / 0.6234 GB, free: 8.078 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: 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.0001204/0.007255, allocations: 126.8 kB / 0.6235 GB, free: 7.945 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.548e-06/0.007265, allocations: 15.94 kB / 0.6235 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.007371, allocations: 66.17 kB / 0.6236 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.007374, allocations: 3.938 kB / 0.6236 GB, free: 7.852 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.00738, allocations: 0 / 0.6236 GB, free: 7.852 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.007383, allocations: 0 / 0.6236 GB, free: 7.852 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.087e-05/0.007474, allocations: 152.7 kB / 0.6237 GB, free: 7.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.007476, allocations: 4 kB / 0.6237 GB, free: 7.656 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-06/0.00748, allocations: 4 kB / 0.6237 GB, free: 7.652 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.007482, allocations: 0 / 0.6237 GB, free: 7.652 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.007488, allocations: 0 / 0.6237 GB, free: 7.652 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.007489, allocations: 7.969 kB / 0.6237 GB, free: 7.645 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.007491, allocations: 3.984 kB / 0.6237 GB, free: 7.641 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.868e-05/0.00755, allocations: 81.02 kB / 0.6238 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.293e-05/0.007563, allocations: 11.91 kB / 0.6238 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.007574, allocations: 0 / 0.6238 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.007583, allocations: 3.938 kB / 0.6238 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.007597, allocations: 0 / 0.6238 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.007599, allocations: 4 kB / 0.6238 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.631e-05/0.007686, allocations: 156.2 kB / 0.624 GB, free: 7.371 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.007686, allocations: 0 / 0.624 GB, free: 7.371 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003052/0.007991, allocations: 95.83 kB / 0.6241 GB, free: 7.277 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.0006275/0.008618, allocations: 0.7593 MB / 0.6248 GB, free: 6.516 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001443/0.008763, allocations: 113.7 kB / 0.6249 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.008765, allocations: 8.094 kB / 0.6249 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.016e-05/0.008775, allocations: 11.98 kB / 0.6249 GB, free: 6.379 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001172/0.008893, allocations: 3.938 kB / 0.625 GB, free: 6.375 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.01014, allocations: 1.836 MB / 0.6267 GB, free: 4.461 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.837e-05/0.0102, allocations: 84.31 kB / 0.6268 GB, free: 4.359 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.85e-05/0.01021, allocations: 7.984 kB / 0.6268 GB, free: 4.352 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.623e-05/0.01025, allocations: 24.44 kB / 0.6269 GB, free: 4.328 MB / 0.5886 GB Notification: Performance of SimCode: time 8.31e-07/0.01025, allocations: 0 / 0.6269 GB, free: 4.328 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.02794, allocations: 4.639 MB / 0.6314 GB, free: 15.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/6.854, allocations: 13 kB / 0.6314 GB, free: 15.81 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.783861886709929] Failed to read output from testmodel.py, exit status != 0: 6.936538062989712 6.951167779 6.943501737 Calling exit ...