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.00193/0.00193, 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.0007921/0.0007921, allocations: 207 kB / 22.24 MB, free: 3.578 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.9091/0.9091, allocations: 230.6 MB / 256 MB, free: 9.609 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.769/0.769, allocations: 203.8 MB / 0.5042 GB, free: 10.35 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.000865/0.000865, allocations: 69.27 kB / 0.7181 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5506/0.5514, allocations: 102 MB / 0.8178 GB, free: 1.035 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001287/0.5527, allocations: 0.5155 MB / 0.8183 GB, free: 0.7227 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001715/0.5544, allocations: 1.615 MB / 0.8198 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.45e-05/0.5545, allocations: 0 / 0.8198 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.5547, allocations: 27.19 kB / 0.8199 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.399e-05/0.5547, allocations: 11.31 kB / 0.8199 GB, free: 15.6 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.0009226/0.5556, allocations: 275.8 kB / 0.8201 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.861e-05/0.5557, allocations: 25.66 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.5558, allocations: 0.6094 kB / 0.8202 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.188e-05/0.5558, allocations: 17 kB / 0.8202 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.281e-05/0.5558, allocations: 19.61 kB / 0.8202 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.5558, allocations: 3.984 kB / 0.8202 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005881/0.5564, allocations: 456.2 kB / 0.8206 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.972e-05/0.5565, allocations: 20.41 kB / 0.8207 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.343e-05/0.5565, allocations: 13.66 kB / 0.8207 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.5569, allocations: 289.3 kB / 0.8209 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.5569, allocations: 0 / 0.8209 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.305e-06/0.5569, allocations: 4 kB / 0.8209 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.5569, allocations: 1.531 kB / 0.821 GB, free: 15.25 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.0003729/0.5572, allocations: 338.6 kB / 0.8213 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.5573, allocations: 9.25 kB / 0.8213 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.905e-05/0.5573, allocations: 37.5 kB / 0.8213 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.5573, allocations: 4.891 kB / 0.8213 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.5575, allocations: 131.8 kB / 0.8214 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.5575, allocations: 5.594 kB / 0.8215 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-06/0.5575, allocations: 1.594 kB / 0.8215 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.866e-05/0.5576, allocations: 41.19 kB / 0.8215 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.5576, allocations: 0 / 0.8215 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.5576, allocations: 4 kB / 0.8215 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.5576, allocations: 0 / 0.8215 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.621e-05/0.5576, allocations: 16.73 kB / 0.8215 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001265/0.5577, allocations: 153.3 kB / 0.8217 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 3.902e-05/0.5578, allocations: 26.22 kB / 0.8217 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.789e-05/0.5578, allocations: 15.91 kB / 0.8217 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.5578, allocations: 4.094 kB / 0.8217 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.5578, allocations: 35.69 kB / 0.8217 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 6.42e-07/0.5578, allocations: 0 / 0.8217 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.558, allocations: 70.5 kB / 0.8218 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.558, allocations: 51.41 kB / 0.8219 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.5581, allocations: 165.8 kB / 0.822 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.5581, allocations: 26.98 kB / 0.822 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.5582, allocations: 98.48 kB / 0.8221 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.037e-06/0.5582, allocations: 3.953 kB / 0.8221 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.5582, allocations: 26.5 kB / 0.8222 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.296e-05/0.5583, allocations: 320.8 kB / 0.8225 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.678e-05/0.5584, allocations: 37.22 kB / 0.8225 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.719e-05/0.5584, allocations: 41.8 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.221e-05/0.5585, allocations: 73.25 kB / 0.8226 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.5585, allocations: 4.156 kB / 0.8226 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001049/0.5586, allocations: 124.5 kB / 0.8227 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.5586, allocations: 7.594 kB / 0.8227 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5586, allocations: 2.219 kB / 0.8227 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.5586, allocations: 1.281 kB / 0.8227 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.388e-05/0.5586, allocations: 4.688 kB / 0.8228 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.5586, allocations: 1.438 kB / 0.8228 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.7e-05/0.5586, allocations: 9.297 kB / 0.8228 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.5586, allocations: 5.953 kB / 0.8228 GB, free: 13.66 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.0001102/0.5588, allocations: 132.3 kB / 0.8229 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-06/0.5588, allocations: 11.86 kB / 0.8229 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.5589, allocations: 61.23 kB / 0.823 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5589, allocations: 1.062 kB / 0.823 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.5589, allocations: 0 / 0.823 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.5589, allocations: 0.75 kB / 0.823 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.122e-05/0.559, allocations: 144.5 kB / 0.8231 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.559, allocations: 1.031 kB / 0.8231 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-06/0.559, allocations: 4.781 kB / 0.8231 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.559, allocations: 1.094 kB / 0.8231 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.559, allocations: 4.031 kB / 0.8231 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.559, allocations: 0.8906 kB / 0.8231 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.559, allocations: 4.906 kB / 0.8231 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.667e-05/0.559, allocations: 74.64 kB / 0.8232 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.928e-06/0.559, allocations: 11.17 kB / 0.8232 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-06/0.5591, allocations: 4 kB / 0.8232 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-06/0.5591, allocations: 5.844 kB / 0.8232 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.094e-05/0.5591, allocations: 0.6094 kB / 0.8232 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-06/0.5591, allocations: 1.062 kB / 0.8232 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.729e-05/0.5591, allocations: 123.9 kB / 0.8233 GB, free: 13.15 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5591, allocations: 4.031 kB / 0.8233 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002399/0.5594, allocations: 87.95 kB / 0.8234 GB, free: 13.13 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.0005541/0.5599, allocations: 0.7523 MB / 0.8242 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001412/0.5601, allocations: 95.64 kB / 0.8242 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5601, allocations: 1.25 kB / 0.8242 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.085e-05/0.5601, allocations: 9.562 kB / 0.8243 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001061/0.5602, allocations: 1.375 kB / 0.8243 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.5613, allocations: 1.542 MB / 0.8258 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.164e-05/0.5613, allocations: 83.86 kB / 0.8258 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.856e-05/0.5614, allocations: 5.281 kB / 0.8258 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.119e-05/0.5614, allocations: 19.38 kB / 0.8259 GB, free: 11.14 MB / 0.6198 GB Notification: Performance of SimCode: time 4.61e-07/0.5614, allocations: 0 / 0.8259 GB, free: 11.14 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.5808, allocations: 4.104 MB / 0.8299 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.568/7.149, allocations: 7.578 kB / 0.8299 GB, free: 10.12 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.960464141797274] Failed to read output from testmodel.py, exit status != 0: 7.228706702124327 7.243871755 6.684258988 Calling exit ...