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.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.001364/0.001364, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.00151/0.00151, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 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.9478/0.9478, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.071/2.071, allocations: 429.5 MB / 0.6736 GB, free: 4.027 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0.875 kB / 0.8781 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.146e-05/3.339e-05, allocations: 4.984 kB / 0.8781 GB, free: 6.668 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001826/0.00186, allocations: 0.5448 MB / 0.8787 GB, free: 6.141 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002235/0.004095, allocations: 1.649 MB / 0.8803 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.765e-05/0.004142, allocations: 0 / 0.8803 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.004306, allocations: 23.91 kB / 0.8803 GB, free: 4.457 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.586e-05/0.004332, allocations: 12.42 kB / 0.8803 GB, free: 4.445 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.0008611/0.005193, allocations: 273.5 kB / 0.8806 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.389e-05/0.005267, allocations: 29.5 kB / 0.8806 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.005308, allocations: 0 / 0.8806 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 4.626e-05/0.005355, allocations: 19.91 kB / 0.8806 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.947e-05/0.005394, allocations: 15.98 kB / 0.8806 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.005409, allocations: 1.75 kB / 0.8806 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005388/0.005948, allocations: 451 kB / 0.8811 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.042e-05/0.006008, allocations: 23.92 kB / 0.8811 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.303e-05/0.006031, allocations: 10.75 kB / 0.8811 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.006404, allocations: 351.1 kB / 0.8814 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.006406, allocations: 0 / 0.8814 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.52e-07/0.006407, allocations: 3.938 kB / 0.8814 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.006412, allocations: 0 / 0.8814 GB, free: 3.297 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.0004043/0.006816, allocations: 431.9 kB / 0.8819 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.00686, allocations: 12.03 kB / 0.8819 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.006906, allocations: 9.562 kB / 0.8819 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.007048, allocations: 139.5 kB / 0.882 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.007058, allocations: 1.719 kB / 0.882 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.007068, allocations: 384 / 0.882 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.994e-05/0.007158, allocations: 26.27 kB / 0.882 GB, free: 2.629 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.007164, allocations: 12.12 kB / 0.882 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.007172, allocations: 384 / 0.882 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.00718, allocations: 3.938 kB / 0.882 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.32e-05/0.007194, allocations: 3.984 kB / 0.8821 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001443/0.007338, allocations: 140.6 kB / 0.8822 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.318e-05/0.007381, allocations: 23.06 kB / 0.8822 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.733e-05/0.007398, allocations: 7.688 kB / 0.8822 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/0.007443, allocations: 12.05 kB / 0.8822 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.007467, allocations: 37.39 kB / 0.8823 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.007468, allocations: 0 / 0.8823 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.007595, allocations: 45.59 kB / 0.8823 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.007628, allocations: 55.34 kB / 0.8824 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.007793, allocations: 217.8 kB / 0.8826 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.007807, allocations: 25.7 kB / 0.8826 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.007876, allocations: 146.9 kB / 0.8827 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.007892, allocations: 7.953 kB / 0.8827 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.823e-05/0.00794, allocations: 31.36 kB / 0.8828 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.00808, allocations: 0.4923 MB / 0.8832 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.205e-05/0.008102, allocations: 12 kB / 0.8833 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.995e-05/0.008122, allocations: 12 kB / 0.8833 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.034e-05/0.008172, allocations: 43.83 kB / 0.8833 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.008174, allocations: 3.938 kB / 0.8833 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.934e-05/0.008264, allocations: 69.64 kB / 0.8834 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.008278, allocations: 4 kB / 0.8834 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.008294, allocations: 0 / 0.8834 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.008309, allocations: 4 kB / 0.8834 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.369e-05/0.008323, allocations: 0 / 0.8834 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.00833, allocations: 3.938 kB / 0.8834 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.008349, allocations: 7.891 kB / 0.8834 GB, free: 1.086 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.008361, allocations: 11.98 kB / 0.8834 GB, free: 1.074 MB / 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: 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 8.699e-05/0.008448, allocations: 164.6 kB / 0.8836 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.008456, allocations: 7.938 kB / 0.8836 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.654e-05/0.008542, allocations: 45.44 kB / 0.8836 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.008544, allocations: 0 / 0.8836 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.00855, allocations: 3.938 kB / 0.8836 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.008553, allocations: 0 / 0.8836 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.518e-05/0.008638, allocations: 136.6 kB / 0.8838 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.008639, allocations: 0 / 0.8838 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-06/0.008644, allocations: 3.984 kB / 0.8838 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.008646, allocations: 0 / 0.8838 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.008652, allocations: 4.031 kB / 0.8838 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.008653, allocations: 0 / 0.8838 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.008655, allocations: 0 / 0.8838 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.607e-05/0.008721, allocations: 84.28 kB / 0.8838 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.778e-06/0.00873, allocations: 7.938 kB / 0.8839 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.008741, allocations: 0 / 0.8839 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.644e-06/0.008748, allocations: 0 / 0.8839 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.008763, allocations: 4 kB / 0.8839 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.008766, allocations: 3.938 kB / 0.8839 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.114e-05/0.008827, allocations: 153.2 kB / 0.884 GB, free: 404 kB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.008827, allocations: 4.031 kB / 0.884 GB, free: 400 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002397/0.009066, allocations: 91.8 kB / 0.8841 GB, free: 308 kB / 0.8386 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.0004502/0.009517, allocations: 259.2 kB / 0.8843 GB, free: 68 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001462/0.009663, allocations: 73.3 kB / 0.8844 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.009664, allocations: 4.062 kB / 0.8844 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.02e-05/0.009674, allocations: 15.62 kB / 0.8844 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.009827, allocations: 9.031 kB / 0.8844 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.0102, allocations: 150.6 kB / 0.8846 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.782e-05/0.01024, allocations: 63.28 kB / 0.8846 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.217e-05/0.01026, allocations: 0 / 0.8846 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.993e-05/0.01028, allocations: 12.5 kB / 0.8847 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of SimCode: time 1.573e-06/0.01028, allocations: 0 / 0.8847 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of Templates: time 0.004611/0.0149, allocations: 2.214 MB / 0.8868 GB, free: 13.47 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.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.483215023064986]