Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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) 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_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",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.001493/0.001493, allocations: 99.86 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.0016/0.001601, 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.372/2.372, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.297/4.297, allocations: 409.2 MB / 0.6838 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005318/0.000532, allocations: 12 kB / 0.8375 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.16/1.161, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001146/1.162, allocations: 240.1 kB / 0.9811 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003632/1.166, allocations: 1.543 MB / 0.9826 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.263e-05/1.166, allocations: 3.938 kB / 0.9826 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000276/1.166, allocations: 59.91 kB / 0.9827 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.261e-05/1.166, allocations: 27.95 kB / 0.9827 GB, free: 4.414 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.001118/1.167, allocations: 190.4 kB / 0.9829 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.082e-05/1.167, allocations: 23.95 kB / 0.9829 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.903e-05/1.167, allocations: 4 kB / 0.9829 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.72e-05/1.167, allocations: 23.89 kB / 0.9829 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.96e-05/1.168, allocations: 39.84 kB / 0.9829 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/1.168, allocations: 0 / 0.9829 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006203/1.168, allocations: 215.7 kB / 0.9832 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.457e-05/1.168, allocations: 27.97 kB / 0.9832 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.999e-05/1.168, allocations: 37.64 kB / 0.9832 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004732/1.169, allocations: 203.6 kB / 0.9834 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/1.169, allocations: 0 / 0.9834 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.885e-06/1.169, allocations: 0 / 0.9834 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.538e-06/1.169, allocations: 0 / 0.9834 GB, free: 3.66 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.0007199/1.17, allocations: 429 kB / 0.9838 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.6e-05/1.17, allocations: 8.031 kB / 0.9838 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.727e-05/1.17, allocations: 34.56 kB / 0.9839 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.413e-05/1.17, allocations: 7.812 kB / 0.9839 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002816/1.17, allocations: 194.8 kB / 0.9841 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/1.17, allocations: 0 / 0.9841 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/1.17, allocations: 0 / 0.9841 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/1.17, allocations: 41.64 kB / 0.9841 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/1.17, allocations: 4 kB / 0.9841 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/1.17, allocations: 0 / 0.9841 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/1.17, allocations: 0 / 0.9841 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.035e-05/1.17, allocations: 23.98 kB / 0.9841 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003339/1.171, allocations: 177.6 kB / 0.9843 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.746e-05/1.171, allocations: 38.55 kB / 0.9843 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.998e-05/1.171, allocations: 8.062 kB / 0.9843 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/1.171, allocations: 30.56 kB / 0.9844 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.563e-06/1.171, allocations: 0 / 0.9844 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0002676/1.171, allocations: 77.38 kB / 0.9844 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/1.171, allocations: 51.41 kB / 0.9845 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/1.172, allocations: 211.2 kB / 0.9847 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/1.172, allocations: 25.7 kB / 0.9847 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/1.172, allocations: 108 kB / 0.9848 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/1.172, allocations: 0 / 0.9848 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.565e-06/1.172, allocations: 4 kB / 0.9848 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001847/1.172, allocations: 322.8 kB / 0.9851 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/1.172, allocations: 55.97 kB / 0.9852 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/1.172, allocations: 52.69 kB / 0.9852 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/1.173, allocations: 69.17 kB / 0.9853 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/1.173, allocations: 4.031 kB / 0.9853 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003208/1.173, allocations: 153.5 kB / 0.9854 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/1.173, allocations: 8 kB / 0.9855 GB, free: 1.344 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/1.173, allocations: 3.984 kB / 0.9855 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/1.173, allocations: 0 / 0.9855 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.746e-05/1.173, allocations: 11.83 kB / 0.9855 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/1.173, allocations: 0 / 0.9855 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.404e-05/1.173, allocations: 15.78 kB / 0.9855 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/1.173, allocations: 4 kB / 0.9855 GB, free: 1.309 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: 10 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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.0002158/1.173, allocations: 134.8 kB / 0.9856 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/1.173, allocations: 7.906 kB / 0.9856 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/1.174, allocations: 70.14 kB / 0.9857 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/1.174, allocations: 0 / 0.9857 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/1.174, allocations: 3.953 kB / 0.9857 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/1.174, allocations: 0 / 0.9857 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/1.174, allocations: 181.6 kB / 0.9859 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/1.174, allocations: 0 / 0.9859 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.971e-06/1.174, allocations: 0 / 0.9859 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/1.174, allocations: 8.031 kB / 0.9859 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/1.174, allocations: 0 / 0.9859 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/1.174, allocations: 3.938 kB / 0.9859 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/1.174, allocations: 0 / 0.9859 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/1.174, allocations: 84.98 kB / 0.986 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-05/1.174, allocations: 84.92 kB / 0.986 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/1.174, allocations: 4 kB / 0.986 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.096e-05/1.174, allocations: 8.016 kB / 0.9861 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/1.174, allocations: 0 / 0.9861 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/1.174, allocations: 0 / 0.9861 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001928/1.174, allocations: 148.4 kB / 0.9862 GB, free: 500 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.5e-07/1.174, allocations: 4 kB / 0.9862 GB, free: 496 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006567/1.175, allocations: 87.94 kB / 0.9863 GB, free: 408 kB / 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.001139/1.176, allocations: 0.7394 MB / 0.987 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002878/1.177, allocations: 129.7 kB / 0.9871 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/1.177, allocations: 4 kB / 0.9871 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.886e-05/1.177, allocations: 16.08 kB / 0.9871 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/1.177, allocations: 192 / 0.9871 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009892/1.178, allocations: 470.1 kB / 0.9876 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004582/1.178, allocations: 0.7082 MB / 0.9883 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.124e-05/1.178, allocations: 4 kB / 0.9883 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.893e-05/1.178, allocations: 27.42 kB / 0.9883 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of SimCode: time 9.82e-07/1.178, allocations: 0 / 0.9883 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03654/1.215, allocations: 3.46 MB / 0.9917 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000339/1.215, allocations: 237.5 kB / 0.9919 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.186/4.401, allocations: 0 / 0.9919 GB, free: 10.64 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat does not exist to compare? outputFormat=mat