Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.001193/0.001193, 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.001097/0.001097, allocations: 169.9 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.9709/0.9709, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.7397/0.7397, allocations: 154.5 MB / 413.7 MB, free: 0.8281 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_1d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 0.618 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.199e-05, allocations: 2.281 kB / 0.618 GB, free: 13.72 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001228/0.00125, allocations: 0.5195 MB / 0.6185 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001804/0.003054, allocations: 1.618 MB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.347e-05/0.003107, allocations: 0 / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.003303, allocations: 23.91 kB / 0.6201 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.975e-05/0.003333, allocations: 7.984 kB / 0.6201 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.001037/0.00437, allocations: 282.9 kB / 0.6204 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.863e-05/0.004468, allocations: 23.92 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 5.477e-05/0.004523, allocations: 3.984 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 5.332e-05/0.004577, allocations: 19.91 kB / 0.6204 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.218e-05/0.004619, allocations: 11.98 kB / 0.6204 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.004635, allocations: 0 / 0.6204 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005608/0.005196, allocations: 447.1 kB / 0.6209 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.633e-05/0.005252, allocations: 23.92 kB / 0.6209 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.005275, allocations: 11.92 kB / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003872/0.005662, allocations: 351.1 kB / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.005666, allocations: 4 kB / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.633e-06/0.005667, allocations: 0 / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.005672, allocations: 0 / 0.6212 GB, free: 10.38 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.0003475/0.00602, allocations: 333.5 kB / 0.6216 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.006061, allocations: 9.469 kB / 0.6216 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.109e-05/0.006092, allocations: 34.73 kB / 0.6216 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.755e-05/0.006119, allocations: 8.891 kB / 0.6216 GB, free: 9.965 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.006238, allocations: 125 kB / 0.6217 GB, free: 9.82 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-06/0.006245, allocations: 384 / 0.6217 GB, free: 9.82 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.702e-06/0.006252, allocations: 384 / 0.6217 GB, free: 9.82 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.614e-05/0.006338, allocations: 38.25 kB / 0.6218 GB, free: 9.777 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.006344, allocations: 192 / 0.6218 GB, free: 9.777 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.006352, allocations: 4.125 kB / 0.6218 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.006356, allocations: 0 / 0.6218 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.457e-05/0.006381, allocations: 23.92 kB / 0.6218 GB, free: 9.75 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.006526, allocations: 140.7 kB / 0.6219 GB, free: 9.57 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.78e-05/0.006574, allocations: 30.5 kB / 0.622 GB, free: 9.531 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.957e-05/0.006593, allocations: 20.86 kB / 0.622 GB, free: 9.508 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.00663, allocations: 8 kB / 0.622 GB, free: 9.5 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.006652, allocations: 30.56 kB / 0.622 GB, free: 9.461 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 1.733e-06/0.006653, allocations: 3.984 kB / 0.622 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001477/0.006801, allocations: 73.5 kB / 0.6221 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.006834, allocations: 51.41 kB / 0.6221 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.006958, allocations: 166.2 kB / 0.6223 GB, free: 9.145 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.006969, allocations: 25.7 kB / 0.6223 GB, free: 9.113 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.205e-05/0.007021, allocations: 100.1 kB / 0.6224 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.105e-05/0.007033, allocations: 4 kB / 0.6224 GB, free: 9.008 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.835e-05/0.007071, allocations: 25.83 kB / 0.6224 GB, free: 8.977 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.007171, allocations: 326.8 kB / 0.6228 GB, free: 8.648 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.006e-05/0.007221, allocations: 39.98 kB / 0.6228 GB, free: 8.609 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.292e-05/0.007254, allocations: 35.98 kB / 0.6228 GB, free: 8.574 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.255e-05/0.007327, allocations: 76.2 kB / 0.6229 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.007333, allocations: 0 / 0.6229 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001261/0.007459, allocations: 133.5 kB / 0.623 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.007473, allocations: 4 kB / 0.623 GB, free: 8.359 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.007492, allocations: 0 / 0.623 GB, free: 8.359 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.00751, allocations: 7.938 kB / 0.623 GB, free: 8.352 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.725e-05/0.007527, allocations: 0 / 0.623 GB, free: 8.352 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.007533, allocations: 4.062 kB / 0.623 GB, free: 8.348 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.586e-05/0.007559, allocations: 3.953 kB / 0.623 GB, free: 8.344 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.00757, allocations: 4 kB / 0.6231 GB, free: 8.34 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 0.0001476/0.007718, allocations: 126.8 kB / 0.6232 GB, free: 8.207 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-06/0.007726, allocations: 3.953 kB / 0.6232 GB, free: 8.203 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.007844, allocations: 61.42 kB / 0.6232 GB, free: 8.133 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.007847, allocations: 3.938 kB / 0.6232 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.007853, allocations: 3.938 kB / 0.6232 GB, free: 8.125 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.007857, allocations: 0 / 0.6232 GB, free: 8.125 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.007964, allocations: 144.8 kB / 0.6234 GB, free: 7.941 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.007967, allocations: 4 kB / 0.6234 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-06/0.007973, allocations: 3.984 kB / 0.6234 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.007974, allocations: 0 / 0.6234 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-06/0.007982, allocations: 0 / 0.6234 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.007984, allocations: 3.938 kB / 0.6234 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.007985, allocations: 0 / 0.6234 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.282e-05/0.008058, allocations: 81.08 kB / 0.6235 GB, free: 7.832 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.087e-05/0.008069, allocations: 3.953 kB / 0.6235 GB, free: 7.828 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.00808, allocations: 0 / 0.6235 GB, free: 7.828 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.008091, allocations: 7.969 kB / 0.6235 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-05/0.008109, allocations: 7.938 kB / 0.6235 GB, free: 7.812 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.008114, allocations: 3.984 kB / 0.6235 GB, free: 7.809 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.049e-05/0.008185, allocations: 122.7 kB / 0.6236 GB, free: 7.691 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.008185, allocations: 3.938 kB / 0.6236 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002791/0.008464, allocations: 87.8 kB / 0.6237 GB, free: 7.602 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.0005415/0.009005, allocations: 0.7579 MB / 0.6244 GB, free: 6.84 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001255/0.009131, allocations: 93.67 kB / 0.6245 GB, free: 6.742 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.009133, allocations: 0 / 0.6245 GB, free: 6.742 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 1.116e-05/0.009144, allocations: 15.92 kB / 0.6245 GB, free: 6.727 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.009256, allocations: 7.938 kB / 0.6245 GB, free: 6.719 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009757/0.01023, allocations: 1.549 MB / 0.6261 GB, free: 5.094 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.818e-05/0.01028, allocations: 75.48 kB / 0.6261 GB, free: 5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.552e-05/0.0103, allocations: 8 kB / 0.6261 GB, free: 4.992 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.01032, allocations: 20.48 kB / 0.6262 GB, free: 4.973 MB / 0.5886 GB Notification: Performance of SimCode: time 4.91e-07/0.01032, allocations: 0 / 0.6262 GB, free: 4.973 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.02891, allocations: 4.227 MB / 0.6303 GB, free: 0.8633 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.755/6.784, allocations: 20.56 kB / 0.6303 GB, free: 0.8555 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.744997033849359] Failed to read output from testmodel.py, exit status != 0: 6.8657851461321115 6.875035243 6.867473617 Calling exit ...