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.000997/0.000997, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.001065/0.001065, allocations: 212.1 kB / 22.25 MB, free: 3.574 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.9976/0.9976, allocations: 230.6 MB / 256 MB, free: 9.598 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.7842/0.7842, allocations: 203.8 MB / 0.5042 GB, free: 10.48 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_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: 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.0009916/0.0009916, allocations: 67.33 kB / 0.7181 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6394/0.6404, allocations: 102 MB / 0.8178 GB, free: 1.066 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.00142/0.6419, allocations: 0.5293 MB / 0.8183 GB, free: 0.7422 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001903/0.6438, allocations: 1.61 MB / 0.8198 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.6438, allocations: 0 / 0.8198 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.644, allocations: 21.72 kB / 0.8199 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.628e-05/0.644, allocations: 19.47 kB / 0.8199 GB, free: 15.62 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.0008753/0.6449, allocations: 278.6 kB / 0.8201 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.623e-05/0.6449, allocations: 20.78 kB / 0.8202 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.603e-05/0.645, allocations: 8.75 kB / 0.8202 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.172e-05/0.645, allocations: 11.5 kB / 0.8202 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.276e-05/0.6451, allocations: 21.12 kB / 0.8202 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.6451, allocations: 0 / 0.8202 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006619/0.6457, allocations: 457.9 kB / 0.8206 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.387e-05/0.6458, allocations: 17.75 kB / 0.8207 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.6458, allocations: 15.34 kB / 0.8207 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.6463, allocations: 290.7 kB / 0.821 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.6463, allocations: 0 / 0.821 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.076e-06/0.6463, allocations: 2.281 kB / 0.821 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.6463, allocations: 4 kB / 0.821 GB, free: 15.28 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.0004359/0.6467, allocations: 339.1 kB / 0.8213 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.6468, allocations: 8.625 kB / 0.8213 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.576e-05/0.6468, allocations: 30.75 kB / 0.8213 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.6468, allocations: 11.86 kB / 0.8213 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.647, allocations: 121 kB / 0.8214 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.647, allocations: 5.812 kB / 0.8214 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.647, allocations: 1.688 kB / 0.8215 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.6471, allocations: 46.67 kB / 0.8215 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.6471, allocations: 0 / 0.8215 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.413e-06/0.6471, allocations: 4 kB / 0.8215 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.6472, allocations: 7.922 kB / 0.8215 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.976e-05/0.6472, allocations: 15.03 kB / 0.8215 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004398/0.6476, allocations: 145.9 kB / 0.8217 GB, free: 14.56 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.631e-05/0.6477, allocations: 27.94 kB / 0.8217 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.052e-05/0.6477, allocations: 13.55 kB / 0.8217 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.6477, allocations: 6.484 kB / 0.8217 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.6477, allocations: 34.5 kB / 0.8217 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.6477, allocations: 0 / 0.8217 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001635/0.6479, allocations: 63.94 kB / 0.8218 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.6479, allocations: 55.53 kB / 0.8219 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.6481, allocations: 169.3 kB / 0.822 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.6481, allocations: 25.7 kB / 0.822 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.825e-05/0.6482, allocations: 96.12 kB / 0.8221 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.6482, allocations: 3.953 kB / 0.8221 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.6482, allocations: 29.48 kB / 0.8222 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.004e-05/0.6483, allocations: 321.7 kB / 0.8225 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.741e-05/0.6483, allocations: 36.66 kB / 0.8225 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.784e-05/0.6484, allocations: 46.34 kB / 0.8225 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.451e-05/0.6485, allocations: 66.59 kB / 0.8226 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.6485, allocations: 0.5312 kB / 0.8226 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001333/0.6486, allocations: 137 kB / 0.8227 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.6486, allocations: 3.906 kB / 0.8227 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.6487, allocations: 0.7031 kB / 0.8227 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.6487, allocations: 0.5312 kB / 0.8227 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.411e-05/0.6487, allocations: 2.281 kB / 0.8228 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.6487, allocations: 3.938 kB / 0.8228 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.6487, allocations: 10.2 kB / 0.8228 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.6487, allocations: 1.953 kB / 0.8228 GB, free: 13.69 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: 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.0001511/0.6489, allocations: 125.7 kB / 0.8229 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.6489, allocations: 13.92 kB / 0.8229 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.649, allocations: 66.06 kB / 0.823 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.649, allocations: 2.078 kB / 0.823 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.649, allocations: 0 / 0.823 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.649, allocations: 0 / 0.823 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.992e-05/0.6491, allocations: 141.7 kB / 0.8231 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.6491, allocations: 0 / 0.8231 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.825e-06/0.6492, allocations: 8.484 kB / 0.8231 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.6492, allocations: 1.062 kB / 0.8231 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.6492, allocations: 0.6094 kB / 0.8231 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.6492, allocations: 5 kB / 0.8231 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6492, allocations: 0 / 0.8231 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.436e-05/0.6492, allocations: 83.66 kB / 0.8232 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.154e-05/0.6492, allocations: 10.39 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.918e-06/0.6493, allocations: 0.6094 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.455e-06/0.6493, allocations: 1.344 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.293e-05/0.6493, allocations: 0.7969 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.6493, allocations: 2.109 kB / 0.8232 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.338e-05/0.6494, allocations: 121.4 kB / 0.8233 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.6494, allocations: 0 / 0.8233 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002935/0.6497, allocations: 92.92 kB / 0.8234 GB, free: 13.16 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.0006407/0.6503, allocations: 0.7479 MB / 0.8241 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001701/0.6505, allocations: 93.34 kB / 0.8242 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6505, allocations: 4.094 kB / 0.8242 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.351e-05/0.6505, allocations: 9.219 kB / 0.8242 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.6506, allocations: 4.188 kB / 0.8242 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.6518, allocations: 1.553 MB / 0.8258 GB, free: 11.26 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.462e-05/0.6519, allocations: 83.11 kB / 0.8258 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.612e-05/0.6519, allocations: 3.156 kB / 0.8258 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.6519, allocations: 19.14 kB / 0.8259 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of SimCode: time 6.92e-07/0.6519, allocations: 0 / 0.8259 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.6733, allocations: 4.099 MB / 0.8299 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.652/7.326, allocations: 11.33 kB / 0.8299 GB, free: 10.14 MB / 0.6198 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: 10.400142455939204] Failed to read output from testmodel.py, exit status != 0: 7.4040754730813205 7.416992968 6.76867625 Calling exit ...