Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.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.001323/0.001323, allocations: 114.7 kB / 17.6 MB, free: 4.688 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.001337/0.001337, allocations: 189.9 kB / 20.78 MB, free: 1.52 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.428/1.428, allocations: 225.6 MB / 249.4 MB, free: 3.168 MB / 190.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.065/1.065, allocations: 175.7 MB / 480.2 MB, free: 2.766 MB / 366.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_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00273/0.00273, allocations: 67.48 kB / 0.6679 GB, free: 10.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.216, allocations: 94.53 MB / 0.7602 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001839/0.2178, allocations: 0.5242 MB / 0.7607 GB, free: 296 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002643/0.2205, allocations: 1.621 MB / 0.7623 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.909e-05/0.2205, allocations: 0 / 0.7623 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002502/0.2208, allocations: 67.83 kB / 0.7623 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.997e-05/0.2208, allocations: 27.91 kB / 0.7624 GB, free: 14.56 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.001097/0.2219, allocations: 251.3 kB / 0.7626 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.222, allocations: 35.89 kB / 0.7626 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.761e-05/0.2221, allocations: 4.281 kB / 0.7626 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.542e-05/0.2221, allocations: 19.97 kB / 0.7627 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.075e-05/0.2222, allocations: 43.88 kB / 0.7627 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.499e-05/0.2222, allocations: 4 kB / 0.7627 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000731/0.2229, allocations: 359.4 kB / 0.763 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.486e-05/0.223, allocations: 31.92 kB / 0.7631 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.815e-05/0.223, allocations: 27.69 kB / 0.7631 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005035/0.2235, allocations: 295.1 kB / 0.7634 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.2236, allocations: 4 kB / 0.7634 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2236, allocations: 0 / 0.7634 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.2236, allocations: 0 / 0.7634 GB, free: 13.5 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.0005351/0.2241, allocations: 442.3 kB / 0.7638 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.2241, allocations: 12.03 kB / 0.7638 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.2242, allocations: 34.73 kB / 0.7638 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.661e-05/0.2242, allocations: 12.84 kB / 0.7639 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.2244, allocations: 188.7 kB / 0.764 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.2244, allocations: 384 / 0.764 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.2244, allocations: 4.375 kB / 0.764 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.855e-05/0.2245, allocations: 45.75 kB / 0.7641 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2245, allocations: 0 / 0.7641 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.473e-06/0.2245, allocations: 0 / 0.7641 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2245, allocations: 0 / 0.7641 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.631e-05/0.2246, allocations: 19.98 kB / 0.7641 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002189/0.2248, allocations: 189.6 kB / 0.7643 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.61e-05/0.2249, allocations: 26.56 kB / 0.7643 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.879e-05/0.2249, allocations: 16.92 kB / 0.7643 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.396e-05/0.2249, allocations: 11.92 kB / 0.7643 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.225, allocations: 34.5 kB / 0.7644 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.225, allocations: 0 / 0.7644 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001992/0.2252, allocations: 69.59 kB / 0.7644 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.2252, allocations: 55.53 kB / 0.7645 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.2254, allocations: 210.2 kB / 0.7647 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.2254, allocations: 25.7 kB / 0.7647 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.2255, allocations: 108.1 kB / 0.7648 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/0.2255, allocations: 3.953 kB / 0.7648 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.525e-05/0.2256, allocations: 37.7 kB / 0.7649 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.2257, allocations: 322.8 kB / 0.7652 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.583e-05/0.2258, allocations: 51.98 kB / 0.7652 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.305e-05/0.2259, allocations: 65.17 kB / 0.7653 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.226, allocations: 90.75 kB / 0.7654 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.226, allocations: 0 / 0.7654 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002156/0.2262, allocations: 169.5 kB / 0.7655 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2262, allocations: 4 kB / 0.7655 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.2262, allocations: 4 kB / 0.7655 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.2263, allocations: 0 / 0.7655 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.26e-05/0.2263, allocations: 3.938 kB / 0.7655 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.2263, allocations: 0 / 0.7655 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.122e-05/0.2263, allocations: 7.953 kB / 0.7655 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-06/0.2263, allocations: 4.062 kB / 0.7656 GB, free: 11.05 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: 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.0001869/0.2265, allocations: 133.8 kB / 0.7657 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.2265, allocations: 15.84 kB / 0.7657 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.2267, allocations: 62.25 kB / 0.7658 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2267, allocations: 0 / 0.7658 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.2267, allocations: 11.91 kB / 0.7658 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2267, allocations: 0 / 0.7658 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.2268, allocations: 185.7 kB / 0.7659 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.2268, allocations: 4 kB / 0.7659 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-06/0.2268, allocations: 3.938 kB / 0.766 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2268, allocations: 0 / 0.766 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/0.2268, allocations: 0 / 0.766 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2268, allocations: 0 / 0.766 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2268, allocations: 4 kB / 0.766 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.733e-05/0.2269, allocations: 84.95 kB / 0.766 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.227, allocations: 100.9 kB / 0.7661 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.227, allocations: 0 / 0.7661 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.659e-05/0.227, allocations: 4 kB / 0.7661 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.611e-05/0.227, allocations: 4 kB / 0.7661 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.227, allocations: 0 / 0.7661 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001247/0.2272, allocations: 148.3 kB / 0.7663 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.2272, allocations: 0 / 0.7663 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003365/0.2275, allocations: 87.86 kB / 0.7664 GB, free: 10.11 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.000845/0.2284, allocations: 0.7479 MB / 0.7671 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001907/0.2285, allocations: 113.7 kB / 0.7672 GB, free: 9.234 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2285, allocations: 0 / 0.7672 GB, free: 9.234 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.909e-05/0.2286, allocations: 12 kB / 0.7672 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001629/0.2287, allocations: 11.88 kB / 0.7672 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.2306, allocations: 1.831 MB / 0.769 GB, free: 7.297 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.2309, allocations: 0.704 MB / 0.7697 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.053e-05/0.231, allocations: 7.984 kB / 0.7697 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.094e-05/0.231, allocations: 23.42 kB / 0.7697 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.231, allocations: 0 / 0.7697 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.2568, allocations: 3.866 MB / 0.7735 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/8.504, allocations: 6.484 kB / 0.7735 GB, free: 2.746 MB / 0.5762 GB " [Timeout remaining time 651] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.271777237998322] Failed to read output from testmodel.py, exit status != 0: 8.57614531100262 8.599924248 8.371786201 Calling exit ...