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.001177/0.001177, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001126/0.001126, allocations: 165.9 kB / 22.46 MB, free: 2.109 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.8909/0.8909, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.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.713/0.713, allocations: 154.6 MB / 413.8 MB, free: 0.7891 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 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: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.171e-05/1.298e-05, allocations: 5.094 kB / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.0009163/0.0009293, allocations: 0.5115 MB / 0.6186 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001491/0.00242, allocations: 1.622 MB / 0.6201 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.978e-05/0.00245, allocations: 3.938 kB / 0.6201 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.002584, allocations: 19.91 kB / 0.6202 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 2.021e-05/0.002605, allocations: 11.92 kB / 0.6202 GB, free: 11.5 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.0006341/0.003239, allocations: 279 kB / 0.6204 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 5.848e-05/0.003297, allocations: 23.91 kB / 0.6205 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.293e-05/0.00333, allocations: 4 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 3.74e-05/0.003368, allocations: 15.92 kB / 0.6205 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 3.454e-05/0.003402, allocations: 15.98 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.003415, allocations: 0 / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000444/0.003859, allocations: 451 kB / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 4.595e-05/0.003905, allocations: 19.98 kB / 0.621 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.003923, allocations: 11.94 kB / 0.621 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.004242, allocations: 347.1 kB / 0.6213 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.004245, allocations: 7.938 kB / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.062e-06/0.004246, allocations: 0 / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.486e-06/0.00425, allocations: 0 / 0.6213 GB, free: 10.35 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.0002975/0.004547, allocations: 329.6 kB / 0.6216 GB, free: 10 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.004582, allocations: 12.03 kB / 0.6216 GB, free: 9.988 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.004609, allocations: 34.73 kB / 0.6217 GB, free: 9.945 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.886e-05/0.004628, allocations: 4.891 kB / 0.6217 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.004739, allocations: 121.7 kB / 0.6218 GB, free: 9.797 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-06/0.004748, allocations: 8.375 kB / 0.6218 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-06/0.004754, allocations: 384 / 0.6218 GB, free: 9.789 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.959e-05/0.004834, allocations: 42.19 kB / 0.6218 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.00484, allocations: 192 / 0.6218 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-06/0.004847, allocations: 4.125 kB / 0.6218 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.004852, allocations: 3.984 kB / 0.6218 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.274e-05/0.004874, allocations: 15.98 kB / 0.6219 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.004994, allocations: 148.7 kB / 0.622 GB, free: 9.531 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 3.634e-05/0.005031, allocations: 26.56 kB / 0.622 GB, free: 9.496 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.583e-05/0.005046, allocations: 8.922 kB / 0.622 GB, free: 9.484 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.005075, allocations: 12 kB / 0.622 GB, free: 9.473 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.005094, allocations: 42.48 kB / 0.6221 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.005094, allocations: 0 / 0.6221 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001306/0.005225, allocations: 61.58 kB / 0.6221 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.005254, allocations: 51.41 kB / 0.6222 GB, free: 9.293 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.005357, allocations: 173.5 kB / 0.6224 GB, free: 9.117 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.396e-06/0.005365, allocations: 25.7 kB / 0.6224 GB, free: 9.086 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.124e-05/0.005407, allocations: 100 kB / 0.6225 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 7.604e-06/0.005414, allocations: 0 / 0.6225 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.005445, allocations: 25.7 kB / 0.6225 GB, free: 8.953 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.096e-05/0.005516, allocations: 327 kB / 0.6228 GB, free: 8.625 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.56e-05/0.005552, allocations: 35.98 kB / 0.6228 GB, free: 8.59 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.991e-05/0.005582, allocations: 47.92 kB / 0.6229 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.846e-05/0.00564, allocations: 75.27 kB / 0.623 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.005642, allocations: 0 / 0.623 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.213e-05/0.005735, allocations: 125.6 kB / 0.6231 GB, free: 8.34 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.005747, allocations: 8 kB / 0.6231 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.005761, allocations: 0 / 0.6231 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.005774, allocations: 3.938 kB / 0.6231 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.354e-05/0.005787, allocations: 0 / 0.6231 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.005793, allocations: 0 / 0.6231 GB, free: 8.328 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.86e-05/0.005812, allocations: 15.95 kB / 0.6231 GB, free: 8.312 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-06/0.005821, allocations: 0 / 0.6231 GB, free: 8.312 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 9.356e-05/0.005915, allocations: 125.4 kB / 0.6232 GB, free: 8.184 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.591e-06/0.00592, allocations: 7.953 kB / 0.6232 GB, free: 8.176 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.366e-05/0.006004, allocations: 69.38 kB / 0.6233 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.006006, allocations: 3.938 kB / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.00601, allocations: 0 / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.006012, allocations: 0 / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.538e-05/0.006077, allocations: 136.8 kB / 0.6234 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.006085, allocations: 12.02 kB / 0.6234 GB, free: 7.91 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-06/0.006088, allocations: 0 / 0.6234 GB, free: 7.91 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.02e-07/0.006089, allocations: 4 kB / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-06/0.006093, allocations: 0 / 0.6235 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.006096, allocations: 3.938 kB / 0.6235 GB, free: 7.902 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.006097, allocations: 0 / 0.6235 GB, free: 7.902 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.816e-05/0.006145, allocations: 77.02 kB / 0.6235 GB, free: 7.809 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.938e-06/0.006155, allocations: 11.95 kB / 0.6235 GB, free: 7.797 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.488e-06/0.006164, allocations: 0 / 0.6235 GB, free: 7.797 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-06/0.006172, allocations: 3.938 kB / 0.6235 GB, free: 7.793 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.006184, allocations: 8.016 kB / 0.6236 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-06/0.006185, allocations: 0 / 0.6236 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.303e-05/0.006238, allocations: 122.7 kB / 0.6237 GB, free: 7.668 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006239, allocations: 0 / 0.6237 GB, free: 7.668 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000202/0.006441, allocations: 87.8 kB / 0.6238 GB, free: 7.582 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.0005612/0.007002, allocations: 0.7704 MB / 0.6245 GB, free: 6.809 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001515/0.007153, allocations: 93.61 kB / 0.6246 GB, free: 6.711 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.007155, allocations: 0 / 0.6246 GB, free: 6.711 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.317e-06/0.007164, allocations: 11.98 kB / 0.6246 GB, free: 6.699 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.007287, allocations: 11.66 kB / 0.6246 GB, free: 6.691 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009814/0.008268, allocations: 1.532 MB / 0.6261 GB, free: 5.074 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.762e-05/0.008326, allocations: 75.33 kB / 0.6262 GB, free: 4.98 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 1.84e-05/0.008344, allocations: 160 / 0.6262 GB, free: 4.98 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.254e-05/0.008377, allocations: 28.42 kB / 0.6262 GB, free: 4.953 MB / 0.5886 GB Notification: Performance of SimCode: time 5.61e-07/0.008377, allocations: 0 / 0.6262 GB, free: 4.953 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.02589, allocations: 4.251 MB / 0.6304 GB, free: 0.832 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.684/6.71, allocations: 4.922 kB / 0.6304 GB, free: 0.8281 MB / 0.5886 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: 9.293817054480314] Failed to read output from testmodel.py, exit status != 0: 6.789586964063346 6.798789813 6.792875705 Calling exit ...