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.001102/0.001102, 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.001061/0.001061, allocations: 213.7 kB / 22.25 MB, free: 3.711 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 1.016/1.016, allocations: 230.6 MB / 256 MB, free: 9.816 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.8329/0.8329, allocations: 203.8 MB / 0.5042 GB, free: 10.77 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.001013/0.001013, allocations: 66.67 kB / 0.7182 GB, free: 4.371 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6006/0.6016, allocations: 102 MB / 0.8178 GB, free: 1.25 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001303/0.6029, allocations: 0.5235 MB / 0.8183 GB, free: 0.9297 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001772/0.6047, allocations: 1.692 MB / 0.82 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.905e-05/0.6047, allocations: 3.938 kB / 0.82 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.6049, allocations: 20.97 kB / 0.82 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.489e-05/0.6049, allocations: 8.578 kB / 0.82 GB, free: 15.73 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.0008809/0.6058, allocations: 285.9 kB / 0.8203 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.164e-05/0.6058, allocations: 27.25 kB / 0.8203 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.75e-05/0.6059, allocations: 4.656 kB / 0.8203 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.325e-05/0.6059, allocations: 15.39 kB / 0.8203 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.246e-05/0.606, allocations: 16.98 kB / 0.8204 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.606, allocations: 0 / 0.8204 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006921/0.6067, allocations: 491.7 kB / 0.8208 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.291e-05/0.6067, allocations: 17.91 kB / 0.8208 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.247e-05/0.6068, allocations: 20.47 kB / 0.8209 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.6072, allocations: 295.5 kB / 0.8211 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.6072, allocations: 0 / 0.8211 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.934e-06/0.6072, allocations: 0 / 0.8211 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.6072, allocations: 3.688 kB / 0.8212 GB, free: 15.33 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.0004148/0.6076, allocations: 339.3 kB / 0.8215 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.6076, allocations: 9.156 kB / 0.8215 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.919e-05/0.6077, allocations: 30.75 kB / 0.8215 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.6077, allocations: 7.297 kB / 0.8215 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.6078, allocations: 128.7 kB / 0.8216 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.6078, allocations: 384 / 0.8216 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.6079, allocations: 4.281 kB / 0.8216 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.755e-05/0.608, allocations: 41.69 kB / 0.8217 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.608, allocations: 0 / 0.8217 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.608, allocations: 3.062 kB / 0.8217 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.608, allocations: 0 / 0.8217 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.801e-05/0.608, allocations: 14.5 kB / 0.8217 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001431/0.6081, allocations: 149.5 kB / 0.8218 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.383e-05/0.6082, allocations: 22.83 kB / 0.8219 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.353e-05/0.6082, allocations: 15.45 kB / 0.8219 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.172e-05/0.6083, allocations: 4.719 kB / 0.8219 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.6083, allocations: 43.42 kB / 0.8219 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.6083, allocations: 1.531 kB / 0.8219 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001429/0.6084, allocations: 58.16 kB / 0.822 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.6085, allocations: 57.16 kB / 0.822 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.6086, allocations: 176.9 kB / 0.8222 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.6086, allocations: 25.7 kB / 0.8222 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.495e-05/0.6086, allocations: 102.2 kB / 0.8223 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.6087, allocations: 7.281 kB / 0.8223 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.6087, allocations: 20.47 kB / 0.8224 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.71e-05/0.6088, allocations: 321 kB / 0.8227 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.637e-05/0.6088, allocations: 45.05 kB / 0.8227 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.812e-05/0.6089, allocations: 48.72 kB / 0.8228 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.511e-05/0.6089, allocations: 66.44 kB / 0.8228 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.6089, allocations: 0 / 0.8228 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001177/0.609, allocations: 132.8 kB / 0.8229 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.6091, allocations: 2.469 kB / 0.8229 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.6091, allocations: 2.688 kB / 0.8229 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.6091, allocations: 0 / 0.8229 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.578e-05/0.6091, allocations: 2.906 kB / 0.823 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.6091, allocations: 0 / 0.823 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.1e-05/0.6091, allocations: 6.578 kB / 0.823 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.6091, allocations: 5.344 kB / 0.823 GB, free: 13.74 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.0001405/0.6093, allocations: 127.5 kB / 0.8231 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-06/0.6093, allocations: 11.89 kB / 0.8231 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.6094, allocations: 65.38 kB / 0.8232 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.6094, allocations: 0.6094 kB / 0.8232 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.6094, allocations: 0 / 0.8232 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.6094, allocations: 1.531 kB / 0.8232 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003667/0.6098, allocations: 145.2 kB / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6098, allocations: 0 / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.625e-06/0.6098, allocations: 4.5 kB / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.6098, allocations: 1.406 kB / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.6098, allocations: 1.219 kB / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.6098, allocations: 0 / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6098, allocations: 5.688 kB / 0.8233 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.213e-05/0.6099, allocations: 79.92 kB / 0.8234 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.629e-06/0.6099, allocations: 15.73 kB / 0.8234 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.6099, allocations: 4.547 kB / 0.8234 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.6099, allocations: 0.7969 kB / 0.8234 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.6099, allocations: 1.188 kB / 0.8234 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.6099, allocations: 2.172 kB / 0.8234 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.743e-05/0.61, allocations: 119.2 kB / 0.8235 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.61, allocations: 0 / 0.8235 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002932/0.6103, allocations: 88.8 kB / 0.8236 GB, free: 13.2 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.0005868/0.6109, allocations: 0.7347 MB / 0.8243 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00016/0.611, allocations: 100.2 kB / 0.8244 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.611, allocations: 0 / 0.8244 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.038e-05/0.611, allocations: 9.484 kB / 0.8244 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.6112, allocations: 9.734 kB / 0.8244 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.6123, allocations: 1.543 MB / 0.8259 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/0.6124, allocations: 0.6922 MB / 0.8266 GB, free: 10.61 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.08e-05/0.6125, allocations: 2.531 kB / 0.8266 GB, free: 10.61 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.211e-05/0.6125, allocations: 19.14 kB / 0.8266 GB, free: 10.6 MB / 0.6198 GB Notification: Performance of SimCode: time 6.31e-07/0.6125, allocations: 0 / 0.8266 GB, free: 10.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.6324, allocations: 3.714 MB / 0.8303 GB, free: 9.988 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.694/7.326, allocations: 1.281 kB / 0.8303 GB, free: 9.988 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.444755220087245] Failed to read output from testmodel.py, exit status != 0: 7.408266881015152 7.42609046 6.815562706 Calling exit ...