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.0009076/0.0009076, allocations: 101.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.001721/0.001721, allocations: 209.2 kB / 22.24 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.9759/0.9759, 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.7904/0.7904, allocations: 203.5 MB / 0.5039 GB, free: 10.71 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_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: 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.001071/0.001071, allocations: 74.81 kB / 0.7178 GB, free: 4.441 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6162/0.6172, allocations: 102 MB / 0.8173 GB, free: 1.254 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001463/0.6187, allocations: 0.5251 MB / 0.8179 GB, free: 0.9375 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001981/0.6207, allocations: 1.615 MB / 0.8194 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.678e-05/0.6207, allocations: 3.938 kB / 0.8194 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.6209, allocations: 18.34 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 2.866e-05/0.621, allocations: 11.73 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.0009396/0.6219, allocations: 281.4 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.435e-05/0.622, allocations: 21.02 kB / 0.8198 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.175e-05/0.622, allocations: 8.734 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.482e-05/0.6221, allocations: 18.06 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.434e-05/0.6221, allocations: 16.67 kB / 0.8198 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.6221, allocations: 0 / 0.8198 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006938/0.6228, allocations: 456.3 kB / 0.8202 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.746e-05/0.6229, allocations: 17.95 kB / 0.8202 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.913e-05/0.6229, allocations: 11.62 kB / 0.8203 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.6234, allocations: 295.6 kB / 0.8205 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.6234, allocations: 4.547 kB / 0.8205 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.927e-06/0.6234, allocations: 3.469 kB / 0.8205 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.6234, allocations: 0 / 0.8205 GB, free: 15.47 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.0004335/0.6238, allocations: 341.5 kB / 0.8209 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.6239, allocations: 11.59 kB / 0.8209 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.567e-05/0.6239, allocations: 31.97 kB / 0.8209 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.6239, allocations: 6.672 kB / 0.8209 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.6241, allocations: 118.9 kB / 0.821 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.6241, allocations: 384 / 0.821 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-06/0.6241, allocations: 384 / 0.821 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.6242, allocations: 44.03 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.6242, allocations: 3.938 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.6242, allocations: 0 / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.6242, allocations: 0.875 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.901e-05/0.6243, allocations: 15.92 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.6244, allocations: 154 kB / 0.8212 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.392e-05/0.6245, allocations: 23.73 kB / 0.8213 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.332e-05/0.6245, allocations: 13.7 kB / 0.8213 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.6245, allocations: 5.906 kB / 0.8213 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.6246, allocations: 37.19 kB / 0.8213 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.6246, allocations: 4 kB / 0.8213 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001504/0.6247, allocations: 62.86 kB / 0.8214 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.6247, allocations: 56.25 kB / 0.8214 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.6249, allocations: 173.3 kB / 0.8216 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.6249, allocations: 25.7 kB / 0.8216 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/0.6249, allocations: 99.47 kB / 0.8217 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.6249, allocations: 3.953 kB / 0.8217 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.625, allocations: 26.55 kB / 0.8218 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.6251, allocations: 320.5 kB / 0.8221 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.525e-05/0.6251, allocations: 35.42 kB / 0.8221 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.352e-05/0.6252, allocations: 44.81 kB / 0.8221 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.618e-05/0.6252, allocations: 75.03 kB / 0.8222 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.6252, allocations: 4 kB / 0.8222 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001418/0.6254, allocations: 131.6 kB / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.6254, allocations: 4.875 kB / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.6254, allocations: 1.312 kB / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.6254, allocations: 1.219 kB / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.538e-05/0.6254, allocations: 0 / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.6255, allocations: 0 / 0.8223 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.439e-05/0.6255, allocations: 10.02 kB / 0.8224 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.6255, allocations: 6.188 kB / 0.8224 GB, free: 13.88 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.0001718/0.6257, allocations: 130.1 kB / 0.8225 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-06/0.6257, allocations: 11.23 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.6258, allocations: 67.64 kB / 0.8226 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.6258, allocations: 0 / 0.8226 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.6258, allocations: 3.938 kB / 0.8226 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.6258, allocations: 0 / 0.8226 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.855e-05/0.6259, allocations: 140.8 kB / 0.8227 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.6259, allocations: 0.9375 kB / 0.8227 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-06/0.6259, allocations: 7.969 kB / 0.8227 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6259, allocations: 0 / 0.8227 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.6259, allocations: 4.281 kB / 0.8227 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.6259, allocations: 0 / 0.8227 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6259, allocations: 0 / 0.8227 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.066e-05/0.626, allocations: 76.38 kB / 0.8228 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.165e-05/0.626, allocations: 12.64 kB / 0.8228 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.626, allocations: 0.8438 kB / 0.8228 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-06/0.626, allocations: 0 / 0.8228 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.626, allocations: 6.375 kB / 0.8228 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-06/0.626, allocations: 4.031 kB / 0.8228 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.737e-05/0.6261, allocations: 119.7 kB / 0.8229 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.6261, allocations: 0 / 0.8229 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002828/0.6264, allocations: 88.89 kB / 0.823 GB, free: 13.34 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.0006658/0.627, allocations: 0.7518 MB / 0.8237 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001552/0.6272, allocations: 100.6 kB / 0.8238 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.6272, allocations: 0 / 0.8238 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.969e-06/0.6272, allocations: 9.453 kB / 0.8238 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.6273, allocations: 4.438 kB / 0.8238 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.6286, allocations: 1.546 MB / 0.8254 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.741e-05/0.6286, allocations: 83.7 kB / 0.8254 GB, free: 11.38 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.507e-05/0.6287, allocations: 2.844 kB / 0.8254 GB, free: 11.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.646e-05/0.6287, allocations: 26.52 kB / 0.8255 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of SimCode: time 1.302e-06/0.6287, allocations: 0 / 0.8255 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.6568, allocations: 4.089 MB / 0.8295 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.731/7.388, allocations: 7.891 kB / 0.8295 GB, free: 10.34 MB / 0.6198 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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: 10.466427837964147] Failed to read output from testmodel.py, exit status != 0: 7.466627070214599 7.478688403 6.853138817 Calling exit ...