Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0007716/0.0007716, allocations: 101.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.001389/0.001389, allocations: 209.2 kB / 22.24 MB, free: 3.59 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.978/0.978, allocations: 230.6 MB / 256 MB, free: 9.602 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7809/0.7809, allocations: 203.5 MB / 0.5039 GB, free: 10.73 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_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.0008619/0.0008619, allocations: 65.41 kB / 0.7178 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5609/0.5617, allocations: 102 MB / 0.8173 GB, free: 1.242 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.00146/0.5632, allocations: 0.5187 MB / 0.8179 GB, free: 0.9297 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001859/0.565, allocations: 1.611 MB / 0.8194 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.175e-05/0.5651, allocations: 3.938 kB / 0.8194 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.5653, allocations: 22.11 kB / 0.8194 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.502e-05/0.5653, allocations: 14.25 kB / 0.8195 GB, free: 15.81 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.0008901/0.5662, allocations: 271.8 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.178e-05/0.5663, allocations: 20.66 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.5663, allocations: 7 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.586e-05/0.5663, allocations: 28.28 kB / 0.8198 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.973e-05/0.5664, allocations: 16.03 kB / 0.8198 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.5664, allocations: 3.812 kB / 0.8198 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006872/0.5671, allocations: 450.6 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.5672, allocations: 19.11 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.5672, allocations: 11.7 kB / 0.8203 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004244/0.5676, allocations: 297.1 kB / 0.8205 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.5676, allocations: 0 / 0.8205 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.896e-06/0.5676, allocations: 5.281 kB / 0.8205 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.5676, allocations: 0 / 0.8205 GB, free: 15.46 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.0004532/0.5681, allocations: 340.5 kB / 0.8209 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.5682, allocations: 10.62 kB / 0.8209 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.5682, allocations: 30.75 kB / 0.8209 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.5682, allocations: 7.797 kB / 0.8209 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.5684, allocations: 116.6 kB / 0.821 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.5684, allocations: 384 / 0.821 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.5684, allocations: 2.078 kB / 0.821 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.5686, allocations: 40.58 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.5686, allocations: 3.938 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.5686, allocations: 5.359 kB / 0.8211 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.5686, allocations: 0 / 0.8211 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.416e-05/0.5686, allocations: 22.19 kB / 0.8211 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001867/0.5688, allocations: 146.6 kB / 0.8212 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.917e-05/0.5689, allocations: 24.58 kB / 0.8213 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.978e-05/0.5689, allocations: 14.42 kB / 0.8213 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.532e-05/0.569, allocations: 4.5 kB / 0.8213 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.569, allocations: 36.95 kB / 0.8213 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.569, allocations: 0 / 0.8213 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0002045/0.5692, allocations: 71.03 kB / 0.8214 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.5692, allocations: 52.53 kB / 0.8214 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.5694, allocations: 173.5 kB / 0.8216 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.5694, allocations: 25.7 kB / 0.8216 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.102e-05/0.5695, allocations: 98.36 kB / 0.8217 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.38e-05/0.5695, allocations: 3.953 kB / 0.8217 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/0.5696, allocations: 26.31 kB / 0.8217 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.5697, allocations: 320.6 kB / 0.822 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.5697, allocations: 39.19 kB / 0.8221 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.61e-05/0.5698, allocations: 43.69 kB / 0.8221 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.965e-05/0.5699, allocations: 74.88 kB / 0.8222 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.5699, allocations: 5.281 kB / 0.8222 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002201/0.5701, allocations: 127.5 kB / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.5701, allocations: 5.688 kB / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/0.5701, allocations: 5.75 kB / 0.8223 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.5702, allocations: 0 / 0.8223 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.187e-05/0.5702, allocations: 1.125 kB / 0.8223 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.5702, allocations: 3.984 kB / 0.8223 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.011e-05/0.5702, allocations: 14.61 kB / 0.8224 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.5702, allocations: 0.6562 kB / 0.8224 GB, free: 13.87 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.000219/0.5705, allocations: 132.2 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.512e-05/0.5705, allocations: 9.172 kB / 0.8225 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.5706, allocations: 67.36 kB / 0.8226 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.5706, allocations: 0 / 0.8226 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.5707, allocations: 0 / 0.8226 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.5707, allocations: 1.438 kB / 0.8226 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.5708, allocations: 143.5 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5708, allocations: 0 / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.209e-05/0.5708, allocations: 8.562 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5708, allocations: 0 / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.5708, allocations: 32 / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.5708, allocations: 5.531 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5708, allocations: 0 / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.906e-05/0.5709, allocations: 77.03 kB / 0.8228 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.577e-05/0.5709, allocations: 16.92 kB / 0.8228 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.5709, allocations: 1.031 kB / 0.8228 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.5709, allocations: 0 / 0.8228 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.5709, allocations: 1.188 kB / 0.8228 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.5709, allocations: 1.062 kB / 0.8228 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.798e-05/0.571, allocations: 119 kB / 0.8229 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/0.571, allocations: 0 / 0.8229 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003211/0.5713, allocations: 94.44 kB / 0.823 GB, free: 13.33 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.0006786/0.572, allocations: 0.7428 MB / 0.8237 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001816/0.5722, allocations: 97.48 kB / 0.8238 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5722, allocations: 4.094 kB / 0.8238 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.781e-05/0.5722, allocations: 9.5 kB / 0.8238 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.5723, allocations: 6.688 kB / 0.8238 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.5736, allocations: 1.544 MB / 0.8253 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.975e-05/0.5737, allocations: 84.48 kB / 0.8254 GB, free: 11.37 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.372e-05/0.5738, allocations: 5.484 kB / 0.8254 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.5738, allocations: 18.78 kB / 0.8255 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of SimCode: time 4.31e-07/0.5738, allocations: 0 / 0.8255 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.5953, allocations: 4.093 MB / 0.8294 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.526/7.121, allocations: 12.5 kB / 0.8295 GB, free: 10.32 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d.fmu > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.06360146496445] Failed to read output from testmodel.py, exit status != 0: 7.199579935986549 7.211430295 6.640841154 Calling exit ...