Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008576/0.0008576, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 179.3 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.782/2.782, allocations: 462.7 MB / 0.7371 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003555, allocations: 9.469 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2826, allocations: 159.6 MB / 1.059 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.0009202/0.2836, allocations: 441.5 kB / 1.06 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002095/0.2838, allocations: 43.84 kB / 1.06 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.391e-05/0.2839, allocations: 7.938 kB / 1.06 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.463e-05/0.284, allocations: 11.94 kB / 1.06 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.2841, allocations: 15.84 kB / 1.06 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.467e-05/0.2842, allocations: 23.98 kB / 1.06 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.2844, allocations: 159.6 kB / 1.06 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003572/0.2848, allocations: 244.9 kB / 1.06 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.306e-05/0.2848, allocations: 51.67 kB / 1.06 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/0.2849, allocations: 67.5 kB / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.285, allocations: 8 kB / 1.06 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.576e-05/0.285, allocations: 4 kB / 1.06 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.681e-05/0.285, allocations: 39.8 kB / 1.06 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.2852, allocations: 117 kB / 1.061 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.2854, allocations: 271.3 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2854, allocations: 0 / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2854, allocations: 0 / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.2855, allocations: 0 / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0006081/0.2861, allocations: 0.4992 MB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.2861, allocations: 8.031 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.2862, allocations: 32.56 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.2867, allocations: 317.1 kB / 1.062 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.596e-05/0.2868, allocations: 32.92 kB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.2868, allocations: 28.38 kB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005513/0.2874, allocations: 335 kB / 1.062 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2874, allocations: 4.125 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.2874, allocations: 15.94 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.2874, allocations: 4 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000376/0.2878, allocations: 255.8 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.289, allocations: 0.9207 MB / 1.063 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.969e-05/0.2891, allocations: 57.14 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.2892, allocations: 41.75 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.2892, allocations: 3.938 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.2892, allocations: 34.56 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.2892, allocations: 0 / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002591/0.2895, allocations: 129.3 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.2896, allocations: 77.36 kB / 1.063 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004897/0.2901, allocations: 481.4 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.2901, allocations: 29.64 kB / 1.064 GB, free: 32 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.2902, allocations: 187.5 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.025e-06/0.2903, allocations: 7.938 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.721e-05/0.2903, allocations: 29.7 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.2904, allocations: 342.8 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.581e-05/0.2905, allocations: 51.95 kB / 1.065 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.706e-05/0.2906, allocations: 73.67 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.2908, allocations: 97.67 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2908, allocations: 4 kB / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000263/0.2911, allocations: 189.1 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2911, allocations: 4 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2911, allocations: 0 / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2911, allocations: 4 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.2912, allocations: 23.98 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2913, allocations: 3.938 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.011e-05/0.2913, allocations: 27.69 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.2914, allocations: 12 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 0.0001825/0.2916, allocations: 193.5 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.2916, allocations: 31.56 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001661/0.2918, allocations: 156.6 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.561e-05/0.2919, allocations: 180.3 kB / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.937e-05/0.292, allocations: 184.3 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.284e-05/0.292, allocations: 192.1 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003428/0.2924, allocations: 0.5127 MB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.495e-05/0.2924, allocations: 116.9 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.139e-05/0.2925, allocations: 101 kB / 1.067 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.425e-05/0.2925, allocations: 180.4 kB / 1.067 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.01e-05/0.2926, allocations: 184.2 kB / 1.067 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.959e-05/0.2927, allocations: 184.2 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.93e-05/0.2928, allocations: 184.4 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.2929, allocations: 335.4 kB / 1.068 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.2931, allocations: 221.6 kB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/0.2932, allocations: 180.2 kB / 1.068 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2933, allocations: 112.9 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.2933, allocations: 176.3 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.2934, allocations: 104.9 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003716/0.2937, allocations: 363.1 kB / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2938, allocations: 0 / 1.069 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002697/0.294, allocations: 32 kB / 1.069 GB, free: 10.88 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0001135/0.2941, allocations: 170.5 kB / 1.069 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001673/0.2943, allocations: 83.92 kB / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2943, allocations: 0 / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.476e-06/0.2943, allocations: 3.938 kB / 1.069 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.2948, allocations: 0.5535 MB / 1.07 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006535/0.2955, allocations: 0.5742 MB / 1.07 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.2958, allocations: 0.7716 MB / 1.071 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.32e-05/0.2959, allocations: 23.44 kB / 1.071 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of SimCode: time 1.453e-06/0.2959, allocations: 0 / 1.071 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of Templates: time 0.005294/0.3012, allocations: 3.222 MB / 1.074 GB, free: 5.418 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)