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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 3.0.0-master/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 3.0.0-master/package.mo): time 1.075/1.075, allocations: 175.8 MB / 478.4 MB, free: 8.488 MB / 382.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 68.7 kB / 0.6652 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1917, allocations: 94.54 MB / 0.7575 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001852/0.1935, allocations: 0.5242 MB / 0.758 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.36/0.5536, allocations: 1.599 MB / 0.7596 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.524e-05/0.5536, allocations: 0.875 kB / 0.7596 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.5538, allocations: 23.14 kB / 0.7596 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.704e-05/0.5538, allocations: 12.38 kB / 0.7596 GB, free: 7.965 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0009607/0.5548, allocations: 244.6 kB / 0.7598 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.083e-05/0.5548, allocations: 23.98 kB / 0.7599 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.5549, allocations: 5.25 kB / 0.7599 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.642e-05/0.5549, allocations: 10.66 kB / 0.7599 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.692e-05/0.555, allocations: 21.38 kB / 0.7599 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.087e-05/0.555, allocations: 0.8438 kB / 0.7599 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006013/0.5556, allocations: 366.6 kB / 0.7602 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.663e-05/0.5556, allocations: 22.05 kB / 0.7603 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.5556, allocations: 20.84 kB / 0.7603 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004326/0.5561, allocations: 282 kB / 0.7605 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.5561, allocations: 1.438 kB / 0.7605 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5561, allocations: 1.969 kB / 0.7605 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.5561, allocations: 1.562 kB / 0.7606 GB, free: 7.914 MB / 0.5762 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.0003512/0.5564, allocations: 413.3 kB / 0.7609 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.5565, allocations: 10.09 kB / 0.761 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.99e-05/0.5565, allocations: 31.27 kB / 0.761 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.572e-05/0.5565, allocations: 7.172 kB / 0.761 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.5566, allocations: 181.9 kB / 0.7612 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-06/0.5566, allocations: 1.094 kB / 0.7612 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.5567, allocations: 7.781 kB / 0.7612 GB, free: 7.262 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.96e-05/0.5567, allocations: 42.28 kB / 0.7612 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.5567, allocations: 3.188 kB / 0.7612 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-06/0.5568, allocations: 0 / 0.7612 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.5568, allocations: 1.625 kB / 0.7612 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.925e-05/0.5568, allocations: 15.81 kB / 0.7612 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000122/0.5569, allocations: 170.8 kB / 0.7614 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.118e-05/0.5569, allocations: 26.83 kB / 0.7614 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.375e-05/0.557, allocations: 17.69 kB / 0.7614 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.557, allocations: 8.594 kB / 0.7614 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.099e-05/0.557, allocations: 37.52 kB / 0.7615 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.557, allocations: 0 / 0.7615 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.5572, allocations: 61.59 kB / 0.7615 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.708e-05/0.5572, allocations: 53.72 kB / 0.7616 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.5573, allocations: 174.6 kB / 0.7618 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.5573, allocations: 28.7 kB / 0.7618 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/0.5573, allocations: 97.95 kB / 0.7619 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.444e-06/0.5574, allocations: 0 / 0.7619 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.653e-05/0.5574, allocations: 25.48 kB / 0.7619 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.5574, allocations: 324.2 kB / 0.7622 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.353e-05/0.5575, allocations: 41.38 kB / 0.7623 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.715e-05/0.5575, allocations: 40.23 kB / 0.7623 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.298e-05/0.5576, allocations: 69.7 kB / 0.7624 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5576, allocations: 0 / 0.7624 GB, free: 6.305 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001439/0.5578, allocations: 132.2 kB / 0.7625 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.5578, allocations: 9.484 kB / 0.7625 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.5578, allocations: 1.812 kB / 0.7625 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.5578, allocations: 2.156 kB / 0.7625 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.399e-05/0.5578, allocations: 0.7969 kB / 0.7625 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.5578, allocations: 1.062 kB / 0.7625 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.276e-05/0.5578, allocations: 14.8 kB / 0.7625 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.5579, allocations: 1.734 kB / 0.7625 GB, free: 6.25 MB / 0.5762 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.0001287/0.558, allocations: 128.2 kB / 0.7626 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.558, allocations: 10.98 kB / 0.7626 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.5581, allocations: 64.11 kB / 0.7627 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5581, allocations: 1.531 kB / 0.7627 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5581, allocations: 0.5156 kB / 0.7627 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.5581, allocations: 0.7812 kB / 0.7627 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.172e-05/0.5582, allocations: 168.2 kB / 0.7629 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5582, allocations: 1.734 kB / 0.7629 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-06/0.5582, allocations: 4.75 kB / 0.7629 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.5582, allocations: 2.078 kB / 0.7629 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-06/0.5582, allocations: 0.5938 kB / 0.7629 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.5582, allocations: 8.578 kB / 0.7629 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5582, allocations: 0.5 kB / 0.7629 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.098e-05/0.5583, allocations: 80.48 kB / 0.763 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.994e-05/0.5583, allocations: 88.22 kB / 0.763 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.5583, allocations: 0.5156 kB / 0.763 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.438e-05/0.5583, allocations: 6.422 kB / 0.7631 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.5583, allocations: 0 / 0.7631 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.5583, allocations: 1.812 kB / 0.7631 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.848e-05/0.5584, allocations: 127 kB / 0.7632 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.5584, allocations: 0 / 0.7632 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000357/0.5588, allocations: 86.44 kB / 0.7633 GB, free: 5.629 MB / 0.5762 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.0006033/0.5594, allocations: 0.7507 MB / 0.764 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001676/0.5595, allocations: 93.56 kB / 0.7641 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.5595, allocations: 0 / 0.7641 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.686e-05/0.5596, allocations: 9.141 kB / 0.7641 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.5597, allocations: 8.734 kB / 0.7641 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.561, allocations: 1.545 MB / 0.7656 GB, free: 19.86 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.5613, allocations: 0.6977 MB / 0.7663 GB, free: 19.16 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.905e-05/0.5613, allocations: 2.797 kB / 0.7663 GB, free: 19.16 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.851e-05/0.5613, allocations: 20.19 kB / 0.7663 GB, free: 19.15 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/0.5613, allocations: 0 / 0.7663 GB, free: 19.15 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.5885, allocations: 3.488 MB / 0.7697 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.63, allocations: 18.16 kB / 0.7697 GB, free: 18.61 MB / 0.5919 GB " [Timeout remaining time 651] (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: 12.440874869935215] Failed to read output from testmodel.py, exit status != 0: 8.699277519714087 8.711356127 8.152135508 Calling exit ...