Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.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.0007723/0.0007723, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.0009014/0.0009014, allocations: 208.1 kB / 22.25 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.9665/0.9665, 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 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.7944/0.7944, allocations: 203.5 MB / 0.5039 GB, free: 10.7 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_2d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d",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.001254/0.001254, allocations: 71.98 kB / 0.7178 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5471/0.5483, allocations: 102 MB / 0.8173 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001339/0.5497, allocations: 0.5209 MB / 0.8179 GB, free: 0.9336 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.5513, allocations: 1.612 MB / 0.8194 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.646e-05/0.5513, allocations: 0 / 0.8194 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.5515, allocations: 61.28 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.383e-05/0.5516, allocations: 33.83 kB / 0.8195 GB, free: 15.82 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.0007504/0.5523, allocations: 277 kB / 0.8198 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.236e-05/0.5524, allocations: 36.61 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.5525, allocations: 3.609 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.849e-05/0.5525, allocations: 25.67 kB / 0.8198 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.5526, allocations: 47.75 kB / 0.8199 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.5526, allocations: 1.688 kB / 0.8199 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006157/0.5532, allocations: 452 kB / 0.8203 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.936e-05/0.5533, allocations: 29.95 kB / 0.8204 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.658e-05/0.5533, allocations: 17.62 kB / 0.8204 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.5537, allocations: 306.9 kB / 0.8207 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.5537, allocations: 1.438 kB / 0.8207 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.904e-06/0.5537, allocations: 0 / 0.8207 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.5537, allocations: 4 kB / 0.8207 GB, free: 15.45 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.0003511/0.554, allocations: 365.2 kB / 0.821 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.5541, allocations: 11.89 kB / 0.821 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.69e-05/0.5541, allocations: 30.75 kB / 0.8211 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.397e-05/0.5541, allocations: 15.12 kB / 0.8211 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.5542, allocations: 136.2 kB / 0.8212 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.5543, allocations: 1.719 kB / 0.8212 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.5543, allocations: 5.656 kB / 0.8212 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.926e-05/0.5544, allocations: 42.5 kB / 0.8213 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.5544, allocations: 0 / 0.8213 GB, free: 14.88 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.5544, allocations: 4 kB / 0.8213 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.5544, allocations: 0 / 0.8213 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.522e-05/0.5544, allocations: 18.39 kB / 0.8213 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001489/0.5545, allocations: 159.4 kB / 0.8214 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.514e-05/0.5546, allocations: 26.2 kB / 0.8214 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.03e-05/0.5546, allocations: 16.27 kB / 0.8215 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.5547, allocations: 5.719 kB / 0.8215 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.5547, allocations: 39.94 kB / 0.8215 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.5547, allocations: 0 / 0.8215 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.000138/0.5548, allocations: 72.22 kB / 0.8216 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.5548, allocations: 63.34 kB / 0.8216 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.555, allocations: 212 kB / 0.8218 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.555, allocations: 25.7 kB / 0.8219 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.351e-05/0.555, allocations: 100.5 kB / 0.822 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.638e-06/0.555, allocations: 3.953 kB / 0.822 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.5551, allocations: 29.12 kB / 0.822 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.79e-05/0.5552, allocations: 325.2 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.612e-05/0.5552, allocations: 56.41 kB / 0.8224 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.786e-05/0.5552, allocations: 55.45 kB / 0.8224 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.205e-05/0.5553, allocations: 82.27 kB / 0.8225 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5553, allocations: 4.031 kB / 0.8225 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001478/0.5555, allocations: 173 kB / 0.8227 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.5555, allocations: 6.328 kB / 0.8227 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.5555, allocations: 9.031 kB / 0.8227 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.5555, allocations: 1.062 kB / 0.8227 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.28e-05/0.5555, allocations: 4.844 kB / 0.8227 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.5555, allocations: 1.5 kB / 0.8227 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.145e-05/0.5555, allocations: 13.31 kB / 0.8227 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.5556, allocations: 2.203 kB / 0.8227 GB, free: 13.78 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001174/0.5557, allocations: 133.4 kB / 0.8228 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-06/0.5557, allocations: 15.3 kB / 0.8228 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.622e-05/0.5558, allocations: 64.58 kB / 0.8229 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.5558, allocations: 0 / 0.8229 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.5558, allocations: 1.094 kB / 0.8229 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.5558, allocations: 0.6562 kB / 0.8229 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.376e-05/0.5559, allocations: 148.5 kB / 0.823 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.5559, allocations: 1.188 kB / 0.823 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-06/0.5559, allocations: 4.688 kB / 0.823 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5559, allocations: 5 kB / 0.823 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.5559, allocations: 4.688 kB / 0.8231 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.5559, allocations: 1.062 kB / 0.8231 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5559, allocations: 0 / 0.8231 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.301e-05/0.5559, allocations: 86.11 kB / 0.8231 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.241e-05/0.556, allocations: 16.25 kB / 0.8232 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.556, allocations: 1.844 kB / 0.8232 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.875e-06/0.556, allocations: 0 / 0.8232 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.185e-05/0.556, allocations: 1.875 kB / 0.8232 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.21e-07/0.556, allocations: 0 / 0.8232 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.324e-05/0.5561, allocations: 159.4 kB / 0.8233 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5561, allocations: 0 / 0.8233 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002561/0.5563, allocations: 88 kB / 0.8234 GB, free: 13.24 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.0005581/0.5569, allocations: 0.7694 MB / 0.8241 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001536/0.557, allocations: 115.5 kB / 0.8243 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.557, allocations: 4.094 kB / 0.8243 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.2e-05/0.5571, allocations: 11.36 kB / 0.8243 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001128/0.5572, allocations: 8.906 kB / 0.8243 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.5585, allocations: 1.807 MB / 0.826 GB, free: 11.28 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.421e-05/0.5586, allocations: 91.47 kB / 0.8261 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.122e-05/0.5586, allocations: 5.781 kB / 0.8261 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/0.5587, allocations: 31.14 kB / 0.8262 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of SimCode: time 4.61e-07/0.5587, allocations: 0 / 0.8262 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.5772, allocations: 4.472 MB / 0.8305 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.687/7.264, allocations: 4.234 kB / 0.8305 GB, free: 10.14 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_2d.fmu > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.201813343912363] Failed to read output from testmodel.py, exit status != 0: 7.342992960009724 7.35318479 6.797428404 Calling exit ...