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.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.0009586/0.0009586, allocations: 73.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.001507/0.001507, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9591/0.9591, allocations: 177.1 MB / 204.5 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.158/2.158, allocations: 429.5 MB / 0.6743 GB, free: 3.91 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 0.8794 GB, free: 6.062 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.716e-05, allocations: 4.984 kB / 0.8794 GB, free: 6.059 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001772/0.001799, allocations: 0.5331 MB / 0.8799 GB, free: 5.547 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002443/0.004242, allocations: 1.645 MB / 0.8815 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.979e-05/0.004282, allocations: 3.938 kB / 0.8815 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.004481, allocations: 52.95 kB / 0.8815 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.246e-05/0.004523, allocations: 31.89 kB / 0.8816 GB, free: 3.805 MB / 0.8386 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.001079/0.005602, allocations: 286.6 kB / 0.8818 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 9.878e-05/0.005701, allocations: 35.91 kB / 0.8819 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.005742, allocations: 7.969 kB / 0.8819 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.662e-05/0.005798, allocations: 23.91 kB / 0.8819 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.606e-05/0.005874, allocations: 44.72 kB / 0.8819 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.00589, allocations: 0.5625 kB / 0.8819 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008351/0.006725, allocations: 452.1 kB / 0.8824 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.006787, allocations: 23.88 kB / 0.8824 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.006813, allocations: 24.56 kB / 0.8824 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005527/0.007366, allocations: 355.7 kB / 0.8828 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.00737, allocations: 0 / 0.8828 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.222e-06/0.007371, allocations: 1.094 kB / 0.8828 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.007375, allocations: 3.938 kB / 0.8828 GB, free: 2.578 MB / 0.8386 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.0004618/0.007837, allocations: 463.6 kB / 0.8832 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.007875, allocations: 11.53 kB / 0.8832 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.00792, allocations: 12.84 kB / 0.8832 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.008074, allocations: 141.3 kB / 0.8834 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.008083, allocations: 4.312 kB / 0.8834 GB, free: 1.902 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.008092, allocations: 4.375 kB / 0.8834 GB, free: 1.898 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.558e-05/0.008158, allocations: 30.25 kB / 0.8834 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.008167, allocations: 192 / 0.8834 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.008173, allocations: 384 / 0.8834 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.008181, allocations: 3.938 kB / 0.8834 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.15e-05/0.008193, allocations: 4.812 kB / 0.8834 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/0.008335, allocations: 121.2 kB / 0.8835 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.401e-05/0.008379, allocations: 27.59 kB / 0.8836 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.618e-05/0.008395, allocations: 13 kB / 0.8836 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.803e-05/0.008433, allocations: 7.984 kB / 0.8836 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.008462, allocations: 33.39 kB / 0.8836 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 1.814e-06/0.008463, allocations: 1.406 kB / 0.8836 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001384/0.008602, allocations: 45.61 kB / 0.8837 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.008635, allocations: 51.41 kB / 0.8837 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.008841, allocations: 271.4 kB / 0.884 GB, free: 1.211 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.008854, allocations: 25.7 kB / 0.884 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/0.00893, allocations: 158.8 kB / 0.8841 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.008943, allocations: 7.891 kB / 0.8841 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.008996, allocations: 39.34 kB / 0.8842 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.009151, allocations: 0.504 MB / 0.8847 GB, free: 460 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.416e-05/0.009175, allocations: 8 kB / 0.8847 GB, free: 452 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.754e-05/0.009193, allocations: 8 kB / 0.8847 GB, free: 444 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.592e-05/0.009249, allocations: 39.05 kB / 0.8847 GB, free: 404 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.009251, allocations: 0 / 0.8847 GB, free: 404 kB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001146/0.009366, allocations: 77.59 kB / 0.8848 GB, free: 320 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.00938, allocations: 12 kB / 0.8848 GB, free: 308 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.009396, allocations: 4 kB / 0.8848 GB, free: 304 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.009407, allocations: 3.984 kB / 0.8848 GB, free: 300 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.431e-05/0.009421, allocations: 3.938 kB / 0.8848 GB, free: 296 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.009423, allocations: 0 / 0.8848 GB, free: 296 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.288e-05/0.009456, allocations: 11.89 kB / 0.8848 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.009464, allocations: 0 / 0.8848 GB, free: 284 kB / 0.8386 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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.425e-05/0.009559, allocations: 156.6 kB / 0.885 GB, free: 116 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/0.009575, allocations: 11.91 kB / 0.885 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.009679, allocations: 50.19 kB / 0.885 GB, free: 48 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.009681, allocations: 0 / 0.885 GB, free: 48 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.009683, allocations: 0 / 0.885 GB, free: 48 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.009689, allocations: 3.938 kB / 0.885 GB, free: 44 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.009822, allocations: 121.2 kB / 0.8852 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.009825, allocations: 3.984 kB / 0.8852 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.033e-06/0.009832, allocations: 0 / 0.8852 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.009834, allocations: 0 / 0.8852 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.009841, allocations: 4 kB / 0.8852 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.009843, allocations: 3.938 kB / 0.8852 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.009844, allocations: 4.031 kB / 0.8852 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.527e-05/0.00993, allocations: 88.23 kB / 0.8853 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.505e-05/0.009945, allocations: 11.94 kB / 0.8853 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.009956, allocations: 0 / 0.8853 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.648e-05/0.009973, allocations: 0 / 0.8853 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.192e-05/0.009985, allocations: 0 / 0.8853 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.009988, allocations: 0 / 0.8853 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001006/0.01009, allocations: 171.1 kB / 0.8854 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2e-07/0.01009, allocations: 0 / 0.8854 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004147/0.0105, allocations: 87.8 kB / 0.8855 GB, free: 15.51 MB / 0.8542 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.0006129/0.01112, allocations: 258.9 kB / 0.8858 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001482/0.01126, allocations: 85.23 kB / 0.8859 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01127, allocations: 0 / 0.8859 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.463e-05/0.01128, allocations: 7.688 kB / 0.8859 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.01145, allocations: 13.5 kB / 0.8859 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003047/0.01175, allocations: 190.8 kB / 0.8861 GB, free: 14.94 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.674e-05/0.0118, allocations: 63.34 kB / 0.8861 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.552e-05/0.01182, allocations: 0 / 0.8861 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.595e-05/0.01187, allocations: 70.2 kB / 0.8862 GB, free: 14.79 MB / 0.8542 GB Notification: Performance of SimCode: time 7.11e-07/0.01187, allocations: 0 / 0.8862 GB, free: 14.79 MB / 0.8542 GB Notification: Performance of Templates: time 0.006468/0.01834, allocations: 2.608 MB / 0.8887 GB, free: 12.18 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.444104435387999]