Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.001571, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00232/0.00232, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.427/2.427, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.4/4.4, allocations: 409.2 MB / 0.6838 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005829/0.0005831, allocations: 12 kB / 0.8375 GB, free: 6.555 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.218/1.219, allocations: 146.8 MB / 0.9809 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.0009867/1.22, allocations: 244.1 kB / 0.9811 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003544/1.224, allocations: 1.543 MB / 0.9826 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.209e-05/1.224, allocations: 3.938 kB / 0.9826 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002467/1.224, allocations: 19.97 kB / 0.9826 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.451e-05/1.224, allocations: 8 kB / 0.9826 GB, free: 4.457 MB / 0.7325 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.001237/1.225, allocations: 187.4 kB / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.849e-05/1.225, allocations: 15.97 kB / 0.9828 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.321e-05/1.225, allocations: 4 kB / 0.9828 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.022e-05/1.226, allocations: 19.86 kB / 0.9828 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.905e-05/1.226, allocations: 11.98 kB / 0.9829 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/1.226, allocations: 0 / 0.9829 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000618/1.226, allocations: 215.7 kB / 0.9831 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.733e-05/1.226, allocations: 19.98 kB / 0.9831 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.351e-05/1.226, allocations: 29.64 kB / 0.9831 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004451/1.227, allocations: 203.6 kB / 0.9833 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/1.227, allocations: 4 kB / 0.9833 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.417e-06/1.227, allocations: 0 / 0.9833 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.083e-05/1.227, allocations: 3.938 kB / 0.9833 GB, free: 3.75 MB / 0.7325 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.0006003/1.227, allocations: 401.2 kB / 0.9837 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/1.228, allocations: 8.031 kB / 0.9837 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.826e-05/1.228, allocations: 30.56 kB / 0.9837 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/1.228, allocations: 7.906 kB / 0.9837 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/1.228, allocations: 182.9 kB / 0.9839 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/1.228, allocations: 0 / 0.9839 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/1.228, allocations: 4 kB / 0.9839 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/1.228, allocations: 45.58 kB / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/1.228, allocations: 0 / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/1.228, allocations: 0 / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/1.228, allocations: 0 / 0.984 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.533e-05/1.228, allocations: 16 kB / 0.984 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002928/1.228, allocations: 177.5 kB / 0.9841 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.224e-05/1.229, allocations: 26.56 kB / 0.9842 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/1.229, allocations: 8.062 kB / 0.9842 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/1.229, allocations: 34.5 kB / 0.9842 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/1.229, allocations: 0 / 0.9842 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0002667/1.229, allocations: 65.55 kB / 0.9843 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/1.229, allocations: 51.41 kB / 0.9843 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/1.229, allocations: 168.5 kB / 0.9845 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/1.229, allocations: 25.7 kB / 0.9845 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.657e-05/1.229, allocations: 108.1 kB / 0.9846 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/1.229, allocations: 3.984 kB / 0.9846 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/1.229, allocations: 0 / 0.9846 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001893/1.23, allocations: 322.8 kB / 0.9849 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.497e-05/1.23, allocations: 35.98 kB / 0.985 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.664e-05/1.23, allocations: 39.98 kB / 0.985 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.435e-05/1.23, allocations: 39.98 kB / 0.985 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.23, allocations: 3.938 kB / 0.985 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002355/1.23, allocations: 125.6 kB / 0.9852 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/1.23, allocations: 8.062 kB / 0.9852 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/1.23, allocations: 4 kB / 0.9852 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/1.23, allocations: 0 / 0.9852 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.952e-05/1.23, allocations: 7.953 kB / 0.9852 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/1.23, allocations: 0 / 0.9852 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.219e-05/1.23, allocations: 11.84 kB / 0.9852 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/1.23, allocations: 0 / 0.9852 GB, free: 1.609 MB / 0.7325 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002094/1.231, allocations: 121.8 kB / 0.9853 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/1.231, allocations: 7.906 kB / 0.9853 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/1.231, allocations: 65.48 kB / 0.9854 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/1.231, allocations: 0 / 0.9854 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.231, allocations: 11.89 kB / 0.9854 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/1.231, allocations: 3.984 kB / 0.9854 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/1.231, allocations: 169.7 kB / 0.9855 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/1.231, allocations: 0 / 0.9855 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.919e-06/1.231, allocations: 0 / 0.9855 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/1.231, allocations: 0 / 0.9855 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/1.231, allocations: 0 / 0.9855 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/1.231, allocations: 4 kB / 0.9856 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/1.231, allocations: 4.031 kB / 0.9856 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/1.231, allocations: 80.98 kB / 0.9856 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.19e-05/1.231, allocations: 81.02 kB / 0.9857 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/1.231, allocations: 7.922 kB / 0.9857 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.779e-05/1.231, allocations: 0 / 0.9857 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.571e-05/1.231, allocations: 4 kB / 0.9857 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/1.231, allocations: 0 / 0.9857 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001385/1.232, allocations: 120.9 kB / 0.9858 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.21e-07/1.232, allocations: 3.938 kB / 0.9858 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005438/1.232, allocations: 87.94 kB / 0.9859 GB, free: 0.7539 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001205/1.233, allocations: 0.7422 MB / 0.9866 GB, free: 4 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002627/1.234, allocations: 97.61 kB / 0.9867 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.234, allocations: 4 kB / 0.9867 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.594e-05/1.234, allocations: 11.98 kB / 0.9868 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001544/1.234, allocations: 8 kB / 0.9868 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008186/1.235, allocations: 405 kB / 0.9871 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/1.235, allocations: 0.6965 MB / 0.9878 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 2.811e-05/1.235, allocations: 4 kB / 0.9878 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/1.235, allocations: 19.44 kB / 0.9879 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of SimCode: time 4.21e-07/1.235, allocations: 0 / 0.9879 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/1.343, allocations: 3.176 MB / 0.991 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003532/1.344, allocations: 229 kB / 0.9912 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.158/4.501, allocations: 0 / 0.9912 GB, free: 11.4 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat does not exist to compare? outputFormat=mat