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.0009582/0.0009582, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.0008466/0.0008466, allocations: 217.7 kB / 22.26 MB, free: 3.703 MB / 13.93 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.9209/0.9209, allocations: 230.6 MB / 256 MB, free: 9.809 MB / 202.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.783/0.783, allocations: 203.8 MB / 0.5042 GB, free: 10.71 MB / 410.7 MB " [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: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 61.75 kB / 0.7182 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5638/0.5653, allocations: 102 MB / 0.8178 GB, free: 1.262 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001448/0.5667, allocations: 0.5407 MB / 0.8184 GB, free: 0.9258 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.5686, allocations: 1.682 MB / 0.82 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.213e-05/0.5686, allocations: 3.938 kB / 0.82 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.5688, allocations: 70.3 kB / 0.8201 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.374e-05/0.5689, allocations: 27.77 kB / 0.8201 GB, free: 15.72 MB / 0.6198 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.0009052/0.5698, allocations: 284.1 kB / 0.8204 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.667e-05/0.5699, allocations: 28.27 kB / 0.8204 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.331e-05/0.5699, allocations: 7.297 kB / 0.8204 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.11e-05/0.57, allocations: 26.89 kB / 0.8204 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.488e-05/0.57, allocations: 52.27 kB / 0.8205 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.57, allocations: 0 / 0.8205 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007851/0.5708, allocations: 485.7 kB / 0.8209 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.845e-05/0.5709, allocations: 22.28 kB / 0.821 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.069e-05/0.5709, allocations: 28.98 kB / 0.821 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.5714, allocations: 320.4 kB / 0.8213 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.5715, allocations: 0 / 0.8213 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.264e-06/0.5715, allocations: 4 kB / 0.8213 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.5715, allocations: 0 / 0.8213 GB, free: 15.3 MB / 0.6198 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.0004813/0.5719, allocations: 359 kB / 0.8216 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.572, allocations: 10.62 kB / 0.8216 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.642e-05/0.572, allocations: 34.75 kB / 0.8217 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.5721, allocations: 12.31 kB / 0.8217 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.5722, allocations: 140.1 kB / 0.8218 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.5723, allocations: 384 / 0.8218 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.5723, allocations: 384 / 0.8218 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.5724, allocations: 50.94 kB / 0.8219 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.5724, allocations: 0 / 0.8219 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.5724, allocations: 0 / 0.8219 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.5724, allocations: 0 / 0.8219 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.167e-05/0.5724, allocations: 19.8 kB / 0.8219 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.5726, allocations: 152.6 kB / 0.822 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.076e-05/0.5727, allocations: 25.16 kB / 0.8221 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.826e-05/0.5727, allocations: 20.19 kB / 0.8221 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.833e-05/0.5728, allocations: 9.281 kB / 0.8221 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.5728, allocations: 43.5 kB / 0.8221 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.5728, allocations: 0 / 0.8221 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001923/0.573, allocations: 68.38 kB / 0.8222 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.573, allocations: 52.5 kB / 0.8222 GB, free: 14.37 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.5732, allocations: 215.1 kB / 0.8225 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.5732, allocations: 28.14 kB / 0.8225 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.624e-05/0.5733, allocations: 105.3 kB / 0.8226 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.175e-05/0.5733, allocations: 3.953 kB / 0.8226 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.5733, allocations: 33 kB / 0.8226 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5734, allocations: 324.8 kB / 0.8229 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.492e-05/0.5735, allocations: 53.7 kB / 0.823 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.51e-05/0.5736, allocations: 51.59 kB / 0.823 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.5737, allocations: 95.34 kB / 0.8231 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5737, allocations: 0 / 0.8231 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001655/0.5739, allocations: 171 kB / 0.8233 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.5739, allocations: 3.969 kB / 0.8233 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.5739, allocations: 2.422 kB / 0.8233 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5739, allocations: 0.75 kB / 0.8233 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.008e-05/0.5739, allocations: 5.734 kB / 0.8233 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.5739, allocations: 0 / 0.8233 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.916e-05/0.574, allocations: 19.12 kB / 0.8233 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.574, allocations: 2.297 kB / 0.8233 GB, free: 13.64 MB / 0.6198 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.0001988/0.5742, allocations: 131.5 kB / 0.8234 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.5742, allocations: 16.64 kB / 0.8235 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.5743, allocations: 66.88 kB / 0.8235 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5743, allocations: 1.125 kB / 0.8235 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.5743, allocations: 0 / 0.8235 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5743, allocations: 2.234 kB / 0.8235 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.5745, allocations: 151.7 kB / 0.8237 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.5745, allocations: 0.9375 kB / 0.8237 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.867e-06/0.5745, allocations: 5.484 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5745, allocations: 0 / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.5745, allocations: 5.844 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5745, allocations: 0 / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5745, allocations: 0.5156 kB / 0.8237 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.319e-05/0.5746, allocations: 85.39 kB / 0.8238 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.522e-05/0.5746, allocations: 19.84 kB / 0.8238 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.5746, allocations: 0.6562 kB / 0.8238 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.252e-05/0.5746, allocations: 1.312 kB / 0.8238 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.5746, allocations: 4.734 kB / 0.8238 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.5746, allocations: 1.953 kB / 0.8238 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001053/0.5747, allocations: 149.9 kB / 0.8239 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.1e-08/0.5747, allocations: 0 / 0.8239 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003371/0.5751, allocations: 88.3 kB / 0.824 GB, free: 13.09 MB / 0.6198 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.0006699/0.5757, allocations: 0.7574 MB / 0.8248 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000198/0.5759, allocations: 119.8 kB / 0.8249 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5759, allocations: 0 / 0.8249 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.319e-05/0.576, allocations: 11.56 kB / 0.8249 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.5761, allocations: 9.281 kB / 0.8249 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.5776, allocations: 1.804 MB / 0.8266 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.5778, allocations: 0.714 MB / 0.8273 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.308e-05/0.5778, allocations: 7.109 kB / 0.8274 GB, free: 10.42 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.094e-05/0.5779, allocations: 28.14 kB / 0.8274 GB, free: 10.4 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/0.5779, allocations: 0 / 0.8274 GB, free: 10.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.6004, allocations: 4.078 MB / 0.8314 GB, free: 9.781 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.824/7.424, allocations: 2.156 kB / 0.8314 GB, free: 9.781 MB / 0.6198 GB " [Timeout remaining time 652] (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: 10.370234779082239] Failed to read output from testmodel.py, exit status != 0: 7.505375168984756 7.517315932 6.943811609 Calling exit ...