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.000774/0.000774, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009428/0.0009428, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9019/0.9019, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.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.7262/0.7262, allocations: 154.6 MB / 413.7 MB, free: 0.8281 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 3.517e-06/3.517e-06, allocations: 0 / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.435e-05/3.786e-05, allocations: 5.969 kB / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001506/0.001544, allocations: 0.5293 MB / 0.6185 GB, free: 13.24 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.003385, allocations: 1.61 MB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.882e-05/0.003423, allocations: 0 / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.003579, allocations: 19.91 kB / 0.6201 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.106e-05/0.0036, allocations: 8 kB / 0.6201 GB, free: 11.59 MB / 0.5886 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.0008102/0.004411, allocations: 286.9 kB / 0.6204 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 7.268e-05/0.004483, allocations: 23.92 kB / 0.6204 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 4.159e-05/0.004525, allocations: 4 kB / 0.6204 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 4.464e-05/0.00457, allocations: 11.98 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.004612, allocations: 23.91 kB / 0.6205 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.004628, allocations: 3.984 kB / 0.6205 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005419/0.005169, allocations: 443.1 kB / 0.6209 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 6.223e-05/0.005232, allocations: 23.92 kB / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.158e-05/0.005253, allocations: 7.938 kB / 0.6209 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003807/0.005634, allocations: 347.1 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.063e-06/0.005636, allocations: 0 / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.483e-06/0.005637, allocations: 0 / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.005642, allocations: 0 / 0.6212 GB, free: 10.43 MB / 0.5886 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.0003489/0.005991, allocations: 337.5 kB / 0.6216 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.006034, allocations: 13.47 kB / 0.6216 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.991e-05/0.006064, allocations: 34.69 kB / 0.6216 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.006092, allocations: 8.891 kB / 0.6216 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.006218, allocations: 129 kB / 0.6217 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-06/0.006225, allocations: 384 / 0.6217 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-06/0.006233, allocations: 384 / 0.6217 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.795e-05/0.006321, allocations: 34.27 kB / 0.6218 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.006328, allocations: 192 / 0.6218 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.006338, allocations: 8.109 kB / 0.6218 GB, free: 9.816 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.006342, allocations: 7.938 kB / 0.6218 GB, free: 9.809 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.38e-05/0.006366, allocations: 15.98 kB / 0.6218 GB, free: 9.793 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.006503, allocations: 148.7 kB / 0.6219 GB, free: 9.605 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 4.131e-05/0.006544, allocations: 26.52 kB / 0.622 GB, free: 9.57 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.007e-05/0.006564, allocations: 20.91 kB / 0.622 GB, free: 9.547 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.006596, allocations: 4 kB / 0.622 GB, free: 9.543 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.006615, allocations: 30.56 kB / 0.622 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.006616, allocations: 0 / 0.622 GB, free: 9.504 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001323/0.006748, allocations: 65.52 kB / 0.6221 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.006775, allocations: 55.34 kB / 0.6221 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.006881, allocations: 174.4 kB / 0.6223 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.796e-06/0.00689, allocations: 25.7 kB / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.166e-05/0.006931, allocations: 100.1 kB / 0.6224 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 7.905e-06/0.006939, allocations: 0 / 0.6224 GB, free: 9.055 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.139e-05/0.006971, allocations: 25.7 kB / 0.6224 GB, free: 9.023 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.007056, allocations: 318.8 kB / 0.6228 GB, free: 8.703 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.26e-05/0.007109, allocations: 43.98 kB / 0.6228 GB, free: 8.66 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.927e-05/0.007138, allocations: 39.97 kB / 0.6228 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.007308, allocations: 72.77 kB / 0.6229 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.00731, allocations: 0 / 0.6229 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001177/0.007428, allocations: 125.6 kB / 0.623 GB, free: 8.418 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.007441, allocations: 12 kB / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.007455, allocations: 0 / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.007467, allocations: 3.938 kB / 0.623 GB, free: 8.402 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.186e-05/0.007479, allocations: 0 / 0.623 GB, free: 8.402 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.007486, allocations: 4 kB / 0.623 GB, free: 8.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.007504, allocations: 7.953 kB / 0.623 GB, free: 8.391 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.007514, allocations: 3.984 kB / 0.6231 GB, free: 8.387 MB / 0.5886 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.0001017/0.007615, allocations: 126.8 kB / 0.6232 GB, free: 8.254 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-06/0.007622, allocations: 7.953 kB / 0.6232 GB, free: 8.246 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.007736, allocations: 61.44 kB / 0.6232 GB, free: 8.176 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.007739, allocations: 3.938 kB / 0.6232 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.007744, allocations: 0 / 0.6232 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.007746, allocations: 0 / 0.6232 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.395e-05/0.00782, allocations: 140.7 kB / 0.6234 GB, free: 7.992 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.00782, allocations: 0 / 0.6234 GB, free: 7.992 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.386e-06/0.007824, allocations: 4 kB / 0.6234 GB, free: 7.988 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.007825, allocations: 3.938 kB / 0.6234 GB, free: 7.984 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-06/0.00783, allocations: 0 / 0.6234 GB, free: 7.984 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.007832, allocations: 3.938 kB / 0.6234 GB, free: 7.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.007833, allocations: 4.031 kB / 0.6234 GB, free: 7.977 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.482e-05/0.007888, allocations: 81.06 kB / 0.6235 GB, free: 7.879 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-06/0.007896, allocations: 7.953 kB / 0.6235 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.007907, allocations: 0 / 0.6235 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.298e-06/0.007916, allocations: 7.875 kB / 0.6235 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.00793, allocations: 3.938 kB / 0.6235 GB, free: 7.859 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.007932, allocations: 4 kB / 0.6235 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.865e-05/0.007991, allocations: 122.7 kB / 0.6236 GB, free: 7.738 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.007991, allocations: 0 / 0.6236 GB, free: 7.738 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002529/0.008244, allocations: 87.81 kB / 0.6237 GB, free: 7.652 MB / 0.5886 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.000665/0.008909, allocations: 0.7639 MB / 0.6244 GB, free: 6.891 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001626/0.009071, allocations: 97.59 kB / 0.6245 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.00908, allocations: 4 kB / 0.6245 GB, free: 6.785 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.353e-06/0.009087, allocations: 8.094 kB / 0.6245 GB, free: 6.777 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.009217, allocations: 11.94 kB / 0.6246 GB, free: 6.766 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.01039, allocations: 1.546 MB / 0.6261 GB, free: 5.137 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.15e-05/0.01044, allocations: 83.3 kB / 0.6261 GB, free: 5.035 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.916e-05/0.01046, allocations: 0 / 0.6261 GB, free: 5.035 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.01049, allocations: 16.5 kB / 0.6262 GB, free: 5.02 MB / 0.5886 GB Notification: Performance of SimCode: time 4.41e-07/0.01049, allocations: 4 kB / 0.6262 GB, free: 5.016 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.03074, allocations: 4.237 MB / 0.6303 GB, free: 0.8984 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.888/6.918, allocations: 11.05 kB / 0.6303 GB, free: 0.8984 MB / 0.5886 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.625307775102556] Failed to read output from testmodel.py, exit status != 0: 6.999251295812428 7.007571326 7.000281642 Calling exit ...